How to Search for TOC and TC Fields in Microsoft Word
Question details
The user needs to locate Table of Contents (TOC) and TC fields within a Word document, but standard search codes fail to find them.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Trying to search for TOC or TC fields in a document, particularly those generated from poor PDF-to-Word conversions where fields may be broken or rendered as plain text.
- Observed behavior
- Searching for the field code '^d' does not find TOC fields because field-code display is disabled, or because the converted PDF contains ordinary text rather than functional Word fields.
Ensure that your document actually contains functional Word fields. If it was converted from a PDF using an OCR tool, the table of contents might be plain text rather than dynamic fields.
Enable Field Code Display to Search with ^d
To locate field codes like TOC and TC, Word requires the field-code display to be active before performing the search.
By default, Microsoft Word hides the underlying field codes and only shows the results (like the actual table of contents). The ^d search command only looks through visible text, so you must reveal the field codes first.
Open your Word document and press 'Alt + F9'. Alternatively, go to File > Options > Advanced, scroll to 'Show document content', and check 'Show field codes instead of their values'.
Press 'Ctrl + H' to open the Find and Replace dialog box, then click on the 'Find' tab.
Type '^d TOC' or '^d TC' into the 'Find what' search box and click 'Find Next' to locate specific field codes.
Once you have finished editing, press 'Alt + F9' again to toggle back to the normal display mode.

Search for Visible Text in Converted Documents
If the document was converted from a PDF, it may contain a static, plain-text table of contents instead of actual Word fields.
Manage Documents and Fields Seamlessly with WPS Office
Struggling with poorly converted PDFs and missing TOC fields? WPS Office provides a lightweight, highly compatible alternative to Microsoft Word, featuring an exceptional built-in PDF to Word converter that preserves original document structures effortlessly.

Frequently Asked Questions
Why doesn't the ^d search code find my TOC fields?
The ^d code specifically searches for field codes. If you haven't toggled field codes to be visible (using Alt + F9), the software will only search the displayed text and ignore the underlying codes.
What is the difference between a TOC field and a TC field?
A TOC field generates the actual Table of Contents block in your document. A TC field is a hidden entry mark placed throughout the document text to indicate what should be included in that Table of Contents.
Why did my PDF to Word conversion create multiple broken TOC fields?
Some conversion tools struggle to accurately recreate dynamic document fields. Depending on the OCR software used, they may split the table of contents into multiple separate field codes or render it entirely as static plain text.




