How to Edit a Table of Contents in Word
Learn how to edit table of contents entries and text in a Word file, why typed changes get overwritten, and how to fix them at the source.
If you have ever typed a fix into a table of contents and watched it revert after a refresh, you have hit the main problem with this task. The table is generated from your headings, so a change made directly in the table is temporary. Typos, outdated section names and wrong indents all have to be fixed where the headings live.
This guide is for anyone editing a report, thesis, manual or contract in a Word (.docx) file who needs the table of contents to read correctly. It also covers the case where you only have a PDF copy, and what to do when you need to edit an online version. You will learn how to change entry text, remove or add entries, and confirm that the result is right.
Refreshing page numbers after content moves is a related but separate job. Here the focus is on the wording and structure of the entries themselves.
How do you edit a table of contents in Word? The short answer
Edit the heading in the body text, then update the table, because the table copies its entries from your headings. Edit the table directly only for a one-off change you can accept losing later.
| Your situation | What to do | Why |
|---|---|---|
| A heading has the wrong wording | Edit the heading in the body, then update the table | The table copies heading text, so the fix has to start at the source |
| A typo appears only in the table | Find the matching heading and correct it there | Typed changes inside the table are replaced on the next update |
| An entry should not appear | Change that heading to normal body text, then update | Only text with a heading style is included |
| You only have a PDF | Edit paragraph text in the PDF editor, or export to Word and fix the .docx | A PDF has no live link to the headings, so the text is static |
Before you start
- Save a copy of the file. Editing headings and updating the table can shift page breaks, and a copy lets you compare before and after.
- Confirm the table is generated. Click inside the table. If the entries are tied to headings, an update will rebuild them. If the list was typed by hand, an update will do nothing useful, and you will need to retype it.
- Check the heading styles. Only text formatted with a heading style appears in a generated table. Text that is only bold or larger will not show up, so an entry can be missing for this reason alone.
- Know your file format. A .docx file can be edited and refreshed. A PDF can be edited as text but cannot be rebuilt from headings, so the approach differs.
- Decide what changes. Write down the entries that need new wording, removal or a new level before you start, so you do not miss one after updating.
Editing a table of contents in a Word file, step by step
- Open the .docx file. Use a Word-compatible editor on your computer. If you want to work in a browser, you can upload the file to the UniDoc web editor at app.unidoc.top, which supports Word-compatible editing.
- Find the heading behind the entry. Scroll through the body text and locate the heading that the table entry comes from. Working in the body keeps you from editing a copy that will be replaced.
- Edit the heading text. Correct the wording exactly as you want it to appear in the table. Keep the heading style unchanged so the entry stays in the table.
- Update the table. Use the update option for the table of contents. Choose the option that refreshes the whole table when wording has changed, not only page numbers, so the new text carries over.
- Fix an indent that looks wrong. If an entry sits at the wrong level, change the heading style of that heading to the correct level, then update the table again.
- Remove an entry you do not want. Change that heading to normal body text. Then update the table, and the entry will disappear without affecting the rest of the list.
- Add a new entry. Apply a heading style to the new section heading, then update the table so it appears in the right position.
- Handle a PDF copy separately. Open the PDF in the PDF editor on the OmniDoc desktop client (download.omnidoc.top), edit the paragraph text in place, and save. If you need more changes than that, export the PDF to Word, make the edits in the .docx, then re-export. Export does not always reproduce the original layout exactly, so check the result before you share it.
Check the result
Once the table is updated, go through it entry by entry. Machine-assisted and automated steps can miss details, so read the final text yourself rather than trusting the update to be correct.
| Check | How to see it | If it's wrong |
|---|---|---|
| Wording matches headings | Compare each entry with its heading in the body | Update the table again. If it still differs, look for extra spaces or stray formatting in the heading |
| Page numbers | Jump to the page each entry names | Update page numbers only after the content is final |
| Indent levels | Scan the list for entries that sit too far left or right | Change the heading style level, then update |
| Entries you removed | Confirm they are gone from the list | Check that the heading is body text, not a heading style |
| Hand-typed entries | Edit a heading and see whether the table entry changes | Rebuild the list from headings, because typed entries will not update |
| PDF layout | Open the final PDF and check line breaks and page numbers | Re-edit the Word source and export again |
❓ FAQ
1. Why does my table of contents change back after I edit it?
The table was regenerated from its headings during an update. Make the change in the heading in the body text, then update the table so the new wording comes from the source.
2. Can I customize the wording of a table of contents in an online editor?
Yes, if the file is a .docx and the editor supports Word-compatible editing. Edit the heading text, then update the table, and check the entries afterward because some editors handle table fields differently.
3. Can I edit a table of contents in a PDF?
You can edit the text of an entry in the PDF editor, but the change will not update page numbers or link to headings. For a clean result, edit the original Word file and export a new PDF.
4. How do I make a list that updates automatically?
Apply heading styles to the section titles you want listed, then generate the table from those headings. A list typed by hand will not update when headings change.
📝 Summary
Most table of contents problems come from editing the table instead of its headings. Fix the heading in the body, update the table, and check each entry against the document. For PDF copies, edit the text directly or export to Word and correct the source file.


