Markdown to DOCX Converter

Turn Markdown into an editable Microsoft Word (.docx) file. Headings, lists, tables, code blocks and formulas are converted locally in your browser.

All processing on this page runs locally in your browser unless noted otherwise.

Markdown input

Preview (KaTeX)

Markdown to DOCX

Export this document as an editable Word file — locally in your browser.

What is included

  • Headings mapped to Word styles
  • Bold / italic / inline code
  • Lists, tables and code blocks
  • Formulas as Word math zones

Formulas

Inline and display:

Diagram (Mermaid)

flowchart LR
  A[Paste Markdown] --> B[Preview]
  B --> C[Export]
Feature Status
Headings Yes
Tables Yes
Formulas Yes
Mermaid Yes (as image)
Local export Yes

Nothing you paste is uploaded.

console.log('docx generated in the browser')

How to use

  • Paste Markdown, import a .md file, or bring it from the Editor / Clean tools.
  • Set title, file name and formula mode (MathML / KaTeX for preview).
  • Click Download DOCX — formulas become Word math zones; ```mermaid diagrams become images.

FAQ

Is my Markdown uploaded?

No. DOCX is generated with the docx library entirely on your device.

Will headings work in Word’s navigation pane?

Yes — # through ###### map to Word Heading 1–6 styles.

How are formulas exported?

When formulas are enabled, TeX math delimiters are placed in Word equation (OMML) zones. Preview can show MathML or KaTeX; complex LaTeX may need a touch-up in Word’s equation editor.

How are Mermaid diagrams exported?

Mermaid fences are rendered to PNG images and embedded in the Word file. If a diagram fails to render, the source is kept as a code block.

Related tools