How to insert a table of contents in Word

Quick answer: Format each section title with a heading style (Heading 1, Heading 2 and so on) from the Styles gallery on the Home tab. Then click where the table should go, select References > Table of Contents and pick one of the automatic styles. Word builds the list from your headings. When the document changes, select Update Table on the References tab and choose Update entire table.

Applies to: Word for Microsoft 365, Word 2024, Word 2021, Word 2019 and Word 2016 on Windows. Microsoft’s table of contents articles also list Word for Mac and Word for the web, which get a short section below. The steps are written for the Windows desktop app and start with the simplest one.

Method 1: Mark your headings with heading styles

An automatic table of contents doesn’t read your text for big or bold lines. It collects paragraphs that carry a heading style, so this step decides what ends up in the list. Microsoft’s instructions start with this step: Word uses the headings to build the table and to refresh it when their wording, order or level changes.

  1. Select the text of a chapter or section title.
  2. On the Home tab, in the Styles gallery, select Heading 1.
  3. Give subsections Heading 2, and the parts inside them Heading 3.
  4. Repeat for every title you want listed.

The level of the style becomes the indent level in the table, so a Heading 2 sits under the Heading 1 before it. If you don’t like how the built-in headings look, change the style itself (right-click it in the gallery and choose Modify) instead of formatting each title by hand; manual bold text won’t be picked up. To check the structure before you insert anything, open View > Navigation Pane: it lists the paragraphs Word treats as headings, which is a quick preview of what the table will contain.

Method 2: Insert an automatic table of contents

  1. Click where the table should appear. A page of its own after the title page is a natural spot; press Ctrl+Enter to start a new page if you need one.
  2. Select References > Table of Contents.
  3. Choose one of the automatic styles at the top of the gallery.

Word inserts a heading, one line per heading in your document and the page number each one starts on. In the desktop app the entries also act as links: hold Ctrl and click an entry to jump to that section, unless your settings follow links with a plain click.

The gallery also offers a manual table. Avoid it unless you want to type every entry yourself: Microsoft notes that Word can’t update a table that wasn’t created from the headings, so any change has to be typed in by hand.

Method 3: Update the table after you edit

The table is a snapshot. It doesn’t change while you write, so refresh it after adding sections, renaming headings or moving pages around, and once more before you print or export a PDF.

  1. On the References tab, select Update Table.
  2. Pick one of the two options. Update page numbers only refreshes the numbers and leaves the entry text alone. Update entire table also brings in new, renamed and deleted headings.
  3. Select OK.

Microsoft also gives a shortcut: right-click inside the table and choose Update Field, which should bring up the same two options. Pick the full update whenever you changed a heading’s text. The page-numbers-only option is useful when you edited the table text by hand and want to keep that wording, since a full update rebuilds the entries from the headings.

Method 4: Change levels, dot leaders and the look

Microsoft’s insert and update articles don’t cover the customization dialog, so the labels below are a general guide and can differ slightly between versions. In the Windows desktop app:

  1. Select References > Table of Contents > Custom Table of Contents.
  2. Use Show levels to choose how many heading levels appear. Set it to 2 for a short list of chapters and main sections, or raise it if Heading 4 entries are missing.
  3. Open Tab leader to switch between dots, dashes, a solid line or no leader between the entry text and its page number.
  4. Pick a look under Formats. From template uses the TOC styles in your document, which you can change with the Modify button.
  5. Clear Show page numbers or Right align page numbers if you don’t want them.
  6. Select OK, and confirm when Word asks whether to replace the existing table.

Settings made in this dialog should carry over when you update. Formatting applied directly to the entries may be lost in a full update, so make lasting changes here or in the TOC styles.

Method 5: Add a paragraph without restyling it

Sometimes a line should appear in the table but you don’t want it to look like a heading, for example an appendix title set in a custom style. The Add Text button in the Table of Contents group on the References tab handles this. It isn’t described in the Microsoft articles cited here, so treat the steps as a pointer:

  1. Click in the paragraph you want to include.
  2. Select References > Add Text and choose a level, such as Level 1. Do Not Show in Table of Contents takes a heading out of the list.
  3. Update the table with Update entire table.

Add Text is generally described as setting the paragraph’s outline level, and in some versions it may also apply the matching heading style. If the paragraph’s look changes, undo with Ctrl+Z and set the outline level in the Paragraph dialog instead.

Remove a table of contents

Microsoft’s pages cited here don’t cover removing a table, so check the labels in your version. Select References > Table of Contents and look for Remove Table of Contents at the bottom of the gallery. If your version doesn’t show it, click the table, select the tab that appears on its top edge to select the whole table, and press Delete. Removing the table should leave your headings and their styles as they are, so you can insert a new one at any time.

Word for the web and Word for Mac

Both are listed on Microsoft’s table of contents pages, and the update article presents the same Update Table steps for all versions. Microsoft’s insert article doesn’t spell out the platform steps, so use these notes as a starting point:

  • Word for the web: heading styles are on the Home tab as on Windows, and References > Table of Contents should insert the table. Fewer formatting choices may be offered; if you need custom levels or leaders, open the file in the desktop app where that option is available.
  • Word for Mac: the References tab should offer Table of Contents, Update Table and a custom table option. Following an entry’s link may work differently from Windows, since Ctrl+click opens the context menu on a Mac.

When headings are missing or page numbers are wrong

The causes below are possibilities to check, not a diagnosis. Start with a full update.

What you seePossible causeWhat to try
A section title isn’t listedThe title has no heading styleApply a heading style, then Update entire table
Renamed headings still show the old textOnly page numbers were updatedUpdate Table, then Update entire table
Page numbers point to the wrong pagePages moved since the last updateUpdate Table, then Update page numbers only
Heading 3 or 4 entries are missingShow levels is set lower than the heading levelRaise Show levels in Custom Table of Contents
Update Table changes nothingThe table was typed in as a manual tableRemove it and insert an automatic table

If a full update doesn’t fix it, Word table of contents not updating goes through stuck fields, stray entries and error text. When the numbers in the table match but the page numbers in the footer look wrong, see Word page numbers wrong or not showing.

Sources

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *