A table of contents is a list at the start of your document that shows every heading and its page number

Most document editors can build this list automatically if your document uses heading styles — the built-in formatting options labeled "Heading 1," "Heading 2," and so on. The editor scans your document, finds every heading, and creates a clickable list that jumps to each section when you click it. You do not type it by hand.

The process differs slightly between editors, but the core idea is the same: format your headings first, then insert the table of contents. If you add or delete sections later, you can update the table in seconds.

Key Takeaways

  • A table of contents works only if your document uses heading styles (Heading 1, Heading 2, etc.), not bold or larger text.
  • In Microsoft Word, go to the References tab, click Table of Contents, and choose a style; Word pulls headings automatically.
  • In Google Docs, go to Insert, then Table of Contents, and select a format; the table updates when you change headings.
  • After you add or remove sections, right-click the table and select Update Field (Word) or click the refresh icon (Google Docs) to refresh page numbers and links.
  • If your table shows "Error! No table of contents entries found," your headings are formatted as bold text instead of heading styles.

How to format headings before creating a table of contents

Your document must use heading styles for the table of contents to work. Open your document and select the first heading you want to include. In Microsoft Word, click the Home tab, then click "Heading 1" in the Styles group. In Google Docs, click the Normal text dropdown at the top left, then select "Heading 1." Repeat for each major section heading, using "Heading 2" for subsections under those headings, and "Heading 3" for subsections under those.

Do not use bold text or larger font size instead of styles — the table of contents will not find them. If you have already formatted your document with bold headings, select each one and apply the heading style on top of the bold formatting. The style will stick, and the table will recognize it.

Check that your headings are in a logical order: Heading 1 for main sections, Heading 2 for subsections, Heading 3 for sub-subsections. A table of contents that jumps from Heading 1 to Heading 3 will look disorganized and confuse readers about the document structure.

Creating a table of contents in Microsoft Word

Open your document in Word and place your cursor on a blank page where you want the table to appear — usually right after the title page or at the very start. Click the References tab at the top of the screen. In the Table of Contents group, click the Table of Contents button. A menu appears with several style options: Automatic Table 1, Automatic Table 2, Manual Table, and others.

Choose Automatic Table 1 or Automatic Table 2 (they differ only in appearance). Word scans your document for all heading styles and inserts a formatted list with page numbers. Each heading becomes a clickable link — hold Ctrl and click any heading to jump to that section.

If you later add new sections or change heading text, right-click the table and select Update Field. A dialog box asks whether to update page numbers only or the entire table. Choose Update entire table to refresh both the heading text and page numbers.

Creating a table of contents in Google Docs

Open your document in Google Docs and click where you want the table to appear. Click Insert in the menu bar, then scroll down and click Table of Contents. Google Docs shows three format options: a blue outline style, a simple blue style, and a simple black style. Click the one you prefer. Google Docs inserts the table immediately and scans for all headings in your document.

The table updates automatically as you edit — if you add a new Heading 1, it appears in the table within seconds. If you change a heading's text, the table reflects the change right away. If page numbers seem wrong or a heading is missing, click the three-dot menu icon next to the table and select Refresh.

To navigate using the table, click any heading in the list. Google Docs jumps to that section and highlights it. This works on any device — phone, tablet, or computer — as long as you are viewing the document in Google Docs.

Creating a table of contents in other editors

LibreOffice Writer works similarly to Word. Format your headings with the Heading styles in the Styles sidebar, then go to Insert > Table of Contents and Index > Table of Contents. Choose a style and click OK. LibreOffice inserts the table and updates it when you right-click and select Update Index.

Apple Pages has a simpler approach. Format your headings using the built-in Heading styles, then go to Insert > Table of Contents. Pages shows a preview of how the table will look and inserts it when you click. Pages updates the table automatically as you edit.

Markdown editors like Obsidian and Notion do not have automatic table of contents in the same way, but they let you link to headings manually. In Obsidian, type [[#Heading Name]] to create a link to a heading. In Notion, use the Table of Contents block, which scans your page for headings and creates a clickable list automatically.

Troubleshooting a table of contents that will not work

If your table shows "Error! No table of contents entries found" in Word, your headings are not formatted with heading styles. Select each heading, apply the correct heading style from the Home tab, then right-click the table and select Update Field. The error should disappear.

If the table shows the wrong page numbers, your document may have page breaks or section breaks that are throwing off the count. Check that page breaks are in the right places — go to the Home tab, click the paragraph mark icon to show hidden formatting, and look for page break symbols. Delete any breaks that are in the middle of a section.

If a heading does not appear in the table, check that it uses a heading style, not bold or a larger font. Select the heading, apply the correct style, then update the table. If the heading still does not appear, it may be in a text box or a shape — tables of contents cannot read text inside boxes, only text in the main document body.

When to update your table of contents

Update your table after you finish writing and before you print or share the document. If you add sections, delete sections, or change heading text, update the table so readers see the current structure. In Word, right-click the table and select Update Field. In Google Docs, click the refresh icon next to the table. In LibreOffice, right-click and select Update Index.

If you are still editing and sections are moving around, you can wait until you are done to update once. But if you are sharing a draft with someone else, update the table first so they can navigate the document easily. A table with wrong page numbers or missing sections makes a document look unfinished.

Frequently Asked Questions

Can I manually edit a table of contents after it is created?

You can, but changes will disappear when you update the table. It is better to edit the headings themselves, then update the table. If you need to add text that is not a heading — like "Introduction" — add it as a regular paragraph, not in the table.

What if my document has no headings yet?

Go through your document and format each section title with a heading style before inserting the table. Start with Heading 1 for main sections, Heading 2 for subsections. Once all headings are styled, insert the table and it will populate automatically.

Does a table of contents work in PDF?

Yes, if you create the table in Word or Google Docs first, then export to PDF. The table becomes a clickable outline in most PDF readers. If you create a PDF without a table of contents, you cannot add one afterward — you must go back to the original document.

Can I have multiple tables of contents in one document?

Yes. Insert the first table, then later in the document insert another. Each table will show only the headings that appear after the previous table. This is useful for long documents with multiple parts, where each part has its own table.

What happens if I delete a heading after creating the table?

The heading stays in the table until you update it. Right-click the table, select Update Field (Word) or click refresh (Google Docs), and the deleted heading will disappear from the list.