Align Word Table of Contents Titles and Page Numbers
Question details
Set up a Word table of contents with left-aligned titles, right-aligned page numbers, and dotted leaders using built-in TOC styles.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- The user wants to format an automatic table of contents consistently across heading levels.
- Observed behavior
- Chapter titles should align to the left, with page numbers aligned to the right and dotted leaders between them.
Apply Word’s built-in Heading styles to the chapter titles you want included. Click inside the existing table of contents if you want to replace or adjust it.
Configure Word’s automatic table of contents
Use the built-in TOC settings and styles to align entries without formatting each line manually.
In Word, select References > Table of Contents > Custom Table of Contents.
In the Table of Contents dialog, select Show page numbers and Right align page numbers. Choose the dotted option under Tab leader.
Select Modify, choose TOC 1 or another relevant level, and select Modify. Use Format > Paragraph to adjust alignment and indents, or Format > Tabs to adjust tab stops.
Select OK to insert the TOC. If Word asks whether to replace the existing table, confirm; later, use References > Update Table to refresh it.

Create an aligned table of contents in WPS Writer
Use WPS Writer’s table of contents tools to generate entries from headings and configure page numbers and leaders where available.
- 1. Open the document: Open WPS Writer and use Open to select your Word document.
- 2. Apply heading styles: Select each chapter title and choose an appropriate Heading style from the Home tab.
- 3. Insert the table: Place the cursor where the table should appear, then open References > Table of Contents and choose the custom or insert option.
- 4. Configure and refresh: In the table of contents settings, enable page numbers and right alignment and select a dotted leader if those options are available. Insert the table, then use Update Table after editing headings.

Frequently Asked Questions
How do I add dotted lines before page numbers in Word?
Go to References > Table of Contents > Custom Table of Contents, enable page numbers and right alignment, and select the dotted option under Tab leader.
Why are some TOC titles indented?
Different heading levels use different TOC styles. In the custom table of contents dialog, select Modify, choose the relevant TOC style, and adjust its indent under Format > Paragraph.
How do I update page numbers after editing the document?
Click the table of contents and choose References > Update Table. Choose to update page numbers only, or update the entire table if headings have changed.
Why is a chapter missing from my table of contents?
Select the chapter title and apply an appropriate Heading style on the Home tab. Then update the entire table through References > Update Table.




