PNG or SVG?
- SVG stays sharp at any size and is small. Use it for web pages, docs sites, and anything that may be zoomed or printed.
- PNG works everywhere, including Word, PowerPoint, Google Slides, Jira, and chat apps that do not show SVG.
- .mmd is the Mermaid source itself; keep it so you can edit the diagram later.
Steps
- Open MD Diagram and paste your Mermaid code, or press Start from a template (Flowchart, Sequence, Class, State, Entity relationship, Gantt, Pie, Mind map, or Timeline).
- Watch the diagram draw as you type. A syntax error marks its line; fix it before you download.
- Pick a theme in the toolbar: Default, Neutral, Forest, or Dark.
- Press PNG or SVG at the right of the toolbar.
Free or paid: editing and the live preview are free and need no account. Each download spends 1 credit and needs you to sign in. Every account gets 3 free downloads a month. For more, a 25-credit pack is a one-time $3.00, or Pro covers 300 downloads a month, $5.00 for 30 days.
The command-line alternative
If you export diagrams in a build, the Mermaid CLI does it with mmdc -i diagram.mmd -o diagram.png. It needs Node.js and a headless browser. MD Diagram is for the one-off case: nothing to install, and you see the result before you download.
Good to know
- The diagram is drawn in your browser by Mermaid 11.4.1. The PNG and SVG are made from that drawing.
- Your source is saved in this browser only. Download the .mmd if you need it elsewhere.
- MD Converter also draws
```mermaidblocks inside a document, so a diagram can live in the Markdown and export with it to PDF.
Related
See the full MD Diagram guide. Credits are shared across all nine tools; see pricing.