Google Docs creates a table of contents automatically from your headings
A table of contents in Google Docs pulls directly from the headings you've already formatted in your document. You don't type it manually — you insert it, and Google Docs reads your heading styles and builds the list for you. When you change a heading later, the table of contents updates on its own.
This works because Google Docs distinguishes between heading styles (Heading 1, Heading 2, Normal text) and uses those styles to know which lines belong in the table of contents. If your document has no formatted headings, you won't have anything to pull from.
Key Takeaways
- Your document must use Google Docs heading styles — Heading 1, Heading 2, and so on — not just bold or larger text, for the table of contents to work.
- You insert the table of contents from the Insert menu, and it automatically pulls from all headings in your document.
- The table of contents updates whenever you add, remove, or change a heading, so you don't need to rebuild it manually.
- You can place the table of contents anywhere in your document, though the beginning is most common.
- Readers can click on any entry in the table of contents to jump directly to that section.
Format your headings before you insert the table of contents
Open your document and select the first line you want to appear in the table of contents. This is usually your first major section heading. With that line selected, click the paragraph style dropdown — it's on the toolbar and usually says "Normal" by default. Choose Heading 1 from the list.
Move through your document and apply the same process to every section heading. Use Heading 1 for your main sections, Heading 2 for subsections within those, and Heading 3 for subsections within subsections. Google Docs will nest these in your table of contents so readers see the hierarchy — Heading 2 items will appear indented under their parent Heading 1, and so on.
Don't use bold or larger font size as a substitute for heading styles. Google Docs only recognizes the actual heading styles, not visual formatting. If you've already made text bold and bigger, you still need to apply the heading style to it for the table of contents to include it.
Insert the table of contents from the Insert menu
Click where you want the table of contents to appear — usually at the beginning of your document, after a title page or introduction. Click Insert in the menu bar, then scroll down and click Table of contents. Google Docs shows you a small menu with formatting options.
You'll see two or three style choices. The first option shows just the heading text with page numbers. The second shows heading text with a dotted line leading to the page number. Choose whichever looks right for your document, and click it. Google Docs inserts the table of contents immediately, pulling from every heading in your document.
Update the table of contents when your headings change
If you add a new heading, change an existing heading, or delete one, the table of contents doesn't update automatically in real time. Instead, right-click anywhere on the table of contents and select Update table. Google Docs rescans your document and refreshes the list.
You can also click once on the table of contents to select it, then press Ctrl+A (Windows) or Cmd+A (Mac) to select all the text within it, then press Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac) to refresh. The right-click method is simpler for most people.
Customize the appearance of your table of contents
After you insert the table of contents, you can change how it looks. Click on the table of contents to select it, then right-click and choose Edit table of contents. This opens the same style menu you saw when you first inserted it, letting you switch between the plain format, the dotted-line format, or other options Google Docs offers.
You can also edit the text directly — for example, if you want to change "Table of Contents" to "Contents" or another heading. Click once on the table of contents, then click again on the specific text you want to change. Edit it as you would any other text in your document. Note that if you update the table later, your custom text will revert to Google Docs' default, so make custom edits last.
Make the table of contents clickable for readers
When you share your document with others or publish it, readers can click on any entry in the table of contents to jump to that section. This works automatically — you don't need to set it up. The links are built in when Google Docs creates the table of contents from your headings.
This is one reason why using proper heading styles matters. If you've formatted section titles as bold text instead of using Heading 1, readers won't be able to click through to them, and they won't appear in the table of contents at all.
Troubleshoot a table of contents that's not showing your headings
If you insert a table of contents and it's empty or missing some sections, the problem is almost always that those sections aren't formatted with heading styles. Go back through your document and check: select each section title you want in the table of contents, open the paragraph style dropdown, and apply the correct heading level. Then right-click the table of contents and select Update table.
Another common issue is that you've applied a heading style to text that's also formatted as a list or table. Google Docs sometimes has trouble with these combinations. If a heading isn't appearing, try removing any list formatting or table formatting from that line, keeping only the heading style, then update the table of contents again.
Frequently Asked Questions
Can I have a table of contents in the middle of my document instead of at the beginning?
Yes. Click wherever you want it to appear — middle, end, or anywhere else — and insert it the same way. Google Docs will still pull from all headings in the entire document, including those before and after the table of contents. This is useful for very long documents where you want readers to see the structure partway through.
What happens to the table of contents if I delete a heading?
The deleted heading stays in the table of contents until you update it. Right-click the table of contents and select Update table, and Google Docs will remove the entry for the heading you deleted. The same applies when you add new headings — they won't appear until you update.
Can I delete or edit individual entries in the table of contents?
You can edit the text, but the changes won't stick. The next time you update the table of contents, it rebuilds from your headings, and your edits disappear. If you want permanent changes, edit the actual heading in your document instead, then update the table of contents.
Do I need to use all three heading levels, or can I just use Heading 1?
You can use just Heading 1 if your document has no subsections. Google Docs will create a flat list with no indentation. If you have subsections, using Heading 2 and Heading 3 makes the structure clearer — readers see which topics are main sections and which are subtopics.