Convert DOC (Word) to JSON
Convert DOC to JSON with source metadata and legacy Word text delivered page by page and line by line.
Convert DOC to JSON when data from a legacy Word document is needed by an application, search, or import. Instead of one flat text value, the output has a predictable structure: pages, each with its own lines.
What the JSON contains
The result always has four top-level fields. pages holds text by page together with its lines. tables belongs to the same contract but comes back empty for DOC files: table content lands in the page lines alongside ordinary text.
{
"source": { "filename": "contract.doc", "format": "doc", "pages": 1, "size_bytes": 18432 },
"converted_at": "2026-09-18 10:30:00",
"pages": [{
"number": 1,
"text": "Delivery terms\nItem\nQuantity\nPaper\n12",
"lines": ["Delivery terms", "Item", "Quantity", "Paper", "12"]
}],
"tables": []
}
sourcegives the name, format, size, and number of text pages in the original file.converted_atrecords when the result was created.pageslets code read the complete text of a page or its individual lines.tablesis always present and stays an empty array for DOC, so the same parser handles every source format.
JSON carries data rather than appearance: fonts, element placement, images, headers, footers, and table styling are not included. Table cells arrive as separate lines, without a header row or columns; for a marked-up table, save the document as DOCX and use the DOCX to JSON converter. Complex legacy DOC layout may not match the visual page boundaries.
How to get a code-ready file
- Upload a DOC document.
- Select JSON as the output format.
- Download the file and read
pagesin your code.
More about the formats
What the format is, how to open it and how it differs from the others.