To insert dotted lines between entries and page numbers in a Microsoft Word table of contents, go to References > Table of Contents > Custom Table of Contents, choose dots in the Tab leader list, and select OK. For an existing table, select it first and confirm that Word should replace it when prompted.
What the dotted line does
The row of dots between a heading and its page number is called a tab leader. It fills the space created by a tab stop, visually guiding the reader’s eye from an entry such as “Preparing the document” to its page number. The dots are generated by Word’s formatting; they are not normally part of the heading text.
A table of contents is most useful when the entry text and page numbers line up consistently. A leader can make that relationship easier to follow, especially when a document has several levels of headings or a wide range of page numbers. Word also offers other leader styles, including a plain line and no leader. Dots are common, but they are a formatting choice rather than a requirement.
Set dotted leaders when inserting a new table
In Word for Microsoft 365 on Windows, place the cursor where the table of contents should appear. Then open the custom table settings and choose the leader before inserting the table:
- Apply Word’s built-in heading styles to the headings you want included, such as Heading 1 and Heading 2.
- Click at the desired insertion point, usually near the beginning of the document.
- Open References > Table of Contents > Custom Table of Contents. In some ribbon layouts, choose Table of Contents and then the custom option at the bottom of its menu.
- In the dialog box, make sure Show page numbers is selected. Select Right align page numbers if you want the numbers positioned at the right edge.
- Open Tab leader, select the dotted option, and click OK.
Word builds the contents from the document’s heading structure. The dotted leaders appear between each entry and its page number where there is room for them. If you do not see a leader beside a particular entry, check whether that entry has a page number and whether its text reaches close to the number’s position.
Change the leader in an existing table
You do not have to delete and rebuild an existing automatic table of contents by hand. Click inside the table, open References > Table of Contents > Custom Table of Contents, and choose the dotted leader. Keep the page-number and alignment settings you want, then click OK. If Word asks whether to replace the selected table, accept the replacement.
Some Word versions show a prompt or slightly different controls depending on how the table was inserted. If the custom dialog is not available from the ribbon while the table is selected, open the Table of Contents menu and look for its custom settings. Avoid selecting and editing only the visible dots: an automatic table is a field, and manual edits can disappear the next time it is updated.
After changing the design, you can refresh the contents by right-clicking inside it and choosing Update Field. Choose Update page numbers only if headings have not changed, or Update entire table if you added, removed, renamed, or reorganized headings. The second option rebuilds the entries, so it is the safer choice after structural edits.
How Word creates and formats the contents
An automatic table of contents is assembled from document structure, usually paragraph styles such as Heading 1, Heading 2, and Heading 3. Word assigns the different heading levels to corresponding contents levels, then places the entry text, a tab, and a page number in each generated paragraph. The tab leader setting controls what Word displays in the gap between the entry and the page number.
This explains why typing a string of periods into a heading is not the right fix. Periods typed into the source heading become part of the heading itself; they can also wrap unpredictably or appear in the document’s navigation pane and other references. A tab leader is separate formatting, so Word can adjust its length when the page number or entry position changes.
Automatic contents also depend on correct heading styles. If a section title is merely bolded and enlarged but still uses the Normal style, Word may leave it out. Apply the appropriate heading style from Home > Styles, then update the entire table to include it. This keeps the contents connected to the document rather than maintaining a second, manually typed list.
Control heading levels and page-number alignment
The custom table dialog lets you decide whether to show page numbers, align them at the right margin, and how many heading levels to include. A short report may need only Heading 1 entries; a long manual could benefit from Heading 1 and Heading 2. Showing too many levels can make the contents crowded, while showing too few can hide useful sections.
For example, a report might use Heading 1 for “Findings” and Heading 2 for “Survey results.” If both levels are included, Word formats the second-level entry with its own indentation and contents style. The dotted leader setting applies across the generated table, but the spacing and appearance of each level can differ because Word uses separate styles such as TOC 1 and TOC 2.
If the dots look too close to the text, or if the page numbers do not align as expected, first verify the right-alignment setting in the custom table dialog. Then consider modifying the relevant TOC style through the Styles pane. Style changes are preferable to individually adjusting each line, because they apply consistently to entries at the same level.
Fix missing, uneven, or misplaced dots
If the dotted line does not appear, work through the likely causes before rebuilding the document:
- Check the selected leader. Open the custom table dialog and confirm that the dotted option is selected, not “none.”
- Check page numbers and alignment. A leader fills the tab space before the page number. If page numbers are hidden or not right-aligned, the result may not look like the usual dotted line.
- Look at the entry length. A long heading may leave little or no room for visible dots. Shortening the heading or adjusting the TOC layout can create more space.
- Update the correct way. If the table has become inconsistent after edits, choose Update entire table rather than trying to repair individual generated lines.
- Check the TOC style. If one level looks different, modify the corresponding TOC style instead of applying one-off formatting to an entry.
A common frustration is that a formatting change seems to vanish after updating. Direct formatting applied to generated entries can be replaced when Word rebuilds the table, particularly when the entire table is updated. Set the leader through the table’s custom settings and use the built-in TOC styles for font, indentation, and paragraph spacing. Those are more dependable than formatting each row separately.
Also distinguish the contents table from a regular table inserted with Insert > Table. If the list of headings is inside a cell-based Word table, the automatic table-of-contents dialog may not control the dotted lines you see. A manually created list inside a table needs its own tab stops or other formatting, and its page numbers will not automatically stay current unless it is built from an actual TOC field.
Format a manually typed contents list
If you have a genuinely manual contents list, you can create dotted leaders with paragraph tab stops. Select the relevant paragraphs and open the paragraph settings’ Tabs dialog. Set a tab stop at the position where the page numbers should end, choose right alignment, select the dotted leader, and set the tab stop. The exact route to the Tabs dialog can vary with Word’s ribbon layout; on Windows, it is commonly available from the Paragraph dialog launcher on the Home tab.
Then format each line as entry text, press the Tab key once, and type the page number. Do not press the period key repeatedly to imitate the leader. A tab stop keeps the numbers aligned even when one entry is longer than another. This method is suitable for a short list that will not change much, but it has a drawback: Word will not automatically revise manually typed page numbers when content moves.
For a document that will be edited or expanded, use an automatic table of contents instead. It takes a little setup to apply heading styles, but Word can update both entries and page numbers. A manual list is best reserved for a fixed document or a layout that cannot be handled by Word’s automatic contents feature.
Windows, Mac, and Word for the web
The instructions above describe Word for Microsoft 365 on Windows. Word for Mac also provides a custom table-of-contents dialog with leader and page-number options, although the ribbon layout and dialog placement can differ. Look under the References tab for Table of Contents and its custom settings; the underlying idea and the choice of dotted tab leader are the same.
Word for the web can handle basic editing and may let you insert or update a table of contents, but its controls are not as complete as the desktop application’s. If you cannot find the leader selector or need to change detailed TOC formatting, open the document in the desktop version of Word. When returning to the web version, check the layout because fonts, margins, or other document settings can affect how much room the leaders have.
Frequently Asked Questions
Can I add dotted lines without changing the table of contents?
For an automatic table, use its custom settings to choose a dotted tab leader. Avoid typing dots into the generated entries; Word may remove manual edits when the table is updated.
Why do only some entries have dots?
Long entry text may use most of the available line, leaving little space for a visible leader. Also check that the page numbers are shown and right-aligned, and that the table’s leader setting is dotted.
Will updating the table remove the dotted leaders?
When the leader is set in the custom table settings, updating should preserve that table design. Individual formatting applied directly to generated entries may not survive an update, so make general appearance changes through the TOC styles.
Can I use dashes or a solid line instead of dots?
Yes. The custom table dialog’s Tab leader list offers other leader choices, including a line and no leader. Select the style that suits the document’s design and keep the page-number alignment consistent.
How do I include a heading that is missing from the contents?
Apply an appropriate heading style to that paragraph, such as Heading 1 or Heading 2, then choose Update entire table. If you use a custom outline level, check the table’s settings to ensure that level is included.
Keep the table easy to maintain
Dotted leaders are a small formatting detail, but they work best when the contents is generated from structured headings and controlled through Word’s table settings. Set the leader in the custom dialog, choose the heading levels readers need, and update the field after document changes. That approach keeps the dots, entries, and page numbers working together instead of turning the contents into a list that must be repaired line by line.
Related
- How to Clear Cache in Outlook Email
- How to Clear Cache in Outlook for Windows
- How to Clear Cache in Outlook Calendar
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Add a Drop-Down in Excel with Custom OptionsTo add a drop-down in Excel, select the cells, go to Data > Data Validation, choose List under…
- How to Block a Sender in Outlook 365To block someone in Outlook 365, select one of their messages and choose the sender-blocking command in the…
- Creating a Signature in Outlook: Steps and TipsTo create a signature in Outlook, open the signature settings for your version, choose New, write and format…
- How to Add Color to a Header Row in Microsoft WordTo add color to a header row in Word, select the table’s entire first row, open the contextual…
- How to Turn On Track Changes in Microsoft Word DesktopTo turn on Track Changes in Word desktop, open the document, select Review > Track Changes, and then…
- Excel Text Stay in Cell? Wrap, Clip, or Shrink TextYes. In Excel for Microsoft 365 on Windows, select the cells and choose Home > Wrap Text to…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.