Mermaid Diagram Editor

Write Mermaid, see the diagram live, colour it and export PNG or SVG

calendar_today Last updated: November 19, 2026

Loading the editor…

Runs entirely in your browser: the code is never sent to a server, and a share link carries the diagram itself.

lightbulb

Sahel's Mermaid editor turns code into a diagram as you type — flowcharts, sequence diagrams, ERDs, state machines, Gantt charts, mind maps and more — with colour palettes, click-to-colour nodes, a canvas that zooms and pans freely, and PNG, SVG and share-link export, all inside your browser.

help_outline

How does this tool work?

1

Write code or pick a template

Flowchart, sequence, ERD, Gantt and more — drawn as you type.

2

Colour it and look around

Ready or custom palettes, click any node to colour it, zoom and pan freely.

3

Export or share

High-resolution PNG, SVG, or a link that carries the diagram itself.

Frequently asked questions

What is Mermaid? expand_more
A simple text language that describes a diagram with words and arrows, such as A --> B, which the editor draws for you. The diagram stays text: it lives in Git next to your code, edits easily, and GitHub renders it inside Markdown files.
Which diagrams are supported? expand_more
Everything Mermaid 12 supports: flowcharts, sequence, class, state, ER, Gantt, timeline, mind map, user journey, Git graph, pie, bar and line charts, priority quadrants, Sankey, Kanban and more. Most have a ready template in the menu.
How do I colour a single node? expand_more
In a flowchart, click the node in the drawing and pick a fill or border colour; the editor writes the style line into your code and picks a readable text colour. To colour the whole diagram, choose a palette or set your own colours in the Style tab.
Does Arabic text survive export? expand_more
Yes. The Arabic font is embedded in the SVG and PNG, so labels look exactly as they do in the editor, even on a machine without the font.
Is my code uploaded? expand_more
No. Rendering happens in your browser and your latest work is saved there automatically. A share link carries the diagram itself, compressed after the #, and that part of a link is never sent to any server.