Document Editing Problems

Export Word Heading Numbers and Text to a Table

Jason MillerJason Miller Nov 20, 2026 869 views

Question details

Extract numbered headings and their text from a Word document into a list or table.

Export Word Heading Numbers and Text to a 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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a table of contents

Place the cursor where you can insert a temporary table of contents. Go to References > Table of Contents > Custom Table of Contents.

2
Include all five levels

Set Show levels to 5. Clear Show page numbers if you only need heading numbers and text, then select OK.

3
Update and copy the entries

Select the table of contents and press F9 to update it. Copy it and paste it into a new document.

4
Convert the field to text

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.

5
Convert the list to a table

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.

Separate number and text columns: The paragraph-based conversion creates one cell per heading. To put numbers and heading text in separate columns, first add a consistent delimiter between them and use that delimiter when converting the text.
Work with headings in WPS Office

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. 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. 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. 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. 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.
Collect headings in a table of contents instead of retyping the full listOpen and edit Microsoft Word DOC and DOCX filesUse a familiar document-editing interfaceCreate and edit documents with the free version of WPS Office
microsoft office alternative - wps office

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.