blackdroid.dev

Mermaid Live Editor

Write Mermaid diagram code and see it rendered live — flowcharts, sequence, class, ER, Gantt and state diagrams. Export as SVG or PNG. Free, runs in your browser.

About Mermaid Live Editor

Mermaid turns plain text into diagrams — flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, state machines and more. This editor renders your code live as you type, with a sample for every diagram type to get you started, and exports the result as a scalable SVG or a 2× PNG for docs, wikis and slides.

Everything runs locally in your browser using the official Mermaid renderer — your diagram source is never uploaded, which makes it safe for internal architecture sketches and confidential flows. Diagrams are kept in your browser's local storage so a refresh won't lose work. Mermaid supports flowchart, sequence, class, state, ER, Gantt, pie, git-graph and mindmap syntax out of the box.

How to use Mermaid Live Editor

  1. Type or paste Mermaid code into the editor, or pick a sample diagram from the dropdown to see the syntax.
  2. The preview re-renders automatically a moment after you stop typing; syntax errors show inline under the toolbar.
  3. Download the result as SVG for docs and wikis, or PNG (2× resolution) for slides and chat.

Frequently asked questions

Is my diagram source uploaded anywhere?

No — Mermaid rendering happens entirely in your browser with the official library. Nothing is sent to any server.

Which Mermaid diagram types are supported?

Everything the Mermaid library supports: flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, gitGraph, mindmap and more.

Why does my diagram show an error?

Check the error message under the toolbar — Mermaid is strict about indentation and quoting. Labels with spaces or special characters usually need quotes: A["my label"].