Mermaid Live Editor & Diagram Playground
Online Mermaid diagram editor. Write flowcharts, sequence diagrams, class diagrams and more, preview them live and export SVG or PNG. Everything runs locally in your browser; nothing is uploaded.
Type Mermaid code on the left. The diagram renders live on the right with syntax errors shown inline. Download as SVG or PNG.
Mermaid code
Diagram
Loading diagram engine…
Learn more
Diagrams as code
Mermaid describes diagrams in text, so they sit in version control, diff cleanly and update with a one-line edit instead of redrawing.
A first flowchart
Start with flowchart TD, then write A[Start] --> B{Decision}. Use TD for top-down and LR for left-to-right layouts.
Frequently asked questions
Which diagram types work?
Flowcharts, sequence, class, state, ER, Gantt, pie, mindmap and others supported by the bundled Mermaid version.
Is my diagram uploaded?
No. Rendering happens in your browser.
How do I use the diagram in docs?
Download the SVG, or paste the Mermaid code into GitHub or GitLab Markdown, which render it natively.