Building a table of contents from your document headings

A table of contents in Word pulls directly from your document's heading styles — it does not require you to type anything manually. Word reads every heading you have formatted as Heading 1, Heading 2, or Heading 3, then builds a clickable list with page numbers that updates automatically when you add or move sections.

The fastest way is to place your cursor where you want the table to appear (usually after your title page), go to the References tab, click Table of Contents, and choose a style. Word generates the list in seconds. If your document has no formatted headings yet, Word will create an empty table — you need the heading structure first.

Key Takeaways

  • Word builds a table of contents from heading styles only, so every section title must be formatted as Heading 1, Heading 2, or Heading 3 before you insert the table.
  • The table appears wherever your cursor is positioned, so place it after your title page or introduction, not in the middle of your content.
  • Word's table of contents is live — right-click it to update page numbers and add new sections without rebuilding from scratch.
  • You can choose from automatic styles in the References tab, or customize the appearance by editing the TOC style itself.

Formatting your headings before you build the table

Word cannot create a table of contents from plain text. Every section title must carry a heading style. Select the title of your first major section, then go to the Home tab and click Heading 1 in the Styles group. Do the same for every main section heading in your document.

If you have subsections under those headings, format them as Heading 2. If you have sub-subsections, use Heading 3. Word will nest these in your table of contents — Heading 2 items will appear indented under their parent Heading 1, and so on. Do not skip levels (for example, do not jump from Heading 1 straight to Heading 3), because Word will still include them, but the structure will look wrong.

You can format headings as you write, or go back through a finished document and apply styles all at once. Either way, the table of contents will not appear until you insert it, and it will only include sections you have already styled.

Inserting the table of contents

Click where you want the table to appear — typically on a blank page after your title page or introduction. Go to the References tab at the top of the ribbon. Click the Table of Contents button. Word shows you several built-in styles: Automatic Table 1, Automatic Table 2, and Manual Table.

Choose Automatic Table 1 or Automatic Table 2 (the difference is visual — one has a border, one does not). Word inserts the table immediately, pulling all your formatted headings and their page numbers. If you choose Manual Table, you will have to type the entries yourself, which defeats the purpose — use Automatic instead.

If your document has no headings, Word will insert an empty table with placeholder text. Go back, format your section titles as headings, then right-click the table and select Update Field to populate it.

Updating the table when your document changes

After you insert the table, your document is not locked. You can add new sections, delete old ones, or move text around. The table of contents does not update automatically — you have to tell Word to refresh it.

Right-click anywhere in the table and select Update Field. A dialog box appears asking whether you want to update page numbers only or the entire table. Choose Update entire table if you have added or removed headings. Choose Update page numbers only if you have just moved text around and the headings are the same. Word recalculates in seconds.

You can also select the table and press Ctrl+A (or Cmd+A on Mac) to select all the text inside it, then press F9 to refresh. This is faster if you update frequently.

Making the table of contents clickable

By default, Word's table of contents is already clickable in the final document. Hold Ctrl and click any heading in the table, and Word jumps to that section. This works in the document itself and in PDFs exported from Word, as long as you export with bookmarks enabled.

If your table does not respond to clicks, check that you are in reading mode or print preview, not edit mode. In edit mode, Ctrl+click still works, but the cursor may land in the table itself instead of jumping. Switch to Read Mode (under the View tab) to test the links properly.

Customizing the appearance of your table

The built-in styles cover most documents, but you can change how your table looks. Right-click the table and select Edit Field. A dialog box opens with options to show or hide page numbers, change the number of heading levels included, and switch between different outline formats.

To change the font, colors, or spacing of the table itself, right-click it and select Styles, then Modify Style. This opens the style editor where you can adjust the appearance without affecting your document's body text. Changes apply to the table only.

If you want a completely different look, delete the current table, go to References > Table of Contents again, and try a different automatic style. Word gives you several options, and switching between them takes seconds.

Troubleshooting a table that will not build or update

If Word shows an empty table or refuses to update it, the most common cause is missing or inconsistent heading styles. Go through your document and verify that every section title is formatted as Heading 1, Heading 2, or Heading 3 — not as bold text or a custom style. Plain bold text will not appear in the table.

If you have formatted headings but the table still will not populate, delete the table, save the document, close it, and reopen it. Sometimes Word needs a restart to recognize style changes. Then insert a new table of contents.

If page numbers are wrong, check that you have not manually typed page numbers into your headings. Word calculates page numbers from the document's actual layout, so if you have inserted page breaks or changed margins, the numbers will shift. Update the table again after any layout change.

Frequently Asked Questions

Can I include text that is not a heading in my table of contents?

No, Word only pulls from Heading 1, Heading 2, and Heading 3 styles. If you want certain text in the table, you must format it as a heading, even if it does not look like one. You can then modify the heading style to match your document's appearance.

What if I want different heading levels to look different in the table of contents?

Word indents Heading 2 under Heading 1 and Heading 3 under Heading 2 automatically. To change fonts, sizes, or spacing for each level, right-click the table, select Styles, then Modify Style. You can edit the style for TOC 1, TOC 2, and TOC 3 separately.

Does the table of contents work in PDFs?

Yes, if you export to PDF from Word with bookmarks enabled. The links remain clickable in most PDF readers. When you export, Word asks whether to include document properties and bookmarks — choose yes. If you convert to PDF using a different tool, the links may not carry over.

Can I delete and rebuild the table without losing my document?

Yes. The table of contents is separate from your actual content. Delete it, make changes to your headings, then insert a new table. Your document text stays intact. This is useful if the table becomes corrupted or you want to switch to a different style.

What happens if I manually edit the table of contents?

Any manual changes you make will disappear the next time you update the table. Word rebuilds it from your headings, so edits inside the table itself do not stick. If you need permanent changes, modify the TOC style instead of editing individual entries.