md2nativedocx

Free and open source · public domain

Mermaid to Word, as shapes you can edit

Paste a Mermaid diagram, get a Word document where every box is a real Word shape and every arrow stays attached. Or copy it straight into the document you are writing. Not a picture.

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

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.
How do I put the diagram into a document I already have?
Convert, then press Copy for Word and paste with Ctrl+V: the boxes and arrows arrive as Word shapes in a drawing canvas, still editable. SmartArt and charts arrive as shapes too; to keep them as SmartArt and charts, open the downloaded file and copy the diagram from there.
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.
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.

Other conversions

Also where you already work