How to Create a Table of Contents in Word (and Keep It Updated)
To create a table of contents in Word, apply Heading 1, Heading 2 and Heading 3 styles to your headings, put the cursor where the contents should go, then choose References > Table of Contents > Automatic Table 1. Word builds the list from your headings with page numbers. When the document changes, select Update Table to refresh it.
Key takeaways
- A Word table of contents is built from heading styles, not from bold or large text.
- Use an Automatic table; the Manual option doesn’t read your headings or update itself.
- Update it with References > Update Table, right-click > Update Field, or
F9. - Custom Table of Contents controls levels, dot leaders and style; the TOC field code gives finer control.
- Word for the web can update an existing table but you create one in desktop Word.
In this guide
How does a table of contents in Word work?
A table of contents in Word is a field that collects every paragraph formatted with a heading style and lists it with a page number and a clickable link. Heading 1 becomes the top level, Heading 2 the next, and so on. Because it’s a field, the table only changes when you update it.
This is why styling matters more than anything else. Text you’ve made bold and 16-point by hand looks like a heading but isn’t one, so Word ignores it. The most common support question we get about a Word TOC is “why is my heading missing?”, and nine times out of ten the heading was formatted by hand.
Heading styles bring other benefits too, and they work the same way across Office 2024 and Office 2021. They power the Navigation Pane (Ctrl + F, Headings tab), let you collapse sections, and give screen readers a proper document outline.
How to insert a table of contents in Word
To insert a table of contents in Word, format headings with Home > Styles > Heading 1, 2 or 3, click where the table should appear, then select References > Table of Contents and choose Automatic Table 1 or 2. Word inserts a formatted, hyperlinked contents list immediately. The steps are the same in Word 2024, 2021 and Microsoft 365.
- Select your first main heading and choose Home > Styles > Heading 1.
- Apply Heading 2 to subheadings and Heading 3 to the level below. Repeat through the document.
- Click where the table should go, usually after the title page. Pressing
Ctrl + Enterfirst gives it its own page. - Go to References > Table of Contents.
- Choose Automatic Table 1 (“Contents”) or Automatic Table 2 (“Table of Contents”).
- Hold
Ctrland click any entry to test that it jumps to the right section.
Avoid Manual Table. Microsoft’s guide to creating a table of contents warns that a manual table doesn’t use your headings and can’t update automatically. You’d have to type and maintain every entry yourself.
Quick heading shortcuts
| Shortcut | Applies |
|---|---|
Ctrl + Alt + 1 |
Heading 1 |
Ctrl + Alt + 2 |
Heading 2 |
Ctrl + Alt + 3 |
Heading 3 |
Ctrl + Shift + N |
Normal (removes heading style) |

