How to preserve the original formatting after updating the table of contents in Word

After Word updates the table of contents, the formatting often changes because manual formatting on the entries or headings gets overwritten during regeneration. This article explains how to identify the cause, how to preserve the formatting, and how to recover it after an accidental update.

When writing a graduation thesis, project proposal, or long contract, many people insert a table of contents at the beginning. After revising the content and clicking"Update Table"again, the font, color, and indentation in the table of contents suddenly revert to their default settings, and some headings even disappear. Many assume this is a Word bug, but in most cases, it’s because manual formatting applied to the table of contents entries gets overwritten when the table is regenerated.

This article explains how to update a Word table of contents while preserving formatting: first identify the cause of formatting loss, then troubleshoot step by step, and finally describe how to prevent and remedy such issues. The methods are standard Word procedures; after reading, you’ll know whether to update only the page numbers or the entire table of contents, and you’ll also learn how to restore the original version if an incorrect update is made.

How to preserve the original formatting when updating the table of contents? One-sentence conclusion

The table of contents is automatically generated based on heading styles. To ensure the formatting persists over time, apply the formatting to the styles themselves rather than setting it manually on individual table of contents entries or heading text.

Your situationRecommended practiceReason
Only the main text or page numbers were changed; the table of contents entries remained unchanged.Update page numbers onlyDo not reconstruct the entry text and style; maintain formatting stability.
Manually changed the font or color of certain lines in the table of contents.Change the format to the table of contents style, then update.When updating the entire table of contents, entries are rebuilt according to their styles.
The title text itself includes a manual font or indentation.Remove direct formatting from headings and apply heading styles instead.The table of contents will exactly replicate the formatting of the headings.
Need to add or rewrite a certain entryReturn to the main text, revise the original title, and then update the table of contents.Table of contents entries are generated from headings; direct edits will be overwritten.
Multi-user document collaboration, complex formattingSave a copy before updating, then verify each item after the update.There is a basis for rollback in case of errors.

First determine which type of problem it is

The symptoms of formatting issues vary, and so do their causes. Refer to the table below to first identify the type, then proceed with the fix.

SymptomsCommon causesHow to confirm
After updating the font, color, and bolding, they revert to default.The manually formatted directory entry has been overridden by the style.Before updating, select the table of contents and check whether the font settings differ from the table of contents style.
Some headings did not appear in the table of contents.The title does not use a heading style, or the style level is incorrect.Open the Navigation pane or the Styles pane to see whether the heading belongs to a specific heading level.
Indentation and alignment are messed up.The heading paragraph has direct indentation, or the indentation in table-of-contents style has been altered.Turn on the display of paragraph marks to see if the paragraphs have extra indentation.
The position of the bullet leader or page number has changed.The table of contents is overwritten after the tab stops are updated.Compare the tab stop positions on the table of contents page before and after the update.
The table of contents appears with a gray background or strange code.The field code is displayed.Press Alt+F9 to toggle the display of field codes and see if it returns to normal view.

Step-by-step troubleshooting and fixing

  1. Save a copy before updating. Use the Save As function to save a new document with a different name; perform all subsequent operations on the copy, leaving the original unaffected.
  2. Select the table of contents and check for manual formatting. If certain text in the table of contents has a different font, size, color, or line spacing, it indicates manual formatting, which needs to be addressed.
  3. Verify that all headings use heading styles consistently. Review each heading individually to ensure it uses the appropriate style, such as Heading 1, Heading 2, etc. Headings formatted with body text styles will not appear in the table of contents.
  4. Remove direct formatting from headings. Select the heading and use the Clear Formatting command or press Ctrl+Space to remove character formatting, then reapply the heading style.
  5. Modify the table of contents style. In Word’s References ribbon, locate the Table of Contents settings, or in the Styles pane find the styles for each level (Table of Contents 1, Table of Contents 2, etc.), and set consistent font, indentation, and spacing options.
  6. Choose the correct update method. If only page numbers need updating, update just the page numbers; if the entire entry list needs rebuilding, update the whole table of contents. After updating, verify the table of contents page, page numbers, and hyperlinks.

Reason 1: The table of contents entry has been manually reformatted

This is a common situation. Manually modified formatting exists only in those few lines; when you update the entire table of contents, Word regenerates it according to the TOC style, causing the manual formatting to disappear. The solution is to remove this manual formatting, define the desired appearance in the TOC style, and then update the table of contents.

Reason 2: The title has direct formatting applied to it

If you copy a heading from another document, or if you’ve manually adjusted its font for aesthetic reasons, the table of contents will carry those formatting settings along with it. Check the heading’s font settings; if they don’t match the heading style definition, clear the direct formatting to restore the heading to its defined style.

Reason 3: It has already been updated, and the formatting was lost.

If you’ve just updated but haven’t saved yet, press Ctrl+Z to undo and return to the state before the update. If you’ve already saved and can’t undo, you can restore an earlier version from automatic backups or the version history. If there are no backups, delete the table of contents, reinsert it using the table of contents style, and then carefully check each entry’s text one by one.

How to prevent this from happening again

  • Use consistent heading styles throughout. Use Level 1 for chapter titles and Level 2 for sub-sections; do not manually bold or change font sizes just for appearance—simply modify the style definitions instead.
  • Change table of contents formatting only in the TOC style. Do not directly adjust font or spacing on the text of the TOC pages, as these changes will be lost upon future updates.
  • If you need to modify entry text, edit the main document’s headings instead. The TOC entries are derived from the headings; updating the original heading text will automatically update the TOC after regenerating it.
  • Choose"Match Destination Formatting"when pasting content. When copying headings from elsewhere, select the paste option that matches the target document’s formatting to avoid inheriting the source file’s fonts and paragraph settings.
  • Avoid selecting all and updating every field. Pressing Ctrl+A followed by F9 updates all fields in the document, including content that does not require updating, which carries far greater risk than updating only the TOC.
  • Perform one final update before finalizing. Once the layout is essentially set, run a single unified TOC update and review the TOC page thoroughly—it’s much more efficient than updating as you make changes.

❓ Frequently Asked Questions (FAQ)

1. Why does the formatting change even though only the page numbers are updated?

This usually indicates that there is manual formatting in the table of contents, or that the paragraph containing the page number has been modified. You can first undo the changes, then check the paragraph and font settings on the table of contents page, clear any manual formatting, and update it again.

2. After updating the table of contents, I want to keep the manually modified entry text—how can I do that?

Directly editing the table of contents text will not be preserved. The correct approach is to return to the main text, modify the corresponding heading text, and then update the table of contents. If you don’t want certain text to appear in the table of contents, you can change it into a paragraph without heading style.

3. Why does the table of contents format always get messed up when copying titles from other documents?

When copying, the original file’s styles and direct formatting are carried over. When pasting, choose a paste option that matches the target format, or paste without formatting and then reapply this document’s heading styles.

4. Will updating the table of contents modify the main text?

Under normal circumstances, updating the table of contents will only rebuild the table of contents page and will not modify the main text. Additional checks are only necessary if the main text contains a large number of fields or citations; therefore, it is recommended to save a copy before updating.

📝 Summary

After updating the table of contents in Word, the formatting changed. The root cause is that manual formatting was not applied through styles. Apply the formatting to both the table of contents style and the heading styles; before updating, save a copy to preserve the original formatting during the update. For any formatting that has already been lost, first undo the changes or restore from a backup.

Open OmniDoc to edit and export documents online.

Updated 2026-11-29