1. Home
  2. Developer
  3. Heading Checker

Heading Checker

See a page's h1-h6 structure as an outline and find skipped levels and duplicates.

Runs in your browser · No upload
The code is read only inside this browser.
All headings
8
h1
1
h2
4
h3
2
h4
1
h5
0
h6
0

Findings

Warning Heading #6 "Frame Material Comparison": A level is skipped: h2 → h4. Add the missing level or realign the levels.
Note Heading #5 "Materials": The same heading appears 2 times. Adding a distinguishing word makes it easier to find in an outline.

Document outline

  • H1How to Choose a Camping Chair
    • H2Weight and Size
      • H3For Backpacking
      • H3For Car Camping
    • H2Materials
      • H4Frame Material Comparison
    • H2Picks by Price
    • H2Materials

Heading list

Heading list
#TagHeadingChars
1h1How to Choose a Camping Chair29
2h2Weight and Size15
3h3For Backpacking15
4h3For Car Camping15
5h2Materials9
6h4Frame Material Comparison25
7h2Picks by Price14
8h2Materials9

How to use

  1. On the page you want to check, press Ctrl+U (Option+Command+U on a Mac) to open view-source, copy everything and paste it into the box. A few lines of heading tags are enough too.
  2. The number cards at the top show how many h1 to h6 headings there are.
  3. Findings lists problems such as skipped levels, empty headings and duplicates, each with the position of the heading.
  4. Document outline shows the headings as an indented table of contents. Copy it as plain text or Markdown for a draft table of contents or a planning document.

What is checked

Check Rule
No h1 The main title is not marked (error)
Several h1 Two or more raises a warning. HTML5 allows it, but one is safer
First heading is not h1 The document starts at h2 or deeper
Skipped level Going deeper by more than one level, like h2 then h4. Going back up (h3 then h2) is normal
Empty heading A tag with no text (error)
Long heading Over 70 characters (note)
Duplicate heading The same text, ignoring case, two or more times

Reading the built-in example

The sample in the box has one h1, four h2, two h3 and one h4. After the h2 Materials comes Frame Material Comparison as an h4 with no h3 in between, so heading number 6 is flagged “h2 → h4”, and because Materials appears twice it is marked as a duplicate. The outline looks like this.

H1 How to Choose a Camping Chair
  H2 Weight and Size
    H3 For Backpacking
    H3 For Car Camping
  H2 Materials
    H4 Frame Material Comparison
  H2 Picks by Price
  H2 Materials

Why heading structure matters

  • Screen reader users skim a page by jumping through its list of headings. Skipped levels or empty headings make it easy to get lost.
  • Search engines use headings as one hint for a page’s topics and sections. The number of headings is not an official ranking factor.
  • Picking a heading tag to get a certain font size breaks the structure. Use CSS for size and the tag for meaning.

How it reads, and its limits

  • Only h1 to h6 tags are read. Headings built with role="heading" are not included.
  • If a heading holds only an image, its alt text counts as the heading text. Tags inside comments and scripts are ignored.
  • Headings created by JavaScript after load may be missing from view-source. In that case paste HTML copied from the developer tools.
  • Useful companions: the Meta Tag Checker, the Link Extractor, the Character Counter for text length, and the Markdown Preview when you move an outline into a document.

Frequently asked questions

Must a page have exactly one h1?

HTML5 does not forbid several, and search engines have not said they penalise it. A single main heading keeps the structure clear and is easier for accessibility tools, so this tool raises a warning when there are two or more.

Can I use h4 straight after h2?

It is not a syntax error, but one level looks missing in the outline. Add the middle level, or use an h3 and shrink it with CSS if you only want a smaller look.

How long should a heading be?

There is no fixed limit. The tool notes anything over 70 characters, counting every character, emoji included, as one.

Does it fetch a page from its address?

No. It reads only the HTML source you paste.

Where does the pasted source go?

The text you enter is processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.