TOC and Index Builder (DOCX)
Turn the headings of a Word file into a clickable contents page and an index, and catch references to figures or sections that do not exist.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open a DOCX
Drop the document; the outline and page count appear.
- 2Choose levels
Set how many heading levels the table of contents shows.
- 3Place it
Pick where to insert it, the title, dot leaders and a page break.
- 4Add lists
Tick List of figures or List of tables if the document has captions.
- 5Build an index
Tick Add an index, type or suggest terms and keep XE fields on.
- 6Check and download
Read the cross-reference report, then download the new DOCX.
About this tool
A contents page typed by hand goes out of date the moment a section moves. Word builds a live one from heading styles, but only if you know where the menu is and only on a computer with Word. This builder adds a genuine TOC field to your DOCX in the browser. It reads the heading styles of the file, including custom styles that are based on Heading 1 to 6 or carry an outline level, and lists them as an outline you can check before inserting. The TOC is placed after the Title paragraph, at the very start or before the first heading, with or without dot leaders, and with a page break after it if you like. The rest of the file is not rebuilt: the new paragraphs are inserted into the original XML, so styles, images, footnotes and headers stay as they were. Missing TOC, TOC Heading and Index styles are added to the style sheet so the result looks right.
Page numbers
The contents field is prefilled with entries and page numbers so it looks complete even in viewers that never update fields. Those page numbers come from this site's own page layout engine, which lays the document out on the real paper size and margins with standard fonts; they are usually right or within a page. The file is also flagged so that Word asks to update fields when it is opened, and answering yes replaces the estimates with Word's exact numbers. LibreOffice updates them with Tools, Update.
Index, figures and tables
For an index, type terms one per line or press Suggest terms to collect capitalised names and acronyms that occur at least twice. Each term is marked with a Word XE field at its first occurrence in every paragraph, and an INDEX field is added at the end, prefilled with the pages where the term appears. Lists of figures and tables are built from captions that start with Figure 1, Fig. 2 or Table 3 and are inserted as TOC fields that collect those captions.
Cross-reference check
The checker reads every mention of Figure, Table, Section, Chapter and Appendix numbers in the text and confirms that a matching caption or numbered heading exists. It also finds REF and PAGEREF fields and internal links that point to bookmarks which are no longer there, headings that skip a level, empty headings and duplicate heading text.
Limits
Documents without heading styles produce an empty contents list; format them first with the Long Report Formatter. Index entries are matched as whole words and phrases, not as stems or sub-entries. The checker does not understand references written in other languages. Page estimates can differ from Word when the document relies on fonts or layout features the engine does not draw.
Worked example
A 46-page project report has 9 Heading 1 and 27 Heading 2 paragraphs and 12 captions. With levels set to 2, the outline shows 36 entries, Introduction on page 3 and Appendix B on page 44. Adding the terms Dhaka, NGO and Solar gives index lines such as Solar, 7, 12, 31. The checker warns that Figure 13 is mentioned but only 12 figures exist.
Quick facts
- Category: Documents & Letters
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Microsoft Word field codes TOC, INDEX and XE (ECMA-376 Part 1, 17.16)
Frequently asked questions
Will my document be rebuilt from scratch?
No. Only the TOC, index, XE fields and missing styles are added; the rest of the XML is kept.
Why might the page numbers differ from Word?
They are estimated by our own layout. Word replaces them with exact numbers when it updates fields on opening.
My headings are not found. Why?
They are probably typed as bold normal text. Apply Heading styles, or run the Long Report Formatter first.
Can it make a list of figures?
Yes, from captions starting with Figure, Fig. or Table followed by a number.
How are index terms suggested?
Capitalised words, short phrases and acronyms that appear at least twice in body text are offered.
Is the file uploaded?
No. Everything happens in your browser.
