How to Fix Word Showing Field Codes Instead of Text

Working in Microsoft Word documents containing dynamic tables of contents, page numbers, hyperlinks, or mail merge fields occasionally results in an alarming visual transformation: entire sections of document text are suddenly replaced with cryptic syntax wrapped in curly brackets, such as { PAGE }, { NUMPAGES }, { HYPERLINK "https://..." }, or { MERGEFIELD CustomerName }. This is not document corruption; it occurs when Word’s field code display toggle is inadvertently triggered via keyboard shortcut or application preferences.

Toggle Global Field Codes View via Keyboard Shortcut

Microsoft Word includes a universal hotkey toggle that switches between raw field definitions and evaluated text values:

  1. Click anywhere inside your Microsoft Word document.
  2. Press Alt + F9 on your keyboard (or Option + F9 on macOS). On laptops with multimedia keys, press Fn + Alt + F9.
  3. Word will instantly evaluate all field codes across the entire document, replacing all bracketed syntax with clean formatted text, numbers, and active hyperlinks.
  4. If only a single specific field is displaying syntax (e.g. an individual page number in the header), click inside that specific bracketed area and press Shift + F9 to toggle that single field independently.

Disable Field Codes in Word Advanced Options

If Word continues opening documents with raw field codes displayed by default:

  1. Click File in the top-left corner and select Options.
  2. In the Word Options dialogue, click Advanced in the left sidebar.
  3. Scroll down to the section titled Show document content.
  4. Locate the checkbox labelled Show field codes instead of their values.
  5. Ensure this checkbox is unticked.
  6. Click OK to permanently save the preference.

Ensure Fields Update on Document Print Preview

Under File > Options > Display, verify that Update fields before printing is ticked so all fields render correct values when exporting to PDF or sending to physical printers.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.