6 min read
How to add a table of contents to PDF — auto-generated from headings
By ScoutMyTool Editorial Team · Last updated: 2026-05-20
Introduction
A 60-page report PDF without a clickable TOC is a scrolling penalty for every reader. With a TOC and bookmarks, the same document becomes navigable in seconds: tap a section, jump there, tap "back" to return. Generating the TOC automatically from heading styles takes one menu click in Word or Google Docs; adding one to a PDF that does not have it requires either heading detection or manual bookmarks. This article walks through both paths, when each applies, and the small details that decide whether the result feels professional or generic.
TOC generation per source format
| Source | Auto-TOC support | Notes |
|---|---|---|
| Microsoft Word | Yes — References → Table of Contents | Auto-generates from H1/H2/H3 styles; PDF export preserves links |
| Google Docs | Yes — Insert → Table of contents | Generates from Heading styles; PDF export creates clickable links |
| LibreOffice Writer | Yes — Insert → Table of Contents and Index | Functionally similar to Word; preserves links in PDF export |
| InDesign | Yes — Layout → Table of Contents | Most flexible — define which paragraph styles populate TOC |
| LaTeX | Yes — \tableofcontents command | Two compile passes required; hyperref package for clickable links |
| Markdown (via Pandoc) | Yes — --toc flag on Pandoc conversion | Auto-generates from # / ## / ### headings |
| Existing PDF (no source) | Partial — automatic if headings tagged; manual otherwise | Use ScoutMyTool PDF TOC Generator or Acrobat Pro to add manually |
Step by step — generate a TOC for an existing PDF
- Open ScoutMyTool PDF TOC Generator at scoutmytool.com/pdf/pdf-toc and drop the PDF in. The tool runs in browser; no upload.
- Pick auto-detection mode. The tool scans for heading patterns: large-font lines, all-caps headers, numbered "Chapter 1 / Section 1.1" patterns. It proposes a section list with detected page numbers.
- Review and adjust the detected sections. Remove false-positives (a large-font caption that is not a section header), add missed sections, correct heading-level nesting.
- Configure the TOC page — title ("Table of Contents"), font, max heading depth (2 or 3), whether to include page numbers, whether to add a leader dot pattern.
- Generate and verify. Download the new PDF with TOC page at the front and matching bookmarks side panel. Test by clicking three TOC entries — each should jump to the right page.
Related reading
- PDF TOC generator: companion tool overview.
- PDF accessibility: tagged headings + TOC improve both navigation and screen-reader experience.
- Make a PDF look professional: layout rules that complement structural navigation.
- Mobile-friendly PDF: clickable TOC is what makes long PDFs usable on phones.
- Add page numbers: TOCs reference page numbers, so both matter together.
- Searchable PDF: OCR first if the source is scanned; TOC detection needs a text layer.
- ScoutMyTool PDF TOC Generator: the tool — free, browser-based.
FAQ
- What is the difference between a PDF "table of contents" and "bookmarks"?
- They are related but not identical. A table of contents is a visible page in the PDF (usually near the front) listing sections with their page numbers, often clickable. Bookmarks are PDF-level metadata accessible from a side panel in PDF readers, also clickable, never visible as page content. Both serve navigation; both are typically generated together when the source document has proper heading styles. The TOC is for readers who flip to the front; bookmarks are for readers using the side panel. ISO 32000-1 calls bookmarks "outline items" formally. For maximum usability, include both: a TOC page at the front for printed-equivalent navigation, and bookmarks for in-reader side-panel access.
- I have a PDF without headings — how do I add a TOC to it?
- Two approaches. Manual: open the PDF in Acrobat Pro, scroll through to identify each section, and add bookmarks at each section's first page (View → Show/Hide → Navigation Panes → Bookmarks; right-click → Add Bookmark). Tedious for long documents but works for any PDF. Auto-detection: ScoutMyTool PDF TOC Generator runs heuristic detection on the PDF (looking for large-font lines at the start of pages, all-caps headers, numbered patterns like "Chapter 1") and proposes section boundaries; you review and confirm. The auto-detection is correct 70–90% of the time depending on document structure; the manual review catches the misses. After generation, the PDF has both a TOC page and matching bookmarks.
- My Word document has headings but the exported PDF has no clickable TOC. Why?
- Three usual causes. First, you used "manual" headings (just bold + larger font) rather than Word's style system (Heading 1, Heading 2). Word's auto-TOC only sees real heading styles. Apply Heading 1/2/3 to your section titles, then Insert → Table of Contents. Second, the PDF export setting "Create bookmarks using: Headings" was not enabled — toggle it in Word's Save As → PDF → Options. Third, you exported as "image PDF" (each page rasterised) — image PDFs lose all hyperlink and navigation structure. Export as "Best for electronic distribution and accessibility" to preserve links.
- How do I make the TOC clickable so each entry jumps to the section?
- Use the auto-TOC feature in your authoring tool — they generate cross-reference links between TOC entries and target headings, which export to PDF as link annotations (clickable). Manual TOC entries (typed text in a Word document) do not become clickable unless you also insert hyperlinks. In Word: Insert → Cross-reference → Heading → choose the heading → tick "Insert as hyperlink". After PDF export, the entries are clickable. Test by opening the exported PDF and clicking each TOC entry — the cursor should jump to the corresponding section. If it does not, the link was not properly created in the source.
- Can I generate a TOC for an existing PDF in the browser without uploading?
- Yes. ScoutMyTool PDF TOC Generator runs entirely in the browser tab. It reads the PDF's text and structure metadata locally, proposes section boundaries based on heading-detection heuristics (font size jumps, numbering patterns, all-caps lines), and lets you review and adjust before generating. The result is a new PDF with a clickable TOC page at the front + bookmarks side panel. Source PDF stays on your machine throughout. For documents with already-tagged headings (PDF was exported as accessible / tagged PDF), detection accuracy is near-perfect; for image-only PDFs, OCR first.
- How many heading levels should the TOC include?
- Depends on document length. Short documents (under 20 pages): one or two levels — too much nesting is noise. Medium documents (20–100 pages): two or three levels — H1 + H2 covers most navigation needs, H3 adds detail. Long documents (100+ pages, technical manuals, books): three to four levels — readers need precision navigation in long content. Avoid five+ levels; the visual hierarchy collapses and the TOC becomes hard to scan. Most TOC generators (Word, ScoutMyTool, InDesign) let you set the max level explicitly; pick based on document length and adjust on review.
- How do I update the TOC after editing the document?
- In Word and similar tools, right-click the TOC → "Update Field" → "Update entire table". This regenerates the entry list and page numbers from the current heading structure. Then re-export to PDF. If you forget to update before exporting, the TOC shows the old structure with potentially wrong page numbers — and most automated checks do not flag this. Build the update step into your finalisation checklist: "1. Apply all edits. 2. Update TOC. 3. Re-export to PDF. 4. Spot-check three TOC entries against the destination." For PDF-only workflows (no source document), use ScoutMyTool PDF TOC Generator to re-generate after any structural change.
Citations
- ISO 32000-1:2008 — "Document management — Portable document format" — §12.3 (Document-Level Navigation) defining outline items (bookmarks).
- ISO 14289 — "Document management — Electronic document file format enhancement for accessibility (PDF/UA)" — accessibility standard including TOC requirements.
- Adobe Acrobat Pro documentation — bookmark creation and TOC generation.
- Microsoft Word documentation — "Insert a table of contents" official help.
- Pandoc documentation — `--toc` flag for Markdown-to-PDF TOC generation.
Add a TOC to any existing PDF
ScoutMyTool PDF TOC Generator auto-detects headings and builds a clickable TOC + matching bookmarks. Browser-based; your document never uploads.
Open PDF TOC Generator →