Export filled Word form fields from many .docx files to one table — Step-by-step guide
Drop a folder of filled Word forms, or a ZIP of them, and get one CSV: one row per document and one column per form field, with the file name first. Content controls are named by their tag, alias or position, and legacy form fields by their name. Checkboxes come out as Yes or No. Nothing is uploaded.
What the sample produces
The sample is a ZIP written by a script: three filled copies of one template, a letter with no fields, an old .doc and a .txt. The check compares every CSV cell with hand-written values and with a second reader in Python, and it confirms that a repeated field name gets its own column.
- Rows
- 3, one per filled form
- Columns
- 13: the file name and 12 fields
- Reported, not exported
- 3: a document without fields and two files that are not .docx
How to use it
- Choose the filled .docx files, a ZIP of them, or a folder. All of them should come from the same template.
- Check the preview: the field columns, the number of rows, and the files that were not exported, with the reason.
- Download the CSV and open it in Excel or Google Sheets. The file is UTF-8 with a byte order mark, so accents display correctly.
Supported files
Reads the body of each .docx (word/document.xml): content controls, including plain text, rich text flattened to one line, dropdown and combo box selections, date pickers, and checkboxes written as Yes or No; and legacy form fields for text, checkboxes and dropdowns. Headers and footers are separate parts and are not read. Placeholder text is exported as an empty cell. Files that are not .docx, files with no fields and damaged files are listed in the report and not exported. A field name used twice gets a suffix in its column name. Old .doc files and encrypted files are outside the supported format. Up to 300 files and 256 MB per run. Tested on documents written by a script, not on forms saved by Word.