Formatting Issues

Wrap Word Table of Contents Entries Before the Page Numbers

Phi Hung VoPhi Hung Vo Nov 14, 2026 868 views

Question details

The user wants long Word table of contents entries to wrap before the page-number tab while page numbers remain aligned at the right margin.

Wrap Word Table of Contents Entries Before the Page Numbers
Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting an automatic table of contents with long heading entries and right-aligned page numbers.
Observed behavior
The desired layout wraps entry text earlier without moving the page numbers away from the right margin.
Before you start

Check which table of contents levels contain long entries and confirm the position of the document's right margin. The corresponding TOC styles must be adjusted separately for each level.

Solution 1Recommended

Adjust the TOC style's right indent and page-number tab

Use the TOC style settings to change wrapping and restore the right-aligned page-number tab.

1
Open the TOC style settings

Click the table of contents, then go to References > Table of Contents > Custom Table of Contents. Select Modify, choose the level to change, such as TOC 1, and select Modify again.

2
Set a right indent

In Modify Style, select Format > Paragraph. Under Indentation, increase the Right value to leave room between wrapped entry text and the page numbers, then select OK.

3
Recreate the page-number tab

Select Format > Tabs. Clear the existing right-aligned tab stop, enter a tab stop position at the right margin, select Right alignment and the desired dot leader, then select Set and OK.

4
Apply and check the layout

Select OK to apply the style changes. If prompted, replace the existing table of contents, then check a long entry and its page number. Repeat the style changes for other TOC levels as needed.

Adjust the TOC style's right indent and page-number tab
Check the result in your document: A tab beyond the paragraph's right indent may not behave as intended in every layout. If the page number also moves inward, try a different indent or tab position. For a fixed layout, use the two-column table alternative.
Free Microsoft Office alternative

Work with tables of contents in WPS Writer

WPS Writer is a free, lightweight Office alternative with a familiar interface for editing documents and creating tables of contents. Open existing Word files to migrate your work, and check the layout after opening them.

Create and edit tables of contents in WPS WriterOpen and edit Microsoft Word DOC and DOCX filesUse a familiar interface for a smoother move from Microsoft OfficeAccess a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why should I change the TOC style instead of dragging the ruler markers?

Changing the style through Modify Style > Format > Paragraph applies the indent to that TOC level. Dragging ruler markers can also affect the tab stop used to align page numbers.

Where do I change the dot leader before the page numbers?

In the TOC style's Modify Style dialog, select Format > Tabs. Choose the right-aligned tab stop, select the desired leader, and select Set.

Why did my page numbers move inward with the entries?

The right indent and tab position may not work together as expected. Open the TOC style's Format > Tabs dialog, clear and recreate the right-aligned tab, and test a different indent or tab position.

Do I need to change every TOC level separately?

Yes. In References > Table of Contents > Custom Table of Contents > Modify, select and modify each affected style, such as TOC 1 or TOC 2.

Will a manual two-column contents table update page numbers automatically?

No. A regular table is not an automatic TOC field, so you must edit its entries and page numbers when the document changes.