PDF guide · Word, Google Docs and LaTeX

How to create a clickable table of contents for PDF

A clickable table of contents for PDF is made in the source document, not in the PDF: build an automatic table of contents from heading styles, update it, then save or export the file as PDF instead of printing it. In Word that means References › Table of Contents, then File › Save a Copy as PDF. Every entry then links to its page, and the headings become the PDF's bookmarks.

By André Antão Published 11 min read
The short answer (Word)
  1. Give chapter and section titles the Heading 1, Heading 2 and Heading 3 styles.
  2. Click where the contents go and choose References › Table of Contents, then an automatic style.
  3. Before exporting, choose References › Update Table, then Update entire table.
  4. Windows File › Save a Copy, click Browse, set Save as type to PDF, click Save.
  5. Mac File › Save As, set File Format to PDF, choose Best for electronic distribution and accessibility, click Export.
  6. Open the PDF and click the first and last entries: each one should land on its heading.

01The two contents of a PDF

A thesis PDF can carry two tables of contents, and examiners use both. The first is the contents page itself, printed in the document, where each line is a link to its page. The second is the PDF's bookmarks: the outline in the reader's side panel. Acrobat calls that panel Bookmarks; Apple's Preview shows the same thing under View › Table of Contents, which is why people searching for a "table of contents for PDF" often mean either one.

Both come from the same place: the heading styles in your source file. This guide is about the first one, the clickable contents page, and the checks that keep its links honest. The bookmarks panel has its own guide, making PDF bookmarks from Word headings.

Figure 1A thesis PDF with both contents. On the page, the dashed box marks the clickable area of "2 Literature review", which in a Word PDF runs the full line from the number to the page number. In the Bookmarks panel, the outline built from the same headings.

02Create a table of contents for PDF in Word

To create a table of contents for a PDF in Word, insert Word's automatic table and export with Save a Copy (Windows) or Save As (Mac). Microsoft's TOC field reference explains why it works: the \h switch in the field inserts TOC entries as hyperlinks, and Word's automatic tables include it. In my test the default field was { TOC \o "1-3" \h \z \u }, and every entry became a link in the PDF.

  1. Apply heading styles to every chapter, section and subsection title from the Styles gallery on the Home tab. A title typed in bold is not a heading and will be missing from the contents.
  2. Click where the contents go, choose References › Table of Contents and pick an automatic style (Microsoft's steps are the same for Windows and Mac). The manual style is typed text: it has no links and never updates.
  3. When the text is final, choose References › Update Table, select Update entire table and click OK. This refreshes the titles, the page numbers and the link targets.
  4. Windows Choose File › Save a Copy (or Save As), click Browse, set Save as type to PDF. Under Options, tick Create bookmarks using: Headings so the side panel is filled too, then OK and Save.
  5. Mac Choose File › Save As, set File Format to PDF and select Best for electronic distribution and accessibility (uses Microsoft online service), then Export. Avoid Best for printing: Microsoft lists it as a known issue that hyperlinks may not convert correctly with it.

The export settings are covered option by option in the guide to saving a Word document as a PDF. What matters here is that the PDF is saved, not printed: when I printed the same test thesis to Microsoft Print to PDF, the contents page had no links and the PDF had no bookmarks.

The setting that switches the links off

The links depend on one tick box. In References › Table of Contents › Custom Table of Contents, under Web Preview, Use hyperlinks instead of page numbers is on by default. Microsoft's page on the custom table explains the name: it controls what you see in web view, and clearing it gives standard numbers with tab leaders. What it doesn't say is that clearing it also removes \h. In my test the contents page looked identical in print view, but the PDF had no links at all on it. If a table was customised by someone else, check this box first.

Figure 2The Custom Table of Contents dialog in Word, simplified. Keep Use hyperlinks instead of page numbers ticked: it adds the \h switch that turns each entry into a link in the PDF, even though the page numbers still print.

What becomes clickable

  • The whole contents line. In the Word PDF the link area ran from the start of the entry to the page number, leaders included (Figure 1), so a reader can click anywhere on the line.
  • Cross-references. A cross-reference inserted with Insert › Cross-reference and Insert as hyperlink ticked also became a link in my test ("see section 2.1" jumped to 2.1).
  • Lists of figures and tables. They are TOC fields too, so they link only when their field code contains \h. Right-click the list and choose Toggle Field Codes to see it.
  • A typed contents page. Nothing. In my test a hand-typed line gave no link even though the heading below it had a heading style.

03From Google Docs

In Google Docs, choose Insert › Page elements › Table of contents and pick a layout. Google's help page says each item in the table of contents links to your document headings or title, so the links are there from the start. After any change to the headings, click Refresh on the table; then download with File › Download › PDF document (.pdf).

Two choices decide what the PDF shows. Google lists three quick layouts, Plain text, Dotted and Links, and the Links layout drops the page numbers, which makes a contents page useless on paper; for a thesis pick Plain text or Dotted, with page numbers. And Google says a document in pageless format can't have page numbers, so switch to pages format first (Format › Switch to Pages format). Google's help page doesn't say what the PDF download keeps, so open the file and click a few entries before you rely on it. The layouts and headings are covered in the guide to a table of contents in Google Docs.

04From LaTeX

In LaTeX, \tableofcontents on its own makes a contents page with no links: my test PDF compiled without hyperref had no links and no bookmarks. Add \usepackage[hidelinks]{hyperref} to the preamble, normally as the last package, and Overleaf's documentation says the lines in the table of contents become links to the corresponding pages. The hidelinks option keeps the links but removes the coloured boxes, which otherwise appear on screen around every entry.

Three hyperref defaults surprise people, all listed in the hyperref manual and all visible in my test PDF:

  • Only the entry text is clickable. The default linktoc=section links the entry number and title, not the dots or the page number. Use linktoc=all to make both the title and the page number links, or linktocpage for the page number only.
  • Bookmarks have no chapter numbers. The side panel read "Introduction", not "1 Introduction", because bookmarksnumbered is false by default. Turn it on so the bookmarks match the contents page.
  • Page labels are set. pdfpagelabels is true by default, so the reader's page box shows "ii" and "1" just as the pages do (section 06 explains why that helps).

The preamble I use for a thesis turns all three on; in my test it made the page numbers clickable as well and put "1 Introduction" in the bookmarks:

main.tex, last line of the preamble
\usepackage[
  hidelinks,
  linktoc=all,
  bookmarksnumbered
]{hyperref}

The rest of the LaTeX contents (depth, spacing, adding the references) is in the guide to the table of contents in LaTeX.

Figure 3The clickable area (dashed) in the two test PDFs. Word links the whole line, page number included. LaTeX with hyperref's default links only the number and title; with linktoc=all the page number becomes a link as well.

05When you only have the PDF

If the Word, Google Docs or LaTeX file still exists, go back to it: fixing the contents there and exporting again takes minutes and gives correct links everywhere. Adobe's own article on the subject suggests converting the PDF to Word, adding the table there and saving back to PDF. For a short report that can work. For a thesis I advise against it: a conversion rebuilds the layout from the PDF, so page breaks, headers, numbering and tables can all shift, and you then have to check every page again.

With no source file, a full PDF editor such as Adobe Acrobat can draw a link over each line of an existing contents page and add bookmarks by hand. Acrobat's help pages could not be opened while I checked this guide, so I give no menu paths for it. Two warnings from practice: a hand-made link points to a fixed page, so it breaks if pages are added later; and every tool that rewrites the file afterwards (merging, compressing, adding a signed page) is another chance to lose links, so click them again in the final file.

Preview on a Mac

Preview shows a PDF's bookmarks under View › Table of Contents, but it can't create them. Its own Tools › Add Bookmark adds a Preview bookmark, and Apple's guide doesn't say that it is saved in the PDF, so don't count on an examiner seeing it.

06Contents numbers and the reader's page box

A thesis numbers its front matter in roman numerals and starts chapter 1 on page 1, so the PDF page count and the printed page numbers disagree. A PDF can store page labels that tell the reader what each page is called. My LaTeX PDF with hyperref had them; my Word PDF did not, and Microsoft documents no setting for them in Word's PDF options. Without labels, an examiner who reads "Methodology ... 37" in your contents and types 37 into the reader's page box lands 8 pages early, in the middle of chapter 2. Clicking the contents entry still works, which is one more reason to make it clickable.

Figure 4The same first chapter page, after eight front-matter pages. Without page labels the reader's page box says 9 while the page says 1; with page labels the box shows 1 and the position in brackets. How the box is drawn varies by reader.

Most university guides don't mention page labels, so don't fight Word over them. If yours does, or if a repository's checker flags it, a full PDF editor can add labels after export, or the thesis can be set in LaTeX. Whatever the source, the numbers printed in the contents must match the numbers printed on the pages: that is the part every examiner sees. Setting up roman and arabic numbering in Word is part of my thesis formatting checklist.

07Check the links before you submit

A clickable table of contents for PDF takes five minutes to check, and the check catches every problem in the next section. Do it on the exact file you will upload, after any merging or compressing.

  1. Hover over a contents line: the pointer should change to a hand. If nothing changes anywhere on the page, the contents has no links (see the first problem below).
  2. Click the first entry, the last chapter, the references and the last appendix. Each should land on the page where that heading starts, not a page before it.
  3. Compare five page numbers in the contents with the numbers printed on those pages.
  4. Click an entry in the list of figures and one cross-reference in the text.
  5. Open the bookmarks panel and check that the chapters, references and appendices are there.

Two hundred pages and the links point all over the place?I can rebuild the contents

08Why the contents won't click

When a PDF's table of contents doesn't work, the cause is almost always in the source file or in how the PDF was made. Unless a cause is credited to Microsoft, Google or the hyperref manual, I reproduced it in Word for Microsoft 365 on Windows or in TeX Live 2025.

No entry is clickable

One of four things: the PDF was printed to a PDF printer rather than saved; on a Mac it was exported with Best for printing; the contents page was typed by hand or inserted as the manual style; or Use hyperlinks instead of page numbers was cleared, so the field lacks \h. Right-click the contents, choose Toggle Field Codes and look for \h. If it is missing, insert an automatic table again, update it and save the PDF as in section 02. In LaTeX, the cause is a missing hyperref package.

A link lands before its chapter, on a blank page

Each Word entry links to a hidden bookmark at its heading. When I pressed Ctrl+Enter on Windows at the very start of a chapter title to push it to a new page, the page break went inside that hidden bookmark, and the PDF link landed on a blank page before the chapter instead of on its title. The printed page number was right, so the contents looked fine. Update entire table moved the target back to the heading. Better still, let the style start each chapter on a new page instead of typing breaks: right-click Heading 1 in the Styles gallery, choose Modify, then Format › Paragraph, and on the Line and Page Breaks tab tick Page break before.

The page numbers in the contents are wrong

The table wasn't updated after the last edit. Choose References › Update Table, then Update entire table; Microsoft notes that Update page numbers only ignores changes to the heading text, so a renamed chapter would keep its old title in the contents.

The link is right but the page box shows another number

The PDF has no page labels, as in section 06. The contents entry and the printed page agree; only the reader's page counter differs.

Coloured boxes around every entry (LaTeX)

That is hyperref's default link border. Load it with hidelinks; the links stay.

The links disappeared after merging or compressing

A tool rewrote the file and dropped its link annotations. If you need to add a signed declaration or a cover, put it in the source document and export again where you can, or merge with a tool you have tested on a copy, then repeat the checks in section 07.

Submission is close and the contents still won't behave?Send it to me

09Questions people ask

Can I create a table of contents for a PDF without Adobe Acrobat?

Yes. Word, Google Docs and LaTeX (with hyperref) all make a clickable contents page and bookmarks when they export a PDF. You need a PDF editor only when the source file is gone.

Does a clickable contents page need its page numbers?

For a thesis, yes. The PDF may also be printed, and university guides expect page numbers in the contents. Word's automatic styles keep the numbers and the links together, so you don't have to choose.

Will the links still work if my university converts the PDF to PDF/A?

Any conversion rewrites the file, so the links are only as safe as the tool that converts it. If you export PDF/A from Word yourself (ISO 19005-1 compliant (PDF/A) in the Options window on Windows), click a few entries in the result before you upload it.

Why does Word's table of contents show blue links instead of page numbers?

You are in Web Layout view. Word's automatic table includes the \z switch, which Microsoft says hides the tab leader and page numbers in Web layout view, so only the linked headings show there. Switch to View › Print Layout: the page numbers come back, and the PDF uses that layout.

How this was checked

The Word menu paths and option names come from Microsoft Support's pages on inserting, customising and updating a table of contents, the TOC field, cross-references and saving as PDF; the Google Docs steps from Google Docs Help and the Google Workspace Updates announcement of the layouts; the LaTeX options from Overleaf's documentation and the hyperref manual; the Preview menus from Apple Support. Every behaviour described as "in my test" was tested in November 2026 in Word for Microsoft 365 on Windows 11 (version 16.0), by building a sample thesis, saving it to PDF and reading the links, bookmarks and page labels back, and in TeX Live 2025 with hyperref 7.01l. I had no Mac to test on, so the Mac steps are Microsoft's own. Adobe's help pages could not be opened while checking, so this guide gives no Acrobat menu paths.

André Antão is a university lecturer in Management and Marketing at the Polytechnic University of Portalegre and a PhD candidate in Management. He has formatted theses in Word and LaTeX for 8 years.

Sources

  1. Insert a table of contents Microsoft Support
  2. Format or customize a table of contents in Word Microsoft Support
  3. Custom table of contents Microsoft Support
  4. Update a table of contents Microsoft Support
  5. Field codes: TOC (Table of Contents) field Microsoft Support
  6. Save or convert to PDF or XPS in Office desktop apps Microsoft Support
  7. Create or update a cross-reference in Word Microsoft Support
  8. Create accessible PDFs Microsoft Support
  9. Add a title, heading, or table of contents in a document Google Docs Help
  10. Change a document's page setup: pages or pageless Google Docs Help
  11. Improvements to content organization in Google Docs Google Workspace Updates
  12. Hyperlinks Overleaf documentation
  13. hyperref package and manual CTAN
  14. View PDFs and images in Preview on Mac Apple Support
  15. Bookmark PDF pages in Preview on Mac Apple Support
  16. How to create a table of contents on a PDF Adobe