Inside Client-Side OpenXML (.DOCX) to Markdown Parsing
A .docx document is actually a compressed ZIP archive containing OpenXML metadata (word/document.xml) stuffed with font families, margin spacing, revision identifiers, and theme colors. ConvertToMD unpacks the archive in RAM via fflate and reads paragraph styles (Heading1, Heading2, Title), inline bold/italic runs, embedded hyperlinks, lists, and native Word tables into crisp, readable Markdown.
Unlike blind copy-paste workflows that accidentally flatten headings or lose bullet indentation, parsing word/document.xml directly preserves semantic document hierarchy. If you are converting legacy binary .doc files from older Microsoft Office versions, save once as .docx in Word or LibreOffice—or paste rich text directly into our Text to Markdown notepad.
OpenXML (.DOCX) Element Translation
| Word Document Construct | Generated Markdown | Notes |
|---|---|---|
| Heading 1 – Heading 6 styles | # to ###### section headers | Ideal for GitHub & static doc TOCs |
| Bold / Italic / Monospace runs | **text**, *text*, ` code ` | Strips proprietary font XML bloat |
| Numbered & nested bullet lists | Indented Markdown lists | Maintains logical list grouping |
| Native Word tables | GFM pipe tables (| col |) | Cleanly editable in Markdown editors |
Why Browser .DOCX Conversion Beats File-Upload Services
Contracts, HR handbooks, and unreleased product specs often cannot leave company laptops. Because ConvertToMD reads .docx ZIP entries strictly inside browser memory, sensitive documents stay off third-party SaaS servers while matching the cleanliness of local pandoc -t gfm exports.