A table of contents is a clickable list at the start of your document that jumps readers to each section
The simplest table of contents is just a list of your section headings with page numbers next to them. In most word processors — Microsoft Word, Google Docs, LibreOffice — you build it by marking your headings with the built-in heading styles, then inserting a table of contents field that pulls those headings automatically. The software does the numbering and updates it when you add or remove sections.
The reason to use the automatic method instead of typing one by hand is that your table of contents stays correct as you edit. If you add three paragraphs and your "Conclusion" section moves from page 12 to page 15, the automatic version updates itself. A typed list does not.
How you build it depends on which program you are using, but the first step is always the same: format your section headings using heading styles, not just by making text bigger or bold.
Key Takeaways
- Use your word processor's built-in heading styles (Heading 1, Heading 2) to mark section titles, not manual formatting like bold or larger font size.
- The automatic table of contents pulls from these styled headings and updates page numbers when you edit, so you do not have to fix it by hand.
- In Word, go to References > Table of Contents and pick a style; in Google Docs, go to Insert > Table of Contents; in LibreOffice, go to Insert > Table of Contents and Index.
- Place your table of contents near the front of the document, usually after the title page but before the introduction.
- If you change a heading after the table of contents is built, right-click it and select Update Field to refresh the page numbers.
How to format headings so your word processor recognizes them
Open your document and find the section you want to list. Select the heading text — just the words, not the whole paragraph. Then look for the Styles panel in your word processor. In Microsoft Word, it is on the right side of the screen by default, or you can open it with Ctrl+Alt+Shift+S on Windows or Cmd+Ctrl+S on Mac. In Google Docs, click Format > Paragraph Styles. In LibreOffice, press F11 to open the Styles sidebar.
Click on "Heading 1" for your main section titles. Use "Heading 2" for subsections under those, and "Heading 3" for sub-subsections if you have them. The software will format the text automatically — usually Heading 1 becomes larger and bold, Heading 2 slightly smaller, and so on. Do not override this by manually changing the font size or color afterward, because the table of contents reads the style name, not the appearance.
Apply the same heading level to all sections at the same depth. If you have five main sections, all five should be Heading 1. If three of them have subsections, those subsections should all be Heading 2. Consistency is what lets the software build an accurate list.
Building the table of contents in Microsoft Word
Once all your headings are styled, place your cursor at the beginning of your document, usually on a blank page after your title page. Go to the References tab at the top. Click Table of Contents and choose a style — Automatic Table 1 and Automatic Table 2 are the most common, and they look nearly identical. Word will insert a formatted list of all your Heading 1 and Heading 2 sections with page numbers.
If you want to include Heading 3 sections as well, right-click the table of contents and select Modify. In the dialog that opens, change "Show levels" from 2 to 3. Click OK. Word will rebuild the list to include your third-level headings.
After you finish editing your document and change any headings or add new sections, right-click the table of contents and select Update Field. A dialog will ask whether you want to update page numbers only or the entire table. Choose "Update entire table" to catch any new headings you added. Word will refresh all the page numbers in seconds.
Building the table of contents in Google Docs
Format all your headings with the Heading 1, Heading 2, and Heading 3 styles as described above. Then click in your document where you want the table of contents to appear — usually near the front, after any introduction. Go to Insert > Table of Contents. Google Docs will show you three style options. Pick whichever layout you prefer; they all work the same way.
Google Docs automatically updates your table of contents every time you change a heading or add a new section. You do not have to manually refresh it. If you want to remove the table of contents later, click anywhere inside it and press Delete.
One limitation of Google Docs: the table of contents does not show page numbers by default, only section names and links. If you need page numbers, you will have to add them by hand or switch to Microsoft Word.
Building the table of contents in LibreOffice
After styling all your headings, click where you want the table of contents to appear. Go to Insert > Table of Contents and Index > Table of Contents. A dialog box will open with several tabs. On the Type tab, make sure "Table of Contents" is selected. On the Entries tab, you can see which heading levels are included — by default, Heading 1 through 10 are all checked.
Uncheck any levels you do not want to appear. For example, if you only want Heading 1 and Heading 2 to show, uncheck Heading 3 through 10. Click OK. LibreOffice will insert the table of contents at your cursor position with page numbers and a clickable format.
To update the table of contents after editing, right-click it and select Update Index. LibreOffice will refresh all page numbers and add any new headings you created.
Where to place your table of contents and what to avoid
Put your table of contents near the front of the document — after a title page if you have one, but before the introduction or first section. Readers expect to find it there and will look for it first. If your document is short (under five pages), a table of contents is usually unnecessary; readers can scan the whole thing quickly without one.
Do not manually type your table of contents and then try to keep it updated as you edit. This creates errors: page numbers drift out of sync, new sections get forgotten, and old sections that you deleted still appear in the list. The automatic version is faster and more reliable.
Do not use the table of contents feature for lists that are not section headings — like a list of figures, a bibliography, or a glossary. Those have their own insertion methods in each word processor, and trying to force them into a table of contents will produce a confusing result.
Making your table of contents clickable
In Microsoft Word and LibreOffice, the table of contents is clickable by default. Hold Ctrl (or Cmd on Mac) and click any heading in the table to jump to that section in the document. Readers can use this to navigate long documents without scrolling through everything.
In Google Docs, the table of contents is also clickable. Click any heading in the table to jump to that section. This works in the web version and in the mobile app.
If your table of contents is not clickable, it usually means the headings were not formatted with heading styles. Go back and apply Heading 1, Heading 2, and so on to each section title, then rebuild the table of contents.
Frequently Asked Questions
Can I customize how the table of contents looks?
Yes. In Word, right-click the table of contents and select Modify to change fonts, spacing, and which heading levels appear. In Google Docs, the style options are limited to three preset layouts. In LibreOffice, the Insert > Table of Contents dialog has tabs for customizing appearance, indentation, and which levels to include.
What if I want page numbers in Google Docs?
Google Docs does not add page numbers to the table of contents automatically. You can add them by hand, or download your document as a Word file, add the table of contents there, and re-upload it. Alternatively, use a third-party add-on from the Google Workspace Marketplace, though most require payment.
Do I have to rebuild the table of contents every time I edit?
No. Word and LibreOffice update automatically when you refresh the field. Google Docs updates in real time. You only need to manually refresh if the page numbers seem wrong, which is rare.
What happens if I delete a section after the table of contents is built?
The deleted section will still appear in the table of contents until you update it. Right-click the table and select Update Field (Word), Update Index (LibreOffice), or wait a moment for Google Docs to refresh automatically. The deleted heading will disappear from the list.
Can I have multiple tables of contents in one document?
Yes, but it is rarely useful. You can insert a table of contents at any point in your document, and each one will list all headings from that point forward. This is sometimes used in very long documents with multiple parts, where each part has its own table of contents.