Write Mermaid code and see the diagram as you type: flowcharts, sequence, class, state, ER, Gantt, pie, mind map, timeline, and Git graphs. Zoom and pan the preview, then export SVG or PNG at up to 4× size. Rendering happens in your browser.
Type Mermaid code in the editor, or choose a diagram from Example to start from.
Pick a Theme: Default, Neutral, Dark, or Forest.
Check the preview. Scroll or pinch to zoom, drag to pan, and use Fit to view or Full screen.
Set Background and PNG size, then click SVG or PNG to download, or Copy SVG / Copy PNG for the clipboard.
No. Mermaid runs inside the page, so your code and diagrams stay in your browser. The code is saved locally so it is still there next time.
The error appears under the editor with its line number, and the preview keeps showing the last diagram that rendered.
Yes. Set Background to Transparent before exporting SVG or PNG.
Choose a PNG size of 2×, 3×, or 4×. The exact pixel dimensions are shown next to the setting.
Ctrl/⌘ + S in the editor downloads the SVG. In the preview, + and − zoom, arrow keys pan, 0 resets to 100%, and F fits the diagram.