How to Create a Table of Contents in Google Docs

Updated 4 min read Video

Quick answer

To create a table of contents in Google Docs, apply heading styles (Format → Paragraph styles) to your section titles, click where the TOC should go, and choose Insert → Page elements → Table of contents. Pick page numbers or blue links. When headings change, click the TOC and select Refresh.

Watch the video walkthrough

A table of contents (TOC) in Google Docs is built from heading styles, not from bold or large text. Each entry links to its heading, which makes long reports, theses and merged documents easier to navigate.

Steps in this guide:

Step 1: Apply heading styles to your section titles

Use this first, because the TOC only lists text that has a heading style.

  1. Select a section title.

  2. Open the Styles dropdown in the toolbar (it usually shows Normal text), or click Format → Paragraph styles.

    Google Docs Styles dropdown with heading options

  3. Choose a heading level:

    • Heading 1 for main sections
    • Heading 2 for subsections
    • Heading 3 to Heading 6 for deeper levels
  4. Repeat for every section title. Keep the levels in order, without skipping from Heading 1 to Heading 3.

Docs supports Heading 1 to Heading 6, per Google’s headings and table of contents help.

Step 2: Insert the table of contents

Use this once your headings are in place.

  1. Click where you want the TOC to appear.

  2. Optional: give it its own page with a page break, Ctrl + Enter (Windows) or Cmd + Enter (Mac).

  3. Click Insert → Page elements → Table of contents.

    Insert menu with Page elements submenu expanded and Table of contents selected; With page numbers and With links options visible

  4. Choose a style:

    • With page numbers for print and PDF
    • With links (blue links) for documents people read on screen

Result: The table of contents appears straight away, listing your headings with page numbers or links.

Formatting a table of contents

Use More options to change how the TOC looks and which heading levels it shows.

  1. Click the table of contents.

  2. To its left, click More options (the three dots). A panel opens on the right.

    Table of contents selected with More options menu open; Formatting (page numbers, blue links, tab leader) and Heading levels toggles visible

  3. Under Formatting, choose page numbers or blue links, and turn the tab leader on or off. Moving to Word? You can add dotted tab leaders in Word too.

  4. Under Heading levels, turn levels on or off to make the TOC shorter or more detailed.

  5. Adjust the heading indents so each level is easy to scan.

A finished table of contents in Google Docs listing headings and subheadings with page numbers

Refreshing or deleting the table of contents

  • Refresh: after you add, rename or remove headings, click the TOC and select Refresh. It doesn’t update on its own.
  • Edit an entry: change the heading in the document, then refresh. Don’t type inside the TOC.
  • Delete: right-click the TOC and choose Delete table of contents.

Tip: If you don’t see Refresh, click inside the table of contents first.

Table of contents vs document outline

Use the outline for your own navigation while editing, and the TOC for readers.

FeatureBest forWorks on
Table of contentsReaders of the printed, PDF or shared documentInside the document body; prints and exports
Document outlineJumping between headings while you editLeft panel (Show tabs & outlines); not printed

Pageless format and document tabs

The TOC behaves a little differently in these two cases.

  • Pageless format: you can insert a TOC, but Google says you can’t change its formatting while the document is pageless. Pageless documents also have no page numbers. Switch with Format → Switch to Pages format.
  • Document tabs: each tab has its own outline under Tab options → Show outline. If your TOC doesn’t list headings from other tabs, add a TOC to each tab, or link between tabs with Tab options → Copy link. See Google’s document tabs help.

Troubleshooting

  • A heading is missing. It isn’t styled as a heading, or its level is off in More options. Fix it, then click Refresh.
  • The wrong text appears in the TOC. That line has a heading style. Set it back to Normal text in the Styles dropdown, then refresh.
  • Page numbers are wrong after edits. Click Refresh before you print or export.
  • The formatting options are greyed out. The document is pageless; switch to Pages format.

What to do next

A TOC is most useful in long documents.

Frequently asked questions

Does a Google Docs table of contents update automatically?

No. After you add or edit headings, click the table of contents and select Refresh to update it.

Why is a heading missing from my table of contents?

The line isn't styled as a heading, or its heading level is turned off. Apply a Heading style to it, check the levels in More options, then click Refresh.

Which headings can a Google Docs table of contents include?

Docs has Heading 1 to Heading 6 styles, and the table of contents builds from your headings and title. In More options you can choose which heading levels to show.

How do I delete a table of contents in Google Docs?

Right-click the table of contents and choose Delete table of contents.

Can I add a table of contents to a pageless document?

You can insert one, but Google says you can't change its formatting while the document is pageless. Switch to Pages format to format it.