Export Word Heading Numbers and Text to a Table
Question details
Extract numbered headings and their text from a Word document into a list or table.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A long document uses numbered Heading 1 through Heading 5 styles, and the user needs a separate list of those headings.
- Observed behavior
- The desired output is a list or table containing the heading numbers and text from all five levels.
Check that the headings use Word's Heading 1 through Heading 5 styles and that their numbering is correct. The table of contents will collect entries based on those styles.
Use a Word table of contents to extract numbered headings
Create a table of contents with five heading levels, turn it into plain text, and optionally convert it to a table.
Place the cursor where you can insert a temporary table of contents. Go to References > Table of Contents > Custom Table of Contents.
Set Show levels to 5. Clear Show page numbers if you only need heading numbers and text, then select OK.
Select the table of contents and press F9 to update it. Copy it and paste it into a new document.
Select the pasted table of contents and press Ctrl+Shift+F9 to unlink its fields. Check that the heading numbers and text appear as expected.
Select the resulting text and choose Insert > Table > Convert Text to Table. Choose paragraph marks as the separator to put each heading in its own row, then select OK.
Create a Heading List in WPS Writer
Use a table of contents in WPS Writer to collect numbered headings, then copy the entries into a separate document or table.
- 1. Open the document: Open your Word document in WPS Writer and check that the headings use the appropriate Heading 1 through Heading 5 styles.
- 2. Create a heading list: Place the cursor in the document and use References > Table of Contents to insert a table of contents. In the available settings, include the heading levels you need.
- 3. Copy the entries: Select and copy the table of contents, then paste it into a new document as plain text. Check that all required heading numbers and text are present.
- 4. Make a table if needed: Use Insert > Table to create a table, then place each heading entry in its own row. Add separate columns if you need to organize numbers and text individually.

Frequently Asked Questions
Why are some headings missing from the table of contents?
Check that the missing headings use the appropriate Heading styles. In References > Table of Contents > Custom Table of Contents, set Show levels to 5, then update the table.
Can I exclude page numbers from the exported list?
Yes. In Word, open References > Table of Contents > Custom Table of Contents and clear Show page numbers before copying the entries.
How do I stop the copied table of contents from updating?
In Word, select the pasted table of contents and press Ctrl+Shift+F9 to unlink its fields and retain the current entries as text.
Will Convert Text to Table automatically separate heading numbers from text?
Not necessarily. Converting with paragraph marks creates one row per heading. For separate number and text columns, add a consistent delimiter between them and choose that delimiter in the Convert Text to Table dialog.




