Mermaid editor
MEMBERSWrite Mermaid and see it drawn, or draw and see it written. Lines that are not understood are named, and nothing is lost without a word.
Diagram
Diagram
Full stop and comma move between shapes, arrows move the selected one, Enter writes its text, C starts a connection, Delete removes. Capital R, D, O, B, T, N, F or S adds a shape. K folds, P shows what leads to the shape, Command or Control with F searches.
Pick a shape above and press here, or open a template.
Source, live both ways
Source, live both ways
What Mermaid can hold
What Mermaid can hold
What Mermaid cannot hold is kept in the project. Editing the code changes only what the code says.
Found a bug or missing something? Write to us
How it works
Working with Mermaid
The first line says what is drawn: flowchart LR, sequenceDiagram, classDiagram, erDiagram, stateDiagram, mindmap or timeline. Select a shape and its line is marked, put the caret in a line and its shape is selected.
An edit of the code changes only what it says. Shapes keep the places you gave them, a new shape is put beside the one it is connected to, and notes stay.
Styling by class, links on shapes and subgraphs inside subgraphs have no equivalent here. Such lines are listed, so you know what would be missing before you paste the code back.
Help
FAQ
Can code that starts with graph instead of flowchart be used?
Yes. graph and flowchart are read with TB, TD, BT, LR or RL. The canvas knows only two directions, so the code is written back as flowchart TD or flowchart LR, and a chart that ran from bottom to top or from right to left is turned round.
How are thick, dotted and invisible links written?
--> is an ordinary arrow, ==> a thick one and -.-> a dotted one; --- and -.- have no arrowhead, and --o ends in a circle. The two widest lines of the tool are written as thick. An invisible link, ~~~, is read but not drawn.
Can Mermaid be pasted straight from a Markdown file?
Yes. Lines with ``` fences are skipped, so a whole mermaid code block can be pasted, and so are %% comments and the settings block between two --- lines at the top. Paste code then opens it as a new diagram or brings the changes in.