Features
Mermaid Studio is a free Mermaid diagram editor that lets you write the code or draw on a canvas — and keeps the two in sync, in your browser.
Code and canvas
One diagram, two ways to edit it
Type Mermaid on the left and the canvas redraws as you go. Drag, connect or restyle on the canvas and the code is rewritten for you — clean Mermaid, not a dump of coordinates.
Both sides share one undo history, so Ctrl+Z steps back through whatever you did last, wherever you did it.

Shapes
All 53 Mermaid shapes, one search away
Everyday shapes sit in the palette; every other shape Mermaid 11 defines — document, database, cloud, delay, manual input, junction and more — is grouped by purpose in a searchable picker. Click to add, or drag onto the canvas to place it.
Shapes with a classic bracket syntax are written that way (A{Decision}); the rest use Mermaid's A@{ shape: doc } form, and any extra settings you wrote by hand are kept.

Arrows
Edit arrows like you edit boxes
Select an arrow to change its label, switch between Mermaid's nine arrow types — dotted, thick, two-way, circle or cross ends — reverse it, or set its colour and width.
Chained lines (A --> B --> C) and grouped ones (A & B --> C) are edited without disturbing the arrows around them.

Export
Export what you see — or what Mermaid draws
Save the canvas exactly as you arranged it, as SVG, PNG or JPEG. Or export Mermaid's own rendering as SVG or PNG — the same picture your docs site or README will show.

And the rest of the toolbox
Looks like Mermaid
The canvas uses Mermaid's own layout, sizes and default theme, so switching between Edit and Preview doesn't change your diagram.
Every diagram type
Sequence, class, state, ER, Gantt, pie, journey and the rest render in Preview. Visual editing is for flowcharts.
Files and autosave
Keep named diagrams in your browser. Your work autosaves as you go, and files from the previous version of the editor open too.
Templates and examples
Start from eight built-in examples, or a template from the gallery, and open any of them in the editor with one click.
A real code pane
Line numbers, a monospace font that shows --> exactly as you typed it, and a status bar that tells you when a flowchart stops parsing.
Code, Split or Canvas
Give the whole window to the code or the canvas, or split it and drag the divider. Fullscreen the diagram when you present it.
Light and dark
Follows your system theme, or pick one. The diagram itself stays on white, as it will look when you publish it.
Open from a link
Every example on this site opens straight in the editor through a link that carries the diagram itself.
Private by design
Everything runs in your browser and your diagrams are never uploaded. Even the fonts are served from this site.
Dark mode
Easy on the eyes, true to the diagram
The editor follows your system's light or dark setting, or the theme you pick. Your diagram stays on white paper, exactly as it will appear when you export or publish it.

Keyboard and mouse
| CtrlS | Save to this browser (and to the open file) |
| CtrlZ | Undo — across code and canvas |
| CtrlY | Redo |
| CtrlA | Select everything on the canvas |
| Delete | Delete the selected shapes and arrows |
| Esc | Clear the selection |
| CtrlEnter | Leave the code pane |
| Drag a shape from the palette | Add it where you drop it |
| Drag from a shape's dot to another shape | Connect them with an arrow |
| Double-click a shape | Rename it |
| Right-click a shape | Cycle through the classic shapes |
| Right-click empty canvas | Add a shape |
Start a diagram — no account, no install
Open the editor and type, paste existing Mermaid, or load an example.
Open the editor