Skip to content
PDF Accessibility

Fix the “Heading nesting failed” PDF error

Heading tags skip levels or start below H1, so the outline screen reader users rely on no longer makes sense.

What does Heading nesting failed mean in a PDF?

It means the heading tags are not in a valid hierarchy, for example an H3 directly after an H1, or a document whose first heading is H2. Fix it by retagging headings so levels go down one step at a time (H1, then H2, then H3) and match the visual structure of the document.

Automatic fix: partlyOur fixer resolves most cases; some need a quick human check in the review editor.· WCAG 1.3.1 Info and Relationships, WCAG 2.4.6 Headings and Labels, PDF/UA-1 (ISO 14289-1) 7.4, Matterhorn 14, WCAG technique PDF9

How to fix heading nesting manually

  1. Review the outline. In Acrobat Pro, open the Tags panel and expand the tree, or generate temporary bookmarks from structure to see all headings in order.
  2. Change heading levels. Select a heading tag, open its Properties from the Options menu, and change the Type (for example from Heading 3 to Heading 2).
  3. Retag missed headings. Use the Reading Order tool to select text that looks like a heading and click the matching heading button.
  4. Fix the source. In Word or Google Docs, apply Heading 1, 2 and 3 by level, then change the style formatting if you want a different look.
  5. Check with a screen reader. Use the headings list in NVDA or JAWS, or our screen reader preview, to confirm the hierarchy reads well.

What the rule checks

PDF/UA-1 allows numbered headings (H1 to H6) and asks that they nest properly: the first heading should be H1 and a heading should not jump more than one level deeper than the one before it. Going back up any number of levels is fine. Checkers fail this rule, often called appropriate nesting, when they see a skip such as H1 > H3, or a document that begins at H2. Matterhorn checkpoint 14 covers headings.

The rule does not check whether the text tagged as a heading really is a heading, or whether real headings were tagged as plain paragraphs. Those need a human look.

Who it affects

Screen reader users often navigate a long PDF by pulling up a list of headings or pressing H to jump to the next one. The levels tell them how sections relate. A skipped level suggests missing content; random levels make the outline useless. Clean headings also produce accurate bookmarks, which help everyone, and support WCAG 2.4.6 Headings and Labels.

Common causes

Heading nesting usually breaks because:

  • Authors picked heading styles for their look (Heading 3 is a nicer size) rather than their level.
  • The document title on the cover was styled as Title, so the first tagged heading is H2.
  • Automatic tagging inferred levels from font size and guessed wrong.
  • Content was pasted from another document with its own heading styles.

How our fixer handles headings

Our fixer detects headings from font size, weight, spacing and numbering, then normalizes the hierarchy so the first heading is H1 and no level is skipped. Where the source already had heading tags it keeps their relative order and only closes gaps. Because a heading's level is ultimately an editorial decision, pages with uncertain heading detection appear in the review editor, where changing a level also updates the bookmarks.

Sources

This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.

Frequently asked questions

Can I go from H3 back to H1?

Yes. Moving up levels is allowed. Only skipping levels on the way down breaks nesting.

Is the cover page title the H1?

Usually yes. The main title of the document should normally be the first H1.

Can a document have several H1s?

Many documents use one H1, but multiple H1s are allowed as long as the structure is logical, for example one per chapter.

Why not just use generic H tags?

PDF/UA allows strongly structured H tags or numbered headings, but mixing them is not allowed. Numbered headings are more widely supported.