Word Automatic Table of Contents: Create, Update and Fix It

Create a table of contents that updates correctly by applying Word’s built-in Heading 1, Heading 2, and Heading 3 styles to section titles, inserting an Automatic Table of Contents, and choosing Update entire table whenever headings change. These instructions cover Word for Microsoft 365, Word 2024, Word 2021, Word for Mac, and Word for the web. Advanced customization requires desktop Word; direct field-code editing is primarily a Word for Windows desktop feature.

Microsoft Word demonstrates creating and updating a table of contents across Windows, Mac, and web versions.Prepare the document with heading styles​

Word does not build an automatic table of contents from text merely because it is large, bold, centered, or underlined. It looks for heading styles and uses their outline levels to determine which entries belong in the table.
Use a consistent hierarchy:
  • Heading 1: Chapters or major sections
  • Heading 2: Sections within a Heading 1 section
  • Heading 3: Subsections within a Heading 2 section
  • Normal: Regular body text that should not appear in the table
To apply heading styles:
  1. Select the complete paragraph containing the first major section title.
  2. Open the Home tab.
  3. Find the Styles gallery.
  4. Select Heading 1.
  5. Select each second-level section title and apply Heading 2.
  6. Apply Heading 3 to any third-level subsections.
  7. Repeat until every title that should appear in the table has the appropriate heading style.
If the required style is not visible, select the More button in the Styles gallery to expand it.
Do not create the hierarchy by changing only the font size or indentation. A title formatted manually may look like a heading without being recognized as one.

Check the heading structure in Word for Windows​

The Navigation pane provides a quick way to catch missing or incorrectly nested headings before inserting the table:
  1. Open View.
  2. Select Navigation Pane, or press Ctrl+F.
  3. Select the Headings tab in the Navigation pane.
  4. Confirm that all intended section titles appear.
  5. Expand the arrows beside major headings to inspect the hierarchy.
If a heading is absent from the Navigation pane, select it in the document and apply the correct heading style. Microsoft notes that headings located inside tables, text boxes, headers, or footers do not appear in the Windows Navigation pane, so place normal document headings in the main document body where possible.

Insert an automatic table of contents in desktop Word​

Place the table after a cover page or near the beginning of the document. A separate page usually keeps the table easier to maintain.
  1. Click where the table should begin.
  2. If necessary, insert a page break by pressing Ctrl+Enter on Windows or Command+Enter on Mac.
  3. Open the References tab.
  4. Select Table of Contents.
  5. Choose one of the available Automatic Table designs.
Word generates the table from the heading styles in the document. Depending on the selected design and settings, entries normally include heading text, page numbers, indentation by level, and links to their destinations.
Save the document after insertion.
Do not choose Manual Table if you expect Word to maintain the entries. A manual table is editable placeholder text and cannot be rebuilt automatically from headings.

Insert a table of contents in Word for the web​

Word for the web supports heading-based tables of contents, although its customization options are more limited than desktop Word.
  1. Make sure the document is in editing mode.
  2. Apply Heading 1, Heading 2, and other required styles from Home > Styles.
  3. Click where the table should appear.
  4. Open the References tab.
  5. Select Table of Contents or Insert Table of Contents, depending on the current ribbon layout.
  6. Insert the available automatic table.
If the command is hidden, widen the browser window or inspect the overflow menu on the ribbon. For detailed formatting, custom style mapping, or field-code work, use Open in Desktop App and edit the document in Word for Windows or Mac.

Update the table after editing the document​

An automatic table of contents is a Word field, but its displayed results do not necessarily refresh after every document edit. Update it after changing headings, moving sections, or altering pagination.

Update from the References tab​

  1. Click anywhere inside the table of contents.
  2. Open References.
  3. Select Update Table.
  4. Choose one of the following:
    • Update page numbers only: Use this when the heading names and structure are unchanged, but text edits have moved them to different pages.
    • Update entire table: Use this after adding, deleting, renaming, promoting, demoting, or reorganizing headings.
  5. Select OK.
When uncertain, choose Update entire table. It refreshes both the listed heading text and the page numbers.

Update from the context menu​

In desktop Word:
  1. Right-click inside the table.
  2. Select Update Field.
  3. Choose the required update option.
  4. Select OK.
In Word for the web, right-click the table and select Update Table of Contents if that command is available in the current interface.

Update with the keyboard in Word for Windows​

To update only the selected table:
  1. Click inside the table of contents.
  2. Press F9.
On keyboards where function keys control hardware features, use Fn+F9.
To update fields throughout the main document:
  1. Press Ctrl+A.
  2. Press F9.
  3. Respond to any update prompts that appear.
Fields contained inside headers, footers, text boxes, or some tables may need to be selected and updated separately.

Make Word update fields before printing​

Word for Windows can update fields automatically as part of the printing process. This reduces the risk of distributing a document with old page numbers.
  1. Select File > Options.
  2. Select Display.
  3. Under Printing options, enable Update fields before printing.
  4. Select OK.
This setting applies beyond the table of contents and may also refresh other fields. Inspect the document’s print preview before producing the final PDF or printed copy.
Even with this option enabled, manually choose Update entire table after changing heading names or structure. That provides a chance to inspect the result before publication.

Control page numbers and the number of heading levels​

Desktop Word’s custom table dialog controls which levels appear and how page references are displayed.
  1. Open References > Table of Contents.
  2. Select Custom Table of Contents.
  3. Configure the available options:
    • Show page numbers: Displays or hides page numbers.
    • Right align page numbers: Places page numbers at the right margin.
    • Tab leader: Selects dots, dashes, a line, or no leader between entries and page numbers.
    • Formats: Applies one of Word’s predefined table formats.
    • Show levels: Determines how many heading levels are included.
  4. Review the preview.
  5. Select OK.
  6. If Word asks whether to replace the selected table, confirm the replacement.
