Word (.docx) Table & Text Extractor

tools/word-docxFormat Readers

Extract native tables from Microsoft Word (.docx) files into typed SQL rows.

Reads native Word tables from .docx files using document.docx@1.0.0 with pinned 1-based table and header_row settings. Turns agency schedules and procurement tables into typed SQL rows.

Use in chatFetch quarterly procurement .docx reports, decode table 1 via document.docx@1.0.0, normalize amounts in DuckDB SQL, and publish an API-ready table.

What Word (.docx) Table & Text Extractor does

Word (.docx) Table & Text Extractor pulls embedded schedule tables, award lists, and rate schedules straight from Microsoft Word documents without manual copy-paste. Recipes pin document.docx@1.0.0 with the exact 1-based table index and header_row.

Inside Mostly Right pipelines, outputs keep source URLs and typed columns across refreshes. Clean tables publish to SQL, Parquet, CSV, JSON, REST APIs, and MCP.

Input & output example

Extracts pinned native Word tables (1-based table and header_row) via document.docx@1.0.0.

Microsoft Word (.docx) table #2

table: 2 | header_row: 1
| Vendor | Contract ID | Cap (USD) |
| Northbridge Transit | M-2026-14 | 1,450,000 |

Extracted SQL rows

vendorcontract_idcap_usd
Northbridge TransitM-2026-141450000

How it works

  1. 1

    Link .docx URLs or indexes

    Point to direct .docx files or discover them across agency and regulatory index pages.

  2. 2

    Pin table index and header_row in document.docx

    Specify the 1-based table number and header_row in document.docx@1.0.0 so every refresh extracts the exact target table.

  3. 3

    Normalize and publish

    Type numbers and dates in DuckDB SQL, run quality checks, and serve via API, Parquet, or MCP.

Try with an agent

Pre-loads Word (.docx) in chat

Pull award tables from government .docx files

Fetch quarterly procurement .docx reports, decode table 1 via document.docx@1.0.0, normalize amounts in DuckDB SQL, and publish an API-ready table.

Classify obligations in procurement Word tables

Extract compliance schedule table 2 from agency .docx files with document.docx@1.0.0 and classify rows using AI Text Classification.

Common use cases

  • Pulling schedule tables from government and NGO .docx reports
  • Turning legal, policy, and procurement Word tables into datasets
  • Feeding Word table text cells into AI Text Classification or Extraction
  • Archiving recurring agency .docx fee schedules into SQL tables

Details

Identifier
word-docx
Inputs
.docx (OOXML) · Native Word tables
Outputs
Typed SQL rows · Parquet & REST API
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

Can document.docx extract tables inside a Word document directly?

Yes. Native Word tables extract cleanly with document.docx@1.0.0 by setting the 1-based table index and header_row.

Can it extract specific tables from multi-table Word files?

Yes. Declare one source per 1-based table index in document.docx@1.0.0 and join or union them in DuckDB SQL.

Does it support legacy binary .doc files?

document.docx targets OOXML .docx files; legacy binary .doc files are outside this reader.

Related tools