Write Mermaid syntax and see a live flowchart, sequence, or class diagram preview, then export it as SVG or PNG.
Mermaid turns plain-text syntax into flowcharts, sequence diagrams, class diagrams, state diagrams, Gantt charts, and more — the same rendering engine behind diagram support in GitHub, GitLab, and Notion, running here as a live, side-by-side editor so you can write and export a diagram without checking it into a markdown file first.
Flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, pie charts, and several others — start any diagram with its keyword (e.g. flowchart, sequenceDiagram, classDiagram, gantt) and the renderer picks the right layout automatically.
No — the Mermaid rendering library runs entirely in your browser and turns your syntax straight into an SVG locally; nothing you type is transmitted anywhere.
Mermaid could not parse the syntax as written — the preview keeps showing the last diagram that did render successfully until the error is fixed, so you never lose your place.
Yes — use Download .png for a 2x-resolution image that pastes straight into Slack, Google Slides, PowerPoint, or an issue tracker. It is rasterized in your browser (nothing is uploaded) on a background matching the preview, so a diagram made in dark mode stays readable. Use the .svg download when you want a file that scales cleanly at any size.
Click Copy share link. The diagram is compressed and stored in the part of the URL after the #, so the link reopens it exactly as you left it. Browsers never send that part of a URL to any server, so the diagram stays private to you and whoever you give the link to, and nothing is stored on our side.
Yes — the editor autosaves your latest diagram in this browser (local storage) and restores it on your next visit. It never leaves your device, and Clear removes it. Opening a share link always shows the shared diagram instead of your saved one, without overwriting your saved copy.
The preview scales the diagram down to fit the box. Very large diagrams stop shrinking at a readable minimum and scroll instead, and the zoom buttons let you enlarge any part; click the percentage to fit it back to the box.
← All tools · Text & Data · Blog · Cheat sheets · FAQ