How to update a table of contents in Word
To update a table of contents in Word, click inside it and select Update Table from the tab above it or from the References tab. Choose Update page numbers only if you’ve only added text, or Update entire table if you’ve added, renamed or removed headings. Right-click > Update Field and F9 do the same job.
- Click anywhere in the table of contents.
- Select Update Table (or press
F9). - Choose Update entire table unless you’re certain only page numbers changed.
- Select OK.
“Update entire table” overwrites any formatting you applied directly to TOC entries, which is one reason to change TOC styles rather than formatting the entries by hand (see below).
Keep it updated automatically before printing
Word doesn’t refresh the table on every edit, but it can do so whenever you print. Go to File > Options > Display and tick Update fields before printing. To refresh every field in the document at once, press Ctrl + A then F9, as described in Microsoft’s guide to updating fields.
Before exporting a PDF, update the entire table one last time so the page numbers and links match the final layout.
How to create a custom table of contents
To create a custom table of contents, select References > Table of Contents > Custom Table of Contents. In the dialog you can change how many heading levels appear, turn page numbers and dot leaders on or off, pick a format, and use Options to include extra styles. Select Modify to restyle each level.
| Setting | What it changes | Typical use |
|---|---|---|
| Show levels | How many heading levels appear (1 to 9) | Set to 2 for a short, tidy contents page |
| Show page numbers / Right align | Page number display | Turn off for web-only documents |
| Tab leader | Dots, dashes, line or none before page numbers | House style for reports |
| Formats | Preset designs (Classic, Formal, Modern and others) | Quick change of look |
| Options | Map any style to a TOC level | Include a custom “Appendix Title” style |
| Modify | Edit the TOC 1, TOC 2… styles | Change font, spacing and indents |
If Modify is greyed out, set Formats to From template first. Changing the TOC styles this way survives every update, unlike formatting the entries directly.
Adding or removing a single entry
To include a paragraph that isn’t a heading, select it and use References > Add Text to assign it a level. To remove an entry, change that paragraph’s style to Normal or set it to “Do Not Show in Table of Contents” via Add Text, then update the entire table.
Using an old or unlicensed copy of Word?
If Word is in reduced-functionality mode or you’re on an out-of-support version, editing and updating fields may be blocked. A standalone Microsoft Word 2024 licence is a one-off purchase, or you can get Word alongside Excel and PowerPoint with Office 2024.
Advanced: TOC field codes and switches
Behind every Word table of contents is a TOC field such as { TOC \o "1-3" \h \z \u }. Press Alt + F9 to show field codes, edit the switches, then press Alt + F9 again and update the table. This gives you control the dialog doesn’t, such as hiding page numbers for one level only.
| Switch | Effect |
|---|---|
\o "1-3" |
Includes heading (outline) levels 1 to 3 |
\h |
Makes entries hyperlinks |
\z |
Hides page numbers in Web Layout view |
\u |
Uses paragraph outline levels as well as heading styles |
\n 3-3 |
Removes page numbers from level 3 only |
\t "Style Name,1" |
Adds a custom style at a chosen level |
Edit carefully: a stray quotation mark breaks the field, and Word will show “Error! No table of contents entries found.” Press Ctrl + Z to undo if that happens.
Why is my Word TOC wrong? Common fixes
Most Word table of contents problems come from styles or stale fields: headings formatted by hand don’t appear, page numbers are out of date until you update, and odd entries appear when body text has an outline level. Updating the entire table and checking styles fixes nearly every case.
| Problem | Likely cause | Fix |
|---|---|---|
| Heading missing | Formatted manually, not with a heading style | Apply Heading 1–3, then Update entire table |
| “No table of contents entries found” | No heading styles in the document | Apply heading styles and update |
| Wrong page numbers | Table not updated after edits | Update Table > Update entire table |
| Body text appears in the TOC | Paragraph has an outline level set | Paragraph settings > Outline level: Body Text |
| Grey shading on the table | Field shading display | Normal on screen; it doesn’t print |
Shows { TOC … } code |
Field codes are displayed | Press Alt + F9 |
| Formatting lost after update | Entries were formatted directly | Modify TOC styles instead |
To start again, use References > Table of Contents > Remove Table of Contents, then insert a fresh one. If Word shows “Unlicensed Product” and won’t let you edit, see our fix for Office unlicensed product errors. If your documents are moving to a new PC, our guide to transferring Microsoft Office to a new computer covers the licence side.
Frequently asked questions
Why doesn’t my table of contents update automatically?
A Word table of contents is a field, and fields only refresh when you ask. Click the table and choose Update Table, or press F9. To make printing refresh it, turn on File > Options > Display > Update fields before printing. Word doesn’t update it live while you type.
Can I make a table of contents in Word for the web?
Microsoft’s guidance is that Word for the web can update an existing table of contents through References > Update Table, but you create one in the desktop app. Use Edit in Word (Open in Desktop App), insert the table there, save, and it will display and update online.
How do I add Heading 4 to my table of contents?
Go to References > Table of Contents > Custom Table of Contents and change Show levels to 4 or more. Select OK and replace the existing table when prompted. Alternatively, edit the field code to \o "1-4" and update the entire table.
How do I remove the dots in a Word table of contents?
Open References > Table of Contents > Custom Table of Contents and set Tab leader to “(none)”. You can also choose dashes or a solid line. Select OK and confirm replacing the current table; your entries and links stay as they were.
Why do my TOC links not work?
Entries are hyperlinks only if the field includes the \h switch, which Automatic tables do. In Word you must hold Ctrl and click unless you change the setting in File > Options > Advanced. In PDFs, export with “Create bookmarks using headings” for working links.
Does the table of contents work the same in Word 2024 and Microsoft 365?
Yes. The References tab, Automatic tables, Custom Table of Contents and field codes work the same way in Word 2024, Word 2021 and Word for Microsoft 365 on Windows. The Mac version has the same features with slightly different menu layouts.
The bottom line
Style your headings properly, insert an Automatic table, and update the entire table before you share or print. Custom settings and field codes cover the rest. If you’re also working on spreadsheets, our guide to Excel formulas for beginners is a good next read.
Useful links
| Resource | Why it helps |
|---|---|
| Microsoft: Create a table of contents | Official insert and update steps |
| Microsoft: Update fields | F9 and update-before-printing settings |
| Microsoft Word 2024 | Standalone Word licence |
| Office 2024 | Word with Excel, PowerPoint and more |
| Fix “Unlicensed Product” in Office | When Word blocks editing |
| Transfer Office to a new computer | Move your licence with your documents |
| Excel formulas for beginners | Next skill for Office users |