For example, set Show levels to 2 to include Heading 1 and Heading 2 while excluding Heading 3 and lower levels.
Changing this setting does not remove heading formatting from the document. It only changes which heading levels the table displays.

Restyle the table without changing document headings​

The formatting inside the table is controlled by styles such as TOC 1, TOC 2, and TOC 3. These are separate from the Heading 1, Heading 2, and Heading 3 styles used in the document body.
To change the appearance of each table level in desktop Word:
  1. Open References > Table of Contents.
  2. Select Custom Table of Contents.
  3. Select Modify.
  4. If Modify is unavailable, set Formats to From template.
  5. Select the table style to edit:
    • TOC 1 controls first-level entries.
    • TOC 2 controls second-level entries.
    • TOC 3 controls third-level entries.
  6. Select Modify.
  7. Change the font, size, color, spacing, indentation, or other supported formatting.
  8. Select OK.
  9. Repeat for the remaining TOC levels.
  10. Select OK to apply the changes.
Avoid selecting individual entries inside the generated table and formatting them directly. Word may discard direct formatting the next time the entire table is rebuilt. Modify the TOC styles instead.
Word for the web preserves existing TOC styles but does not provide the complete desktop customization workflow. Use Open in Desktop App to restyle the levels.

Use numbered headings without breaking the table​

If the document needs chapter numbering such as 1, 1.1, and 1.1.1, connect numbering to Word’s heading styles instead of typing numbers manually.
In Word for Windows:
  1. Apply the built-in heading styles throughout the document.
  2. Select the first Heading 1 paragraph.
  3. Open Home.
  4. In the Paragraph group, select Multilevel List.
  5. Under List Library, choose a design that shows numbering linked to headings.
  6. Update the entire table of contents.
Using a heading-linked multilevel list keeps numbering consistent when sections are added, deleted, or moved. Manually typed numbers can become incorrect and require manual repairs.

Create a table from custom styles​

Some templates use named paragraph styles instead of the built-in Heading styles. Desktop Word can map those styles to table levels through the custom table options where available.
  1. Open References > Table of Contents.
  2. Select Custom Table of Contents.
  3. Select Options.
  4. Find the custom style in the list.
  5. Enter the table level that should use that style, such as 1 or 2.
  6. Remove unwanted level assignments from styles that should not be listed.
  7. Select OK.
  8. Select OK again and confirm replacement of the existing table.
Word for Windows also supports a TOC field with a \t switch for custom style mappings. Field-code editing is best reserved for templates that cannot be configured through the standard dialog.
Warning: Incorrect field syntax can produce an error or an incomplete table. Save a backup copy before replacing a working TOC field manually.
To insert a TOC field in Word for Windows:
  1. Click where the table should appear.
  2. Open Insert > Quick Parts > Field.
  3. Select TOC under Field names.
  4. Configure the supported field properties or options.
  5. Select OK.
  6. Press F9 if the result does not populate immediately.
Word for the web preserves existing field codes but does not provide full tools for adding or editing them. Open the file in desktop Word for this work.

Fix missing, incorrect, or duplicated entries​

A heading is missing​

  1. Select the missing title in the document body.
  2. Open Home > Styles.
  3. Apply the intended Heading style.
  4. Update the entire table.
Also check whether the title is inside a text box, header, footer, or another location that does not participate in the expected document outline.

A normal paragraph appears in the table​

The paragraph probably has a heading style or outline level applied.
  1. Select the unwanted paragraph.
  2. Apply Normal from Home > Styles.
  3. Update the entire table.
If it remains, inspect the custom table options to determine whether another paragraph style has been assigned a TOC level.

The heading indentation is wrong​

A Heading 2 entry shown at the same level as Heading 1 usually indicates an incorrect style assignment.
  1. Select the heading in the document.
  2. Apply the correct heading level.
  3. Check the hierarchy in the Navigation pane.
  4. Update the entire table.

Page numbers are incorrect​

  1. Confirm that the document has finished repaginating.
  2. Update the entire table rather than updating page numbers only.
  3. Save the file.
  4. Check File > Print or export a new PDF and inspect the final page numbers.
Changing paper size, margins, fonts, printer drivers, page breaks, or section breaks can alter pagination.

Updates replace custom formatting​

Directly formatting generated TOC entries is not durable. Reapply the desired formatting through References > Table of Contents > Custom Table of Contents > Modify, then edit the appropriate TOC styles.

“Error! Bookmark not defined” appears​

This usually means a generated link or referenced destination is damaged or no longer exists.
  1. Save a backup of the document.
  2. Click inside the table.
  3. Choose References > Update Table.
  4. Select Update entire table.
  5. If the error remains, remove and recreate the table from the current headings.

Remove and rebuild a damaged table​

Do not delete individual TOC lines one at a time. Use Word’s removal command so that the entire field is removed cleanly.
  1. Open References.
  2. Select Table of Contents.
  3. Select Remove Table of Contents.
  4. Verify the document headings and their levels.
  5. Click where the replacement should appear.
  6. Open References > Table of Contents.
  7. Choose an automatic table.
  8. Update the entire table.
  9. Save the document and verify several entries by selecting them and confirming that they lead to the correct headings.

References​

  1. Primary source: Technobezz
    Published: 2026-07-13T16:48:47.746000+00:00
  2. Official source: support.microsoft.com
 

Back
Top