Formatting Issues

How to Fix a Word Table of Contents That Appears as Hyperlinks

Steve KSteve K Nov 3, 2026 868 views

Question details

The user needs to restore a table of contents that is displaying incorrectly as a line of uneditable hyperlinks on a different computer.

How to Fix a Word Table of Contents That Appears as Hyperlinks
Product
Word Processing
Device & OS
not provided
Scenario
Opening a document on a different computer and attempting to view or edit its table of contents.
Observed behavior
The table of contents loses its standard formatting, appearing only as plain hyperlinks or underlying field codes, and cannot be updated normally.
Before you start

Before troubleshooting, ensure your document is saved in the standard .docx format to prevent compatibility issues, and make a backup copy in case you accidentally delete important document sections.

Solution 1Recommended

Toggle Field Codes Using Keyboard Shortcuts

Use this solution if Word is displaying the underlying field codes (which often look like hyperlinks or code strings) instead of the generated table of contents.

A table of contents in Word is generated using dynamic field codes. If your settings are accidentally changed, Word will display the raw code or hyperlink paths instead of the formatted text.

1
Open the document

Launch your word processor and open the document where the table of contents is displaying incorrectly.

2
Use the toggle shortcut

Press 'Alt' + 'F9' on your keyboard simultaneously. On some laptops with customized function keys, you may need to press 'Alt' + 'Fn' + 'F9'.

3
Verify the results

Check the table of contents to see if it has reverted to its normal, readable layout. Pressing Alt+F9 toggles between displaying field codes and displaying field results.

Toggle Field Codes Using Keyboard Shortcuts
Field Codes vs. Text: If the table was manually typed as hyperlinks instead of generated from headings, toggling field codes will not change its appearance.
Professional Word Processing

Manage Table of Contents Effortlessly with WPS Writer

WPS Writer provides a highly compatible and intuitive environment for managing your document formatting. It seamlessly handles Word .docx files, ensuring your table of contents remains intact and properly formatted across different computers without complex field code errors.

  1. 1. Open your document: Launch WPS Writer and open your .docx file.
  2. 2. Apply heading styles: Ensure your chapter or section titles are formatted using standard Heading styles (Heading 1, Heading 2) from the Home tab.
  3. 3. Insert the TOC: Go to the 'Reference' tab, click 'Table of Contents', and select your preferred automatic layout.
  4. 4. Update effortlessly: Whenever you modify your document, simply click 'Update TOC' to instantly refresh page numbers and titles.
100% compatible with Microsoft Word .docx formatsOne-click automatic table of contents generation and updatesCross-platform consistency prevents formatting corruption between devicesFree, lightweight, and user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my table of contents look like computer code?

Your word processor is likely set to display field codes instead of field results. A table of contents is generated using these underlying codes. Pressing Alt+F9 usually toggles the view back to the normal formatted text.

Can I manually edit the text inside an automatic table of contents?

While you can type directly into an automatic TOC, it is not recommended. The next time you click 'Update Table', all manual edits will be overwritten by the actual heading text from the document. You should modify the headings in the document body instead.

How do I remove a corrupted table of contents completely?

To completely remove it, click the tab at the top of the table of contents (if visible) and select 'Remove Table of Contents'. Alternatively, highlight all the text and hyperlinks associated with the broken TOC and press Delete.

Why does my TOC break when moving from one computer to another?

This can happen due to differences in word processor versions, missing fonts, or strict security settings on the second computer that disable automatic field updates or convert them to plain text to prevent macro viruses.