md2nativedocx

Free and open source · public domain

Markdown to Word, diagrams included

Paste Markdown with Mermaid or PlantUML diagrams, get a Word document where every diagram is real, editable shapes, SmartArt or charts. Not pictures.

How it works

  1. Write or paste Markdown

    Headings, tables, lists, code, maths, and diagrams in ```mermaid or ```plantuml blocks. Or open a .md file.

  2. Converted in your browser

    Pandoc, the standard document converter, runs inside this page. The diagrams are drawn as native Word objects, not as pictures.

  3. Edit everything in Word

    Click a box to retype it, drag it and its arrows follow, restyle a SmartArt, change a chart’s figures with Edit Data.

Questions

Can Mermaid diagrams become editable shapes in Word, rather than images?
Yes, that is what this converter is for. Most Markdown to Word converters, and Pandoc with a Mermaid filter, insert each diagram as a PNG or SVG picture. Here every box is a Word shape you can retype, move or recolour, and its arrows are connectors that stay attached when the box moves. Processes, cycles, org charts and mind maps become SmartArt; pie, bar, line and radar charts become Word charts with Edit Data.
Which diagram types are supported?
All 32 Mermaid diagram types, among them flowchart, sequence, class, state, entity-relationship, Gantt, pie, mind map, timeline, C4, git graph, kanban and XY chart. PlantUML sequence, class, state and activity diagrams too.
I only have one Mermaid diagram. Can I convert just that?
Yes. Paste the Mermaid code alone, with or without its ```mermaid fence, or open a .mmd file. You get a Word document holding that diagram; Copy for Word puts it on the clipboard instead, to paste into a document you already have.
Is my document sent to a server?
No. The page downloads Pandoc and the diagram engine once, then converts on your computer. Your text never leaves the browser, which you can check in its developer tools: the page is not allowed to contact any other site.
Can I get PowerPoint or LibreOffice instead of Word?
Yes. PowerPoint (.pptx) gives one slide per diagram, made of editable shapes. LibreOffice (.odt) draws flowcharts as native LibreOffice shapes; the other diagram types are not drawn there yet.
Does the rest of the document convert properly?
Yes, Pandoc converts it: headings as Word heading styles, tables, lists, footnotes, code, and LaTeX maths as Word equations. The VS Code extension and the command line also apply your company’s Word template and page setup.

Other conversions

Also where you already work