Word to Markdown Converter

Convert a modern Word .docx document into clean, editable Markdown without uploading it. The browser reads the document structure and keeps supported headings, paragraphs, bold and italic text, links, lists, blockquotes, code styles, and simple tables. Review the safe preview, copy the result, or download a .md file. Images are replaced with an explicit omission marker, while page layout and other Word-only features are reported as limitations instead of being silently promised.

How to convert a Word document to Markdown

  1. 1

    Choose a DOCX

    Open an unencrypted `.docx` file. The converter checks its ZIP and Office Open XML structure before reading it locally.

  2. 2

    Choose Markdown markers

    Select hash or underline-style headings and choose a dash or asterisk for unordered list items.

  3. 3

    Review the structure

    Check the safe preview and any notices about omitted images or Word features that do not map cleanly to Markdown.

  4. 4

    Copy or download

    Copy the Markdown to the clipboard or save it as a UTF-8 `.md` file with a filename based on the DOCX.

From WordprocessingML to Markdown

A DOCX is an Office Open XML package rather than a single stream of formatted text. Microsoft describes a basic word-processing package as a collection of parts, including a main document part that contains the body. This converter first checks for the expected package structure, then uses Mammoth.js to produce a semantic HTML intermediate. Mammoth’s own guidance favors semantic structure over reproducing Word’s exact appearance, which is the right boundary for Markdown.

The HTML intermediate is parsed in memory and converted to CommonMark blocks and inline elements. Simple tables use the GitHub Flavored Markdown table extension. The intermediate is never mounted raw. The preview is generated from the Markdown and sanitized before display.

Word structure Markdown result Conversion boundary
Heading styles # headings or Setext level 1–2 headings Visual font size alone does not define a heading
Paragraphs, bold, italic, strike Paragraphs and inline markers Fonts, colors, and precise spacing are omitted
Ordered and unordered lists Numbered and indented list items Complex custom numbering may need editing
Hyperlinks [label](URL) Only safe web, email, or fragment links are retained
Simple tables GFM pipe table Merged cells and complex layouts are flattened
Images and embedded objects Visible omission marker Binary media is not exported into Markdown

Worked example

Suppose a DOCX contains a Project status Heading 1, two paragraphs, a numbered three-step plan, and a 2 × 3 table listing an owner and due date. With hash headings selected, the output begins with # Project status, followed by ordinary paragraphs, 1. list markers, and a GFM table whose first row becomes the header. If the same document contains a floating chart, the chart is not converted; the tool shows a limitation notice so the missing object is not mistaken for a successful export.

What Markdown cannot preserve

Markdown expresses content structure, not Word pagination. Pages, columns, margins, headers, footers, fonts, colors, floating positions, text boxes, charts, SmartArt, equations, macros, OLE objects, forms, comments, and tracked-change history are outside this converter’s output contract. Complex merged tables may lose their intended grid. Review technical or regulated documents carefully, and keep the original DOCX as the authoritative source.

File and privacy limits

The converter accepts .docx, not legacy .doc, .docm, ODT, or PDF. It rejects packages without the expected Office Open XML parts, encrypted ZIP entries, more than 2,000 package entries, over 25 MiB compressed, or over 80 MiB expanded. These limits reduce memory risk but do not repair damaged files.

The DOCX bytes, filename, extracted structure, settings, preview, and Markdown remain in this browser. In the multi-step flow, a random token in this tab’s sessionStorage points to an expiring IndexedDB record for up to two hours. The content is never put in the URL or sent through Livewire. Starting over deletes the tab token and stored record.

Frequently Asked Questions

Use a modern, unencrypted .docx file. Legacy .doc, macro-enabled .docm, ODT, PDF, encrypted packages, damaged files, and files beyond the stated package limits are rejected. Save an older Word document as DOCX before using this tool.

The converter handles semantic headings, paragraphs, bold, italic, strikethrough, safe links, line breaks, ordered and unordered lists, blockquotes, code styles where Word exposes them, and simple GFM tables. Visual styling without semantic structure may not map cleanly.

Images receive a visible omission marker and a warning. Page layout, columns, headers, footers, fonts, colors, floating items, merged-table layouts, charts, SmartArt, equations, macros, embedded objects, forms, comments, and tracked-change history are not reproduced exactly.

Word is a paginated layout system, while Markdown describes lightweight document structure. The converter preserves supported meaning rather than pixel positions, page breaks, fonts, or exact spacing. Review the result and make any document-specific edits before publishing.

No. The file bytes, filename, content, settings, preview, and Markdown stay in your browser and are not sent through Livewire or placed in the URL. Funnel recovery uses an expiring record in this tab only, and Start over deletes it.

Related Tools