UnQTools
PDF Runs in your browser

PDF Tag Tree Viewer

Inspect the structure tree of a tagged PDF (PDF/UA). Walks the StructTreeRoot recursively, extracts every structure element (Document, Part, Section, H1–H6, P, List, Table, Figure, Link, …) with its attributes (Role, Alt, Lang, BBox), and renders the result as a tree, flat list, by-page, or by-type view. Validates heading hierarchy, detects missing structure, verifies reading order, and exports as text/HTML/JSON/CSV. 100% client-side.

100% Private Works Offline Instant

About PDF Tag Tree Viewer

Inspect the structure tree of a tagged PDF (PDF/UA). Walks the StructTreeRoot recursively, extracts every structure element (Document, Part, Section, H1–H6, P, List, Table, Figure, Link, …) with its attributes (Role, Alt, Lang, BBox), and renders the result as a tree, flat list, by-page, or by-type view. Validates heading hierarchy, detects missing structure, verifies reading order, and exports as text/HTML/JSON/CSV. 100% client-side. Everything runs locally in your browser — your data never leaves your device.

How to use

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. Everything happens locally — your data never leaves your browser.

FAQ

What does the PDF Tag Tree Viewer do?

It loads your PDF in the browser using pdf-lib, locates the document's /StructTreeRoot in the catalog, and recursively walks every structure element (Document, Part, Section, H1–H6, P, L, LI, Table, TR, TH, TD, Figure, Link, and more). Each element is shown with its attributes (Role, Alt, Lang, BBox, ActualText). You can switch between four view modes (tree, flat list, by page, by type) and a fixed-depth expansion. The tool validates heading hierarchy (no H1 → H3 jumps), detects PDFs with no structure tree, and verifies that tags appear in a logical reading order.

What extra features does this tool have compared to others?

(1) Four view modes (tree, flat-list, by-page, by-type). (2) Recursive tag-tree parser. (3) 10+ tag-type presets (Document, Part, Section, H1-H6, P, L, LI, Table, TR, TH, TD, Figure, Link). (4) Tag attribute extractor (Role, Alt, Lang, BBox, ActualText). (5) Multi-format renderers (text/HTML/JSON/CSV). (6) Tree-depth calculator. (7) Tag counter per type. (8) Tag validator (nesting + required attributes). (9) Copy + Download. (10) History (localStorage, last 20). (11) Shareable URL. (12) Summary stats (total tags, by type, max depth, by page). (13) Heading hierarchy checker. (14) Missing-structure detector. (15) Reading-order verifier.

What is a 'tagged PDF' and why does the structure tree matter?

A tagged PDF contains a /StructTreeRoot entry in its catalog — a hierarchy of structure elements that describe the document's semantic structure (headings, paragraphs, lists, tables, figures, links). Screen readers and other assistive technologies use this tree to navigate the document. PDFs without a structure tree are considered untagged and are largely inaccessible. WCAG 2.1 SC 1.3.1 and PDF/UA-1 both require a proper structure tree.

What does the heading hierarchy checker validate?

It walks every H1-H6 tag in document order and ensures no heading level is skipped (e.g. an H3 directly under an H1 with no H2 in between). Skipped levels make content harder to navigate with screen readers and violate PDF/UA-1 §5. Jumps of more than one level are reported as warnings.

Is my data sent anywhere?

No. All tag-tree parsing runs 100% in your browser using JavaScript and pdf-lib. Your PDF never leaves your device, and the tool works offline. History is stored in localStorage on this device only.

Search tools and actions

Search across all 458 tools, categories, and quick actions.