Mermaid StudioEditor

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.

Mermaid Studio with Mermaid code on the left, the same flowchart on a visual canvas on the right, and the Properties panel open for the selected decision shape

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.

The More shapes picker open over the canvas, showing shapes grouped into Basic, Process, Data & storage and Documents, with a search box

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.

An arrow selected on the canvas with the Properties panel showing its label, a grid of nine arrow types, Reverse direction, and line colour and width

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.

The Export menu open, offering SVG, PNG and JPEG as laid out on the canvas, and SVG and PNG as Mermaid renders it

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.

Mermaid Studio in dark mode: dark code pane, toolbar and panels around a flowchart that stays on a white canvas

Keyboard and mouse

Shortcuts (⌘ on a Mac)
CtrlSSave to this browser (and to the open file)
CtrlZUndo — across code and canvas
CtrlYRedo
CtrlASelect everything on the canvas
DeleteDelete the selected shapes and arrows
EscClear the selection
CtrlEnterLeave the code pane
On the canvas
Drag a shape from the paletteAdd it where you drop it
Drag from a shape's dot to another shapeConnect them with an arrow
Double-click a shapeRename it
Right-click a shapeCycle through the classic shapes
Right-click empty canvasAdd a shape

Start a diagram — no account, no install

Open the editor and type, paste existing Mermaid, or load an example.

Open the editor