logo
search
Formatting Issues

How to Fix Word Table of Contents Showing Too Many Levels

Elise WilliamsElise Williams Oct 16, 2026 869 views

Question details

The user wants to restrict the Table of Contents to show only two heading levels, but it continues to display up to five levels even after changing the TOC settings.

How to Fix Word Table of Contents Showing Extra Levels
Product
Microsoft Word
Device & OS
not provided
Scenario
Modifying Table of Contents settings to reduce the visible heading levels for a cleaner document outline.
Observed behavior
Extra heading levels and entries remain visible in the Table of Contents despite setting the 'Show Levels' configuration to 2.
Before you start

Before troubleshooting, ensure you save a copy of your document. Modifying field codes and document styles can alter your document's layout.

Solution 1Recommended

Modify the TOC Field Code Directly

Use Word's field code view to manually force the Table of Contents to recognize only two outline levels.

Sometimes the Table of Contents dialog box fails to overwrite the underlying field code. Manually editing this code ensures the TOC strictly follows your level limitations.

1
Reveal field codes

Press Alt+F9 (or Alt+Fn+F9 on some laptops) on your keyboard to reveal the document's hidden field codes.

2
Locate and edit the TOC code

Find the Table of Contents field code, which usually looks like {TOC \o "1-5" \h \z \u}. Change the numbers in the outline switch to specifically show levels 1 to 2 by typing \o "1-2".

3
Hide field codes

Press Alt+F9 (or Alt+Fn+F9) again to hide the field codes and return to the normal document view.

4
Update the Table of Contents

Right-click anywhere inside the Table of Contents, select 'Update Field', and then choose 'Update entire table' to apply your new level settings.

Modify the TOC Field Code Directly
Shortcut Tip: If you frequently work with field codes, memorizing Alt+F9 will save you significant time when troubleshooting document automation features.
Manage Documents Efficiently

Use WPS Writer to Flawlessly Generate and Manage Table of Contents

WPS Writer provides an incredibly intuitive interface for formatting professional documents. Creating a Table of Contents and accurately controlling your heading levels takes only a few clicks, eliminating the need to memorize complex field codes.

  1. 1. Open references: Open your document in WPS Writer and navigate to the 'References' tab on the top ribbon.
  2. 2. Insert TOC: Click on 'Table of Contents' and select 'Insert Table of Contents' from the dropdown menu.
  3. 3. Set outline levels: In the dialog box, simply adjust the 'Show levels' spinner to '2' and click OK to generate the table.
  4. 4. Update easily: Click the 'Update TOC' button located at the top left of the Table of Contents whenever you modify headings in the future.
Intuitive Table of Contents dialog box for easy level control.Fully compatible with Microsoft Word document formats (.docx).Built-in navigation pane to quickly review and fix heading structures.Free, lightweight, and fast alternative to heavy office suites.
microsoft office alternative - wps office

Frequently Asked Questions

Why does regular text unexpectedly appear in my Table of Contents?

This usually happens when regular paragraphs accidentally have an outline level applied to them instead of being set to 'Body Text', or if a Heading style was mistakenly applied to a standard paragraph.

How do I update my Table of Contents after making changes to my document?

Simply right-click anywhere inside the Table of Contents and select 'Update Field'. Choose 'Update entire table' to ensure both the page numbers and any new headings are accurately refreshed.

What does the code {TOC \o "1-2"} actually mean?

In Word's hidden field codes, '\o' represents the outline switch, and '"1-2"' instructs the Table of Contents generator to only pull in headings formatted specifically as outline level 1 and level 2.

Can I remove a specific heading from the TOC without changing how it looks in the text?

Yes, you can right-click the specific heading, open the Paragraph settings, and change its Outline level to 'Body Text'. This removes it from the TOC while retaining its original font size, color, and bold formatting.