How to Add Hyperlinks to TOC Entries in Word
🔍 WiseChecker

How to Add Hyperlinks to TOC Entries in Word

By default, a Table of Contents in Word displays static page numbers. You can convert those entries into clickable hyperlinks so readers can jump directly to any section. This feature is built into Word’s TOC field codes and does not require manual linking. This article explains how to enable TOC hyperlinks, how to create a linked TOC from scratch, and what to do if the links do not behave as expected.

Key Takeaways: Linking a Table of Contents to Document Sections

  • References > Table of Contents > Custom Table of Contents > Options > Use hyperlinks instead of page numbers: Creates a TOC where each entry is a clickable link to its heading.
  • Ctrl + Click to follow a hyperlink: Default behavior in Word requires holding Ctrl while clicking a TOC entry to jump to the heading.
  • Field code toggle (Alt + F9): Reveals the underlying \h switch that makes a TOC entry a hyperlink — verify it is present if links stop working.

ADVERTISEMENT

Understanding How TOC Hyperlinks Work in Word

Word generates a Table of Contents using a field code named TOC. When you insert a TOC through the References tab, Word automatically applies the \h switch to the field code. This switch converts each TOC entry into a hyperlink that points to the corresponding heading in the document. The hyperlinks are invisible in the printed version but become active when the document is viewed on screen. No additional macro or manual linking is needed. The prerequisite for a working linked TOC is that all entries are based on built-in heading styles (Heading 1, Heading 2, Heading 3) or custom styles that are included in the TOC definition.

The \h Switch and Field Code Anatomy

Every TOC field code contains switches that control its appearance and behavior. The \h switch specifically tells Word to format each entry as a hyperlink. When you insert a TOC using the default method, the field code looks like this: { TOC \o “1-3” \h \z \u }. If the \h switch is missing, the entries will not be clickable. You can view the field code by pressing Alt + F9. If you see no \h switch, you can type it in manually or reinsert the TOC using the correct option.

Steps to Add Hyperlinks to a New TOC

Use this method when you are creating a new Table of Contents. It ensures the \h switch is included from the start.

  1. Apply heading styles to your document
    Select each section title and apply Heading 1, Heading 2, or Heading 3 from the Home tab > Styles group. The TOC will only recognize these styles unless you add custom styles later.
  2. Place the cursor where you want the TOC
    Click at the beginning of your document or on a blank page where the Table of Contents will sit.
  3. Open the Custom Table of Contents dialog
    Go to References > Table of Contents > Custom Table of Contents. Do not choose a built-in automatic style from the dropdown — those do not expose the hyperlink option.
  4. Enable hyperlinks in the TOC options
    In the Table of Contents dialog, click Options. In the Options dialog, check the box labeled Use hyperlinks instead of page numbers. Click OK to close the Options dialog, then click OK to insert the TOC.
  5. Test the hyperlinks
    Hold the Ctrl key on your keyboard and click any TOC entry. Word should jump to the corresponding heading in the document. The pointer changes to a hand icon when hovering over a linked entry.

ADVERTISEMENT

Steps to Add Hyperlinks to an Existing TOC

If you already have a TOC that shows page numbers but does not have clickable links, you can modify its field code without rebuilding the entire table.

  1. Select the existing TOC
    Click anywhere inside the Table of Contents. The entire TOC becomes shaded in gray, indicating it is a field.
  2. Open the field code
    Press Alt + F9 on your keyboard. The TOC changes to display its field code, which looks something like { TOC \o “1-3” \z \u }.
  3. Add the \h switch
    Click just after the last switch in the field code. Press the spacebar once, then type \h. The field code should now read { TOC \o “1-3” \h \z \u }.
  4. Update the field
    Press Alt + F9 again to hide the field code. Right-click the TOC and choose Update Field. Select Update entire table to apply the change. All entries now become hyperlinks.
  5. Test the links
    Ctrl + Click any entry to verify it jumps to the correct heading.

If Hyperlinks in the TOC Are Not Working

Ctrl + Click Does Not Jump to the Heading

This is the most common issue. Word requires you to hold Ctrl while clicking a TOC hyperlink. If the link does nothing, check that the \h switch is present in the field code. Press Alt + F9 to inspect the code. If the switch is missing, add it and update the field. Also confirm that the heading still exists in the document. If you deleted or renamed a heading, the hyperlink will point to a missing target. Update the TOC by right-clicking it and selecting Update Field > Update entire table.

Hyperlinks Work in Word but Not in PDF

When you save a Word document as a PDF, TOC hyperlinks may lose their connection if the PDF export settings do not preserve links. Go to File > Save As > PDF. Click Options and make sure the checkbox Create bookmarks using headings is checked. Also check Document structure tags for accessibility. These settings keep the TOC hyperlinks active in the PDF file.

TOC Entries Show Page Numbers Instead of Links

This happens when you insert a TOC using one of the built-in automatic styles from the Table of Contents dropdown. Those styles do not enable the hyperlink option. To fix this, delete the existing TOC and reinsert it using References > Table of Contents > Custom Table of Contents. In the dialog, click Options and check Use hyperlinks instead of page numbers.

Linked TOC vs Static TOC: Behavior Differences

Item Linked TOC (with \h switch) Static TOC (no \h switch)
Navigation method Ctrl + Click to jump to heading Manual scroll or page number lookup
Field code switch Includes \h Omits \h
Print behavior Prints as regular text — links are not active on paper Same — prints page numbers only
PDF export Hyperlinks remain active if export options include bookmarks No clickable links in PDF
Update method Right-click > Update Field > Update entire table preserves links Same — but links are never created

You can now create a Table of Contents with clickable hyperlinks that let readers jump directly to any section. Use the Custom Table of Contents dialog to enable the hyperlink option when inserting a new TOC. If you need to fix an existing TOC, add the \h switch to its field code. For PDF output, adjust the export settings to keep the links active. As an advanced tip, you can combine the \h switch with the \n switch to suppress page numbers entirely, creating a pure hyperlinked navigation menu for online documents.

ADVERTISEMENT