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. Instead, you place your cursor where you want the table to appear, go to the Insert menu, select Table of Contents, and pick a style. Google Docs then scans your document for every heading, builds a clickable list, and updates it whenever you add, remove, or rename a heading.
The table works because Google Docs recognizes heading styles — Heading 1, Heading 2, Heading 3, and so on. If your document uses only normal paragraph text, there are no headings for the table to find, so you'll need to format some text as headings first.
Key Takeaways
- Your document must contain at least one heading (formatted as Heading 1, Heading 2, or Heading 3) before you can insert a table of contents.
- The table of contents is generated automatically from your headings and updates itself whenever you change a heading's text or add new ones.
- You can choose between three table styles: a blue hyperlinked version, a plain text version, or a version with dotted lines between titles and page numbers.
- Clicking any entry in the table jumps you directly to that section in your document.
Format your headings before inserting the table
Select the text you want to turn into a heading. This is usually a section title or chapter name. Open the Format menu at the top, click Paragraph styles, and choose Heading 1, Heading 2, or Heading 3. Heading 1 is typically your main section title, Heading 2 is a subsection under that, and Heading 3 is a subsection under Heading 2.
Repeat this for every section title in your document. You need at least one heading, but a useful table of contents usually has several. If you're writing a report with three main sections, format each section title as Heading 1. If any section has subsections, format those as Heading 2.
You can also apply heading styles using the toolbar. At the top left of the document, you'll see a dropdown that says "Normal text" by default. Click it and select the heading level you want. This is faster than using the Format menu once you know where it is.
Insert the table of contents
Click where you want the table to appear — usually at the very beginning of your document, after a title page or introduction. Go to the Insert menu at the top. Scroll down and click Table of Contents. Google Docs shows you three style options.
The first style is blue with hyperlinks. The second is plain text with hyperlinks. The third has dotted lines connecting each heading to a page number. Choose whichever matches the look you want. Click your choice, and Google Docs inserts the table immediately.
Update the table when your headings change
If you add a new heading, rename an existing one, or delete a section, the table of contents does not update on its own. Right-click anywhere inside the table and select Refresh. Google Docs scans your document again and updates the list to match your current headings.
You can also click the refresh icon that appears when you hover over the table. It looks like a circular arrow. This is the fastest way to update if you've made several changes at once.
Make the table clickable for readers
All three table styles are clickable by default. When someone reading your document clicks an entry in the table of contents, they jump directly to that section. This works whether you're sharing the document as a link, downloading it as a PDF, or printing it.
If you're sharing the document with others in Google Docs itself, they can click entries to navigate. If you download as a PDF, the links still work in most PDF readers. If you print the document, the links don't work on paper, but the page numbers remain accurate.
Troubleshoot a missing or empty table
If you insert a table of contents and it appears empty or says "No headings found", your document has no text formatted as a heading. Go back through your document and format at least one section title as Heading 1, Heading 2, or Heading 3 using the Format menu or the toolbar dropdown. Then refresh the table.
If you've formatted headings but the table still doesn't show them, make sure you used the official heading styles, not just bold or larger text. Bold text and font size changes don't count as headings. The Format menu's Paragraph styles section is the only way Google Docs recognizes a heading.
Delete or replace the table
Click anywhere inside the table of contents. A border appears around it. Press Delete or Backspace to remove it. The headings in your document stay exactly as they are — only the table disappears.
To replace it with a different style, delete the old table and insert a new one using the Insert menu. Choose a different style this time. You can change your mind as many times as you want without affecting your document's content.
Frequently Asked Questions
Can I manually edit the table of contents?
You can click inside the table and type, but Google Docs will overwrite your changes the next time you refresh. The table is meant to be generated automatically. If you need custom text, delete the table and create a manual list instead, though you'll have to update it yourself when headings change.
What's the difference between Heading 1, Heading 2, and Heading 3?
They're hierarchy levels. Heading 1 is your top-level section, Heading 2 is a subsection under it, and Heading 3 is a subsection under Heading 2. The table of contents shows all three levels indented to show the structure. Using them correctly makes your document easier to navigate and your table easier to read.
Does the table of contents work if I download the document as a Word file?
Yes. When you download as a .docx file, the table of contents comes with it and remains clickable in Microsoft Word. The formatting and links transfer over. If you download as a PDF, the table and its links also transfer, though the appearance may shift slightly depending on your PDF reader.
Can I have multiple tables of contents in one document?
Yes. Insert a table at the beginning for your main document, and insert another one later if you have a separate section that needs its own table. Each table pulls from all headings in the document, so both will show the same content. This is useful for long documents with multiple parts.
What happens if I change a heading's text after the table is created?
The table doesn't update automatically. Right-click the table and select Refresh, or click the refresh icon when you hover over it. Google Docs then scans your document and updates the table to match the new heading text.