How to Automatically Generate a Table of Contents from Headings in Microsoft Word

Manually typing out a Table of Contents (TOC) for a long document is a recipe for frustration. Every time you add a paragraph, delete a page, or change a chapter title, you are forced to manually track down and update the corresponding page numbers in your TOC. Microsoft Word includes a built-in automation engine that can generate a dynamic, clickable Table of Contents in seconds—provided you format your document correctly using Styles.

Step 1: Apply Heading Styles to Your Text

Word cannot magically guess which sentences are titles and which are body paragraphs based purely on font size or bold text. You must explicitly tag your titles using Word’s structural “Styles.”

  1. Scroll through your document and locate the title of your first main chapter or section.
  2. Highlight the text of the title.
  3. Navigate to the Home tab on the top ribbon.
  4. In the Styles gallery, click on Heading 1.
  5. If you have a sub-section within that chapter, highlight its title and click on Heading 2. For a sub-sub-section, use Heading 3.
  6. Repeat this process for every chapter and section title throughout your entire document.

Note: If you dislike the default blue color or font of the Heading styles, right-click the style in the gallery and select “Modify” to change its appearance globally.

Step 2: Insert the Automated Table of Contents

Once Word understands the hierarchical structure of your document, generating the index takes only two clicks.

  1. Place your cursor exactly where you want the Table of Contents to appear (usually on a blank page at the beginning of the document).
  2. Navigate to the References tab on the top ribbon.
  3. Click the Table of Contents button on the far left.
  4. From the dropdown menu, select either Automatic Table 1 or Automatic Table 2.

Word will instantly scan your document, extract every line of text tagged with a Heading style, calculate the correct page number, and build a perfectly aligned, dotted-leader Table of Contents. If you save the document as a PDF, these entries will automatically act as clickable hyperlinks.

Step 3: Updating the Table of Contents

The true power of an automated TOC is its ability to instantly adapt to future revisions.

  1. If you add new pages, change a chapter title, or delete an entire section, scroll back up to your Table of Contents.
  2. Click anywhere inside the Table of Contents box to select it.
  3. Click the Update Table button that appears in the top tab of the box (or right-click and select “Update Field”).
  4. Choose Update page numbers only if you only added text, or Update entire table if you added or changed the actual headings.
  5. Click OK.

The TOC will instantly refresh to reflect the current state of your document, saving you hours of tedious manual formatting.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.