Skip to content

Menu

Heading Hierarchy Checker

Validate HTML heading structure

Runs entirely in your browserSEO & WebFree, no sign-up
Loading tool

01What is Heading Hierarchy Checker?

Headings are how screen-reader users skim a page and how a document gets its outline. They're also easy to break, because people often pick H4 because it looks smaller. Heading Hierarchy Checker shows you the structure you actually shipped. Paste some HTML, and it pulls out every h1 to h6 element, draws an indented heading tree and gives the structure a score out of 100. Parsing uses the browser's own DOMParser, which builds an inert document. That means headings split over several lines, headings with classes or nested tags like <em>, and entities such as &amp; all come out right. Pasted scripts never run and images never load, because nothing gets inserted into the live page. Heading text is the element's visible text with runs of whitespace collapsed to single spaces. The checks map to familiar guidance. WCAG success criterion 1.3.1 (Info and Relationships) asks that structure be conveyed in markup, and the W3C WAI headings tutorial advises against skipping levels on the way down. The score is our own weighting, a quick summary rather than an official metric. A missing H1 is an error and costs 20 points. More than one H1 is a warning worth 10. HTML allows several, and Google has said it isn't a search problem, but one H1 is the common convention. Each downward skip, like H2 straight to H4, is an error worth 15, and the message names the heading's position and text. Going back up any number of levels is fine. A first heading that isn't H1 costs 10, and any empty headings cost 5 as a group. No headings at all gives a score of zero. Passing checks show too, such as Single H1 heading present and Document starts with H1. When nothing fails, you'll also see Heading hierarchy is well-structured. Worked example: <h2>Intro</h2><h4>Details</h4> scores 55. It loses 20 for no H1, 15 for the H2 to H4 skip at heading #2, and 10 because the first heading is H2. Copy gives you the score, an indented outline like " H2: Setup", and every issue tagged [error], [warning] or [success]. Limits: it only sees the HTML you paste. Headings injected later by JavaScript won't appear unless you copy the rendered DOM. ARIA role="heading" elements are ignored. Hidden or off-screen headings are counted like any other. Your HTML stays in the tab, since parsing happens in memory.

Front-end developers, accessibility auditors and SEO editors who want a fast outline of a page's h1 to h6 structure and a list of skipped levels before a release. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Heading Hierarchy Checker

  1. Copy the page HTML from View Source or your template
  2. Paste it into Paste HTML with headings
  3. Check the Score and the Heading Tree outline
  4. Read the issue list; skipped levels name the heading's position and text
  5. Click Copy to share the outline and findings

03Worked examples

Input: <h1>Guide</h1><h2>Setup</h2><h3>Linux</h3><h2>Usage</h2>
Result: Score 100 · Single H1 heading present · Document starts with H1 · Heading hierarchy is well-structured
Going back up from H3 to H2 is fine; only skipping levels on the way down is flagged.
Input: <h2>Intro</h2><h4>Details</h4>
Result: Score 55 · Error: no H1 heading · Error: skipped heading level H2 → H4 at heading #2 ("Details") · Warning: first heading is H2
Each problem takes points off: 20 for a missing H1, 15 for each skipped level and 10 when the first heading isn't an H1.
Input: <h1>A</h1><h1>B</h1><h2></h2>
Result: Score 85 · Warning: 2 H1 headings · Document starts with H1 · Warning: 1 empty heading(s)
More than one H1 is a warning, not an error: HTML allows it, but a single H1 is the usual convention.
Input: <h1>Title</h1> <h3>Jump to H3</h3> <h2>Back to H2</h2>
Result: Score 85 · Single H1 heading present · Error: skipped heading level H1 → H3 at heading #2 ("Jump to H3") · Document starts with H1
The tool's Skipped Level sample. Only the downward jump costs points; coming back up to H2 is fine.
Input: <p>No headings here</p>
Result: Score 0 · Error: No h1-h6 headings found
With no headings the tool stops early and scores zero.

04Common use cases

  • Auditing a blog post template for skipped heading levels before launch
  • Checking CMS output where editors pick heading sizes for visual reasons
  • Reviewing a landing page that accidentally has two H1 elements from a hero and a logo
  • Producing a document outline to share in an SEO or accessibility report
  • Teaching content writers how heading structure works for screen reader users
  • Checking a React or Vue component's rendered output after a design refactor changed which heading tags it uses

05Tips

  • Paste the rendered HTML (from your browser's Elements panel) if headings are added by JavaScript; View Source only shows the server HTML.
  • Moving back up levels, such as H4 to H2, is fine; only skipping downward breaks the outline.
  • Choose heading levels for structure and style them with CSS, rather than picking H4 because it looks smaller.
  • Screen reader users often jump between headings to scan a page, so a clean outline directly improves navigation.
  • Empty headings often come from icon-only headings or CMS blocks with no title. Give them text, or change the tag if they aren't really headings.

06Related concepts

heading hierarchy, document outline, WCAG 1.3.1, semantic HTML, on-page SEO.

Frequently Asked Questions

What is Heading Hierarchy Checker?

Heading Hierarchy Checker is a free, browser-based developer tool on AIDToolStack. Validate HTML heading structure It requires no installation or sign-up and works entirely in your browser.

Is Heading Hierarchy Checker free to use?

Yes. No sign-up, no fees and no usage cap.

Does Heading Hierarchy Checker store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe