You may need a table of contents that shows only major section headings while hiding subsections. By default, Word builds a TOC from every heading formatted with a built-in heading style. This behavior can create a long TOC that buries your top-level structure under too many subheadings. This article explains how to use custom TOC settings to exclude specific heading levels such as Heading 3, Heading 4, or any custom style.
Key Takeaways: Excluding Heading Levels From a Word TOC
- References > Table of Contents > Custom Table of Contents > Options: Lets you assign or remove heading levels from the TOC build.
- Modify the TOC level number in the Options dialog: Set a heading style to TOC level 0 (blank) to exclude it from the generated table.
- Use a custom style instead of a built-in heading: Avoid the TOC entirely by applying a non-heading style to subsection paragraphs.
How Word Decides Which Headings Appear in a TOC
Word builds a table of contents by scanning the document for paragraphs that use built-in heading styles: Heading 1 through Heading 9. By default, all nine levels are included in the TOC. The first three levels (Heading 1, Heading 2, Heading 3) are the most common in a default TOC field, but the underlying list of available levels goes up to nine.
When you insert a TOC using the built-in gallery (References > Table of Contents), Word applies a pre-built TOC field that includes Heading 1, 2, and 3. If your document uses Heading 4 or lower, those headings will not appear unless you choose a different gallery option or modify the field manually.
The root cause of unwanted subheadings is that the TOC field code includes a switch that specifies which heading levels to collect. The default switch is \o "1-3", which means collect headings from level 1 through level 3. Changing this switch to \o "1-2" excludes Heading 3. You can also set a specific heading style to TOC level 0 in the Options dialog, which removes it from the collection entirely.
Steps to Exclude Specific Heading Levels From the TOC
Use these steps to remove a heading level such as Heading 3 or Heading 4 from an existing TOC or a new TOC. The process uses the Custom Table of Contents dialog, which gives you full control over which heading styles are included and at which TOC level they appear.
- Place the cursor where you want the TOC
Click at the beginning of the document or on a blank page. If a TOC already exists, click inside it to select the field. - Open the Custom Table of Contents dialog
Go to the References tab. In the Table of Contents group, click Table of Contents. At the bottom of the gallery, click Custom Table of Contents. The dialog opens with several tabs. - Click the Options button
In the Table of Contents dialog, click the Options button near the bottom right. The Table of Contents Options dialog appears. - Change the TOC level for the heading style you want to exclude
In the Available styles list, find the heading style you want to exclude, for example Heading 3. In the TOC level column next to that style, delete the number so the box is blank. Leave the TOC level number for Heading 1 and Heading 2 as 1 and 2. - Confirm and close the dialog
Click OK to close Table of Contents Options. Click OK in the Table of Contents dialog. Word asks if you want to replace the existing TOC. Click Yes.
The TOC now shows only Heading 1 and Heading 2 entries. Heading 3 and any lower levels are excluded. If the TOC does not update immediately, press Ctrl+A then F9 to update all fields in the document.
Alternative Method: Modify the TOC Field Code Directly
If you are comfortable editing field codes, you can change the heading range in the TOC field code. Click inside the TOC, then press Alt+F9 to display the field code. Look for the switch that starts with \o. Change \o "1-3" to \o "1-2" to exclude Heading 3. Press Alt+F9 again to hide the field code, then press F9 to update the TOC.
Alternative Method: Use a Custom Style Not Based on a Heading Style
If you want subsections that never appear in any TOC, create a custom paragraph style that is not based on a built-in heading style. Apply that style to the subsection paragraphs. Because the TOC field only collects built-in heading styles by default, the custom style will not be included unless you manually add it in the Options dialog.
- Create a new style
On the Home tab, open the Styles pane. Click New Style. Name it something like “Subsection Heading”. Set the base style to Normal, not Heading 1 or any heading style. - Apply the style to subsections
Select the paragraph you want to exclude from the TOC. Click the new style in the Styles gallery or pane.
If the TOC Still Shows Excluded Headings
Sometimes the TOC does not respond to the changes you made in the Options dialog. This section covers the most common reasons and their fixes.
The TOC Field Contains a Manual Entry
If someone inserted a TC (Table of Contents Entry) field manually, that entry will appear regardless of heading level settings. To remove it, press Alt+F9 to show field codes. Find the TC field code and delete it. Then update the TOC.
The Heading Style Was Applied With Direct Formatting
A paragraph that looks like a heading but uses direct formatting (bold, larger font) rather than a heading style will not appear in the TOC. However, if the paragraph uses a heading style but the style was modified to look like a lower level, the TOC still collects it by style name. To exclude it, you must change the TOC level in the Options dialog as described above.
The TOC Was Not Updated After Changing Options
Changing the Options dialog does not automatically update the TOC. You must click Yes when Word asks to replace the existing TOC, or manually update by selecting the TOC and pressing F9.
Built-in TOC Gallery Options vs Custom TOC: Heading Level Behavior
| Item | Built-in TOC Gallery | Custom Table of Contents |
|---|---|---|
| Heading levels included by default | Heading 1, 2, and 3 | All heading styles assigned a TOC level in Options |
| Exclude a specific heading level | Not possible from the gallery | Delete the TOC level number in Options dialog |
| Add custom styles to TOC | Not possible | Assign a TOC level to any style in Options dialog |
| Modify heading range | Only by editing field code directly | Change the \o switch or use Options dialog |
The built-in gallery is convenient for a standard three-level TOC. The Custom Table of Contents dialog gives you the precision to exclude or include any heading level or custom style.
You can now build a table of contents that shows only the heading levels you want. Start by opening the Custom Table of Contents dialog from References > Table of Contents. Use the Options button to delete the TOC level number for the heading styles you want to exclude. If you need a heading level that never appears in any TOC, create a custom style not based on a heading style. For future documents, consider setting up a TOC template that uses the \o "1-2" switch in the field code to automatically exclude Heading 3.