About this Mermaid live editor
Mermaid lets you create diagrams from simple text, and GitHub, GitLab, Notion and many docs tools render it natively. This editor shows a live preview as you type flowcharts, sequence diagrams, class diagrams, ER diagrams, state machines, Gantt charts, pie charts and git graphs, and exports them as SVG or PNG.
How to use the Mermaid Diagram Editor
- Pick a sample or write Mermaid syntax.
- Watch the diagram update live and choose a theme.
- Export SVG or PNG, or share a link to the diagram.
Example
flowchart LR
A --> B --> CFrequently asked questions
Can I use the diagram on GitHub?
Yes. Put the code in a ```mermaid fenced code block in any Markdown file and GitHub renders it automatically.
Why does my diagram show an error?
The error message shows the line Mermaid could not parse. Common causes are unquoted labels with special characters and missing arrows.
Is my data safe?
Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.
Is it free?
Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.