Wrap Word Table of Contents Entries Before the Page Numbers
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.

- 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.
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.
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.
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.
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.
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.
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.

Create a manual two-column contents table
Use a table when the automatic TOC cannot keep wrapped text and page numbers in the desired positions.
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.

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.




