Heading From HTML
Heading From HTML — runs in your browser. Inputs are not stored.
HTML → headings (h1–h6)
Enter values, then press Calculate.
Lists h1–h6 text in document order.
How to use
- Paste a page fragment or full source into HTML.
- Press Extract. The result area opens with a count and an h1 count.
- List stacks one line per heading: level and text, separated by a tab, in document order.
- If there are no headings, the list shows “No headings”.
- Copy result takes the list; Reset clears input and hides the result area.
Key concepts
HTML heading extraction lays out the heading outline that search and accessibility care about, in source order. It collects levels 1–6 and counts all headings plus h1 separately. Each line is tag name, tab, then normalized text—easy to paste into a spreadsheet. Skipped levels (h3 with no h2) stay visible because order is unchanged.
Ordinary paragraphs that only look large are not counted. Hidden headings still appear if they exist in the source. Markup is not uploaded. Meta extractors look at snippets; this tool checks whether the body hierarchy skips levels. Before extract, the result area is hidden; “No headings” distinguishes an empty outline from a blank page.
Example
Paste <h1>Guide</h1><h2>Install</h2> and extract: count 2, h1 1, two list lines (h1 + Guide, h2 + Install). Two h1s raise the h1 number to 2—a signal to review structure. Copy the list into a sheet and sort by level if you want.
Related: HTML meta extractor · HTML link extractor · HTML formatter
Frequently asked questions
Which heading levels are read?
h1 through h6, in document order. Custom “h7” tags are not included.
What is the difference between count and h1?
Count is all headings; h1 is level-1 only. Two h1s are a cue to review search structure.
What is the list format?
Each line is tag name, tab, then text—easy to split into columns in a spreadsheet.
What if there are no headings?
Count and h1 are 0, and the list shows “No headings”.
Is HTML stored on a server?
No. Extract and copy finish in the browser. Reset hides the result area.
Are hidden headings included?
If a heading tag is in the source, its text is collected regardless of CSS. Duplicate headings that are visually hidden still appear in the count and list.
Last reviewed: 2026-09-04