Heading Structure Checker

Reads HTML or Markdown and shows the outline of its headings, flagging problems such as a missing main heading, skipped levels or empty headings. Use it to review an article or page before publishing so that readers and assistive technology can follow the structure.

Up to 1 MiB.

Results

Results appear here.

Options

How to use the Heading Structure Checker

  1. Paste HTML or Markdown. The format is detected automatically, or choose it.
  2. The outline and any issues update as you type.

Checks

  • A missing level 1 heading, more than one level 1 heading, a first heading that is not level 1, skipped levels (such as level 2 followed by level 4) and empty headings.

Safety and limitations

  • The HTML is read as text: nothing is rendered, run or loaded. Headings inside scripts, styles and comments are ignored.
  • Headings created by scripts or styled to look like headings are not detected. Several level 1 headings are valid HTML; the check is guidance.

Worked examples

HTML with a skipped level

Input

<h1>Guide</h1>
<h2>Getting started</h2>
<h4>Install</h4>
<h2>Next steps</h2>

Result

Format: HTML
Headings: 4
Level 1 headings: 1
Issues: 1

Heading 3: Skips from level 2 to 4.

H1 Guide
  H2 Getting started
      H4 Install
  H2 Next steps
Markdown outline

Input

# Recipes
## Breakfast
### Pancakes
## Dinner

Result

Format: Markdown
Headings: 4
Level 1 headings: 1
Issues: 0

No issues found.

H1 Recipes
  H2 Breakfast
    H3 Pancakes
  H2 Dinner

Practical uses

  • Check an article before publishing

    A web editor pastes the HTML of an article before it goes live. The outline shows a heading that skips from level 2 to level 4. They fix the outline and paste the page again to confirm the issue has gone.

  • Review a Markdown document outline

    A technical writer pastes a long Markdown guide to review its outline. The checks look for a single top heading and a logical order of sections. They fix anything flagged before sharing the guide with the team.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.