Skip to content
DocxTables

Pull every table from many Word .docx files into one Excel workbook — Step-by-step guide

Drop a folder of Word documents, or a ZIP of them, and get one .xlsx: every table from every file stacked with its file name and table number, merged cells repeated, nested tables flattened. Form fields go to a second sheet. Nothing is uploaded.

What the sample produces

The sample is a ZIP written by a script: two tables with merged cells, a table with a nested table, a letter with no tables, and a text file that is skipped. The check compares every cell of the workbook and of the CSV files with values written by hand, and reads the workbook again with a Python reader that shares no code with the engine.

Tables sheet
15 rows: the top header and 14 table rows from 4 tables
Fields sheet
one row per document, one column per field
Reported in the report
1 file that is not .docx; 1 document with no tables

How to use it

  1. Choose the .docx files, a ZIP of them, or a folder. Tick the option below if the first row of your tables is data, not column names.
  2. Check the preview: the table count, the documents with no tables, and any file that was not read, with the reason.
  3. Download the workbook and open it in Excel or Google Sheets. The CSV files are there if you prefer plain text.

Supported files

Reads the body of each .docx (word/document.xml) only: headers, footers and footnotes are separate parts and are not read. The header of each table is its first row, unless you tick the option that says the first row is data. Merged cells (gridSpan and vMerge) repeat their text in every cell they cover. A nested table is written into its parent cell as text, marked as flattened. Rows with no text are dropped. Form fields (content controls and legacy form fields) go to the Fields sheet and to the fields CSV. Old .doc files and encrypted files are not supported. Up to 500 files and 256 MB per run, and up to 50 sheets when you split by layout. Tested on documents written by a script, not on documents saved by Word.

Open DocxTables

Compare DocxTables with alternatives