Mermaid Editor
Turn Mermaid source into diagrams for your documentation.
Input
Result
Processed on this device ·
How to use Mermaid Editor
- Paste Mermaid source into the editor, or drop a .mmd file onto the page — the diagram renders automatically as you type.
- Click “Render diagram” to redraw it, or fix the syntax if an error message appears below the panel.
- Export the finished diagram as SVG, or as PNG at 2×, 3× or 4× scale.
About this tool
Mermaid Editor runs Mermaid 11.12.2 entirely in your browser. Your source code and diagrams never leave your device, and the tool keeps working offline once the page is cached. Rendering uses Mermaid’s strict security mode, so raw HTML inside diagrams is disabled. Paste source for flowcharts, sequence diagrams, class diagrams and more, then export a clean SVG for your docs or a high-resolution PNG for slides.
Frequently asked questions
Are my diagrams uploaded anywhere?
No. Mermaid 11.12.2 runs entirely in your browser — your source code and diagrams never leave your device. There is no account, no server and no upload. Once the page is cached, the editor even works offline.
Which diagram types are supported?
Anything Mermaid 11.12.2 supports, including flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, pie charts, git graphs, mindmaps, timelines and user journeys. If the syntax is invalid, the editor shows the error message under the panel instead of a diagram.
What can I export?
SVG, which stays sharp at any size and is ideal for documentation, or PNG at 2×, 3× or 4× scale for slides and sharing. PNG exports are limited by the browser canvas: the image must stay under 40,000,000 pixels in total and neither side may exceed 16,384 pixels, so very large diagrams need a smaller scale or to be split up.
What files can I open?
Files ending in .mmd, .mermaid or .txt. Drop one onto the page or use the file picker — or just paste Mermaid source straight into the editor. The diagram re-renders automatically as you type.
Why does my diagram show an error instead of a picture?
Almost always a syntax problem: the first line must declare the diagram type, for example “flowchart TD” or “sequenceDiagram”, and brackets, quotes and arrows must match. Read the message under the panel — it usually points at the problem — and start from the example diagram, editing one step at a time.