Formatting Issues

How to Remove Extra Space Before Hidden Numbers in a Word TOC

Emma BrownEmma Brown Nov 2, 2026 873 views

Question details

The user needs to remove an unwanted space that appears before text in a table of contents when the multilevel heading number is hidden.

How to Remove Extra Space Before Hidden Numbers in a Word TOC
Product
Word
Device & OS
not provided
Scenario
Generating a Table of Contents for a document that uses hidden multilevel heading numbers.
Observed behavior
An extra, unwanted space is generated before the heading text in the Table of Contents, even though the heading number is hidden in the document body.
Before you start

Ensure your document's heading styles are consistently applied and that your table of contents is fully generated before modifying the style settings.

Solution 1Recommended

Modify TOC Style Indentation and List Settings

The most reliable method to remove the extra space is to apply a negative indentation to the TOC style and adjust the multilevel list settings to follow the number with nothing.

In many versions of Word, even if a heading number is hidden, the space or tab character following it is still pulled into the Table of Contents. By modifying the specific TOC level style and your multilevel list settings, you can automatically correct this formatting issue across the entire document.

1
Adjust Multilevel List Settings

Go to the 'Home' tab, click the 'Multilevel List' icon, and select 'Define New Multilevel List'. Select the level of your hidden heading, click 'More', and under 'Follow number with', choose 'Nothing'. Click 'OK'.

2
Access TOC Style Modifications

Navigate to the 'References' tab, click 'Table of Contents', and select 'Custom Table of Contents'. In the dialog box, click the 'Modify' button.

3
Apply Negative Indentation

Select the TOC level corresponding to your hidden heading (e.g., 'TOC 1') and click 'Modify'. Click 'Format' at the bottom left, select 'Paragraph', and under 'Indentation', set a small negative value for 'Before text' (such as -0.1 cm or -1 mm). Click 'OK' on all dialogs.

4
Update the Table of Contents

Right-click your table of contents in the document, select 'Update Field', and choose 'Update entire table' to apply your formatting changes.

Modify TOC Style Indentation and List Settings
Version Differences: Setting 'Follow number with' to 'Nothing' in the Multilevel List dialog works in some versions, but older software may still insert a space. Applying the negative Before Text indentation guarantees the space is removed in the TOC.

Easily Manage Table of Contents and Styles with WPS Writer

WPS Writer provides intuitive, professional-grade tools for creating and customizing tables of contents. It fully supports complex multilevel lists and gives you precise control over paragraph spacing, ensuring perfectly formatted documents without the hassle of unwanted spaces.

  1. 1. Open Your Document in WPS Writer: Launch WPS Office and open your .docx file containing the Table of Contents.
  2. 2. Adjust Multilevel List Settings: Go to the 'Home' tab, click the 'Multilevel List' icon, customize your list, and set the character after the hidden number to 'Nothing'.
  3. 3. Modify TOC Indentation: Navigate to 'References' > 'Table of Contents' > 'Customize Table of Contents'. Click 'Modify' to adjust the 'Before text' indentation for the specific TOC level.
  4. 4. Update to Apply: Right-click your TOC and select 'Update Field' to instantly apply a clean, perfectly aligned layout.
Precise control over TOC styles, indentations, and hidden text handling.Fully compatible with Microsoft Word .docx formats and multilevel lists.Free, lightweight, and incredibly easy to use for advanced document formatting.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Table of Contents show a space when the heading number is hidden?

Even when a heading number is formatted as hidden text, the word processor may still retain the space or tab character configured to follow the number in the Multilevel List settings. This character is then pulled into the Table of Contents.

Will updating the Table of Contents overwrite my manual formatting?

Yes. If you manually delete spaces directly inside the Table of Contents, those changes will be lost the next time you update the TOC. It is highly recommended to modify the TOC Styles instead to apply changes permanently.

Can I use a different style for front-matter headings to avoid this issue?

Yes. A highly effective method is to create a separate, unnumbered paragraph style for your front-matter headings (like Acknowledgments or Preface). You can then map this custom style to a specific TOC level in the Table of Contents options, completely avoiding hidden numbers.

How do I hide a heading number without breaking the document outline?

You can hide a heading number by highlighting the number, right-clicking to open the Font settings, and checking the 'Hidden' box. The paragraph will retain its Outline Level, keeping your document map intact.