Google Docs builds a table of contents automatically from your headings

A table of contents in Google Docs reads the headings you've already written in your document and creates a clickable list at the top. You don't type it yourself — you insert it, and Google Docs pulls the headings in automatically. When you change a heading later, the table of contents updates on its own.

This works only if you've formatted your headings using Google Docs' heading styles (Heading 1, Heading 2, and so on), not by making text larger or bold. If your document uses only plain text with no formatted headings, a table of contents won't have anything to pull from.

Key Takeaways

  • A table of contents pulls from headings you've already formatted using Google Docs' Heading 1, Heading 2, and Heading 3 styles — not from text you've made bold or large.
  • You insert a table of contents by clicking Insert, then Table of Contents, then choosing a layout style.
  • The table of contents updates automatically whenever you add, remove, or change a heading in your document.
  • Readers can click any entry in the table of contents to jump directly to that section.
  • If your table of contents shows "No headings found", your document text is formatted as plain text rather than as heading styles.

Format your headings before you insert the table of contents

Open your document and look at the text you want to appear in the table of contents. These need to be formatted as headings, not just made larger or bold. Select the first heading text with your mouse or trackpad.

At the top of the page, find the style dropdown — it usually says "Normal text" or shows the current style. Click it and choose Heading 1 for your main section headings. For subsections under those, use Heading 2. If you have subsections under those, use Heading 3. Google Docs will only include Heading 1, 2, and 3 in the table of contents, so don't use Heading 4 or lower if you want those entries to appear.

Repeat this for every heading in your document. The table of contents will pull from all of them once you insert it.

Insert the table of contents

Click Insert in the menu bar at the top of the page. A dropdown menu will appear. Look for Table of Contents — it's usually near the middle of the menu. Click it.

Google Docs will show you three layout options. The first is a simple numbered list. The second adds a blue line on the left. The third is a blue box around the whole thing. Pick whichever looks right for your document and click it. Google Docs will insert the table of contents at your cursor position, usually at the very top of the document.

If you see "No headings found" instead of a list of your sections, your text isn't formatted as headings. Go back and apply Heading 1, Heading 2, or Heading 3 styles to the text you want to include, then try inserting the table of contents again.

Move the table of contents to a different page

Google Docs inserts the table of contents wherever your cursor is sitting. If you want it on its own page at the beginning of your document, click at the very top of your document first, before you insert it.

If the table of contents is already in the wrong spot, click on it to select it, then cut it (Ctrl+X on Windows, Cmd+X on Mac). Click where you want it to go and paste it (Ctrl+V or Cmd+V). You can also add a page break after the table of contents by clicking Insert, then Break, then Page Break.

Update the table of contents when you change your headings

After you insert the table of contents, you can still add new headings, delete old ones, or change heading text. The table of contents won't update automatically — you have to tell it to. Right-click on the table of contents (or on a Mac, hold Control and click). A small menu will pop up. Click Refresh.

Google Docs will scan your document again and update the table of contents to match your current headings. If you've added a new heading, it will appear in the list. If you've deleted a heading, it will disappear from the list. If you've changed the text of a heading, the table of contents will show the new text.

Readers can click entries to jump to sections

Once the table of contents is in your document, anyone reading it can click on an entry to jump straight to that section. The link is blue and underlined, just like a web link. This works whether someone is reading the document in Google Docs or has downloaded it as a PDF or Word file.

If you share the document with others, they'll see these clickable links too. This is especially useful for long documents where readers might want to skip to a specific section without scrolling through everything.

Remove or replace the table of contents

If you decide you don't want the table of contents anymore, click on it to select it and press Delete. The table of contents will disappear, but your headings will stay in the document — only the list is removed.

If you want to change the style of the table of contents (for example, from the simple list to the blue box version), delete the current one and insert a new one using a different layout. You can have only one table of contents per document.

Frequently Asked Questions

What's the difference between Heading 1, Heading 2, and Heading 3?

Heading 1 is for your main section titles. Heading 2 is for subsections under those. Heading 3 is for subsections under Heading 2. All three appear in the table of contents. Heading 4 and below do not, so use only 1, 2, and 3 if you want everything to show up in your table of contents.

Can I manually edit the table of contents?

You can click into the table of contents and change text, but Google Docs will overwrite your changes the next time you refresh it. It's better to edit the actual headings in your document and then refresh the table of contents. That way your changes stick.

What if I have a really long document with many subsections?

The table of contents will include all Heading 1, 2, and 3 entries, no matter how many there are. If it gets too long, you can choose to show only Heading 1 and Heading 2 by not using Heading 3 in your document. There's no setting to hide certain levels — you control what appears by what heading styles you use.

Does the table of contents work if I download the document as a PDF?

Yes. The table of contents and its clickable links will work in a PDF. When someone opens the PDF, they can click the entries to jump to those sections, just as they can in Google Docs.

Can I have more than one table of contents in a document?

Google Docs allows only one table of contents per document. If you insert a second one, it will replace the first. If you need multiple lists of different content, you'll have to create them manually.