Two ways to start
Start from a template loads a ready example into the editor: Flowchart, Sequence, Class, State, Entity relationship, Gantt, Pie, Mind map, or Timeline. It replaces whatever source is in the editor.
Draft a diagram from text takes a Markdown outline, arrow lines such as A -> B, or a ```mermaid block, and writes the Mermaid source for you when you press Draft diagram. Each arrow line becomes one chain, and a name used twice becomes one box. Existing Mermaid source passes through unchanged.
Steps
- Open MD Diagram and start from a template or a text draft.
- Edit the Mermaid source on the left. The diagram redraws as you type; Ctrl+Enter redraws at once, and a syntax error marks its line.
- To rename a box without hunting through the code, double-click its label in the diagram, type, and the first place that label is written in the source is replaced.
- Use the toolbar to switch between Code, Split, and Diagram layouts, pick a theme (Default, Neutral, Forest, or Dark), zoom, or press Fit. Drag to pan, Ctrl+scroll to zoom, and use the full screen button for a large diagram.
- Download with .mmd (the Mermaid source), SVG, or PNG at the right of the toolbar.
Free or paid: templates, drafting, editing, and the live preview are free and need no account. Each download spends 1 credit and needs you to sign in, so an SVG and a PNG of the same diagram spend 2. 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.
Good to know
- The diagram is drawn in your browser by Mermaid 11.4.1, loaded from the jsDelivr CDN. SVG and PNG are made from that drawing; the server checks the file, charges, and returns it.
- Wait until the diagram has drawn, and fix any syntax error, before you download an SVG or PNG.
- Your source is saved in this browser and the page reopens on your last diagram. It is not saved to your account, so copy it (the copy button is in the toolbar) or download the .mmd if you need it elsewhere.
Related
Just need an image? See export a Mermaid diagram as PNG or SVG. MD Converter also renders ```mermaid blocks inside a Markdown document, so you can keep the source in the document and export it to PDF in Markdown to PDF. Credits are shared across all nine tools; see pricing.