Mermaid Editor — Live Flowchart & Diagram Preview, Free & Private
Write Mermaid-style diagram code with a live preview, friendly syntax errors, zoom and pan, and PNG/SVG export. 100% in your browser.
More tools
All free, all private — everything runs in your browser.
Flowchart Maker
Build flowcharts interactively: add nodes, drag them, connect arrows, edit labels, then export PNG or SVG. Free, private, nothing uploaded.
Sequence Diagram
Type actors and messages in a small documented DSL and get a rendered sequence diagram with lifelines and arrows. Export PNG/SVG, 100% private.
UML Class Diagram
Describe classes with fields and methods and draw inheritance, realization, composition, and aggregation. Mermaid-style source or table editor. No upload.
ER Diagram
Paste CREATE TABLE statements (or use the table editor) and get an entity-relationship diagram with foreign-key crow's-foot connectors. PNG/SVG export.
Gantt Chart
Turn a simple task list (name, start, end, dependencies) into a Gantt chart with correct local date math. Export PNG/SVG. Free and private.
Mind Map
Type an indented outline and watch it become a mind map. Add branches by indenting, export PNG or SVG. Works offline, nothing uploaded.
How to use Mermaid Editor
- 1Type (or paste) Mermaid-style diagram source in the left pane — start with the built-in flowchart example.
- 2The preview on the right re-renders as you type (debounced); syntax errors show a friendly, line-numbered message instead of a broken canvas.
- 3Zoom with the +/− buttons and pan by dragging the preview.
- 4Click Export SVG or Export PNG — the file is generated in your browser and never uploaded.
Mermaid Editor FAQ
- Does this use the official Mermaid library?
- No — this editor renders a documented Mermaid-style subset with a small in-house engine built for this site. It supports the core flowchart, sequence, class, ER, Gantt, and mind-map syntaxes, runs fully offline, and produces deterministic exports. For syntax the subset does not cover, the error message tells you what to change.
- Is my diagram source uploaded anywhere?
- No. The editor runs entirely in your browser with a strict Content-Security-Policy that blocks all network connections — your diagram text is never transmitted, logged, or stored on a server.
- Can I export PNG and SVG?
- Yes. SVG exports are byte-stable (the same source always produces the identical SVG file), and PNG exports render at 2× resolution for crisp text.
- Does it work offline?
- Yes — the site is an installable PWA. After the first load, the editor works with no connection at all.