Mermaid Editor — Diagram as Code, with Live Preview

Monaco editor, instant rendering, and a visual mode that keeps code and canvas in sync.

Diagram as code means your diagrams live next to your code: reviewable in pull requests, diffable, and safe in version control. The Mermaid Chart editor gives you a professional coding experience (Monaco, the VS Code engine) with instant preview — plus drag-and-drop editing when you prefer pointing at things.

Monaco code editor

Syntax highlighting and the same engine as VS Code.

Live preview

Every keystroke re-renders the diagram.

Visual + code in sync

Drag a node, the code updates — and vice versa.

Why diagram as code

Text sources are small, mergeable and auditable. Teams keep diagrams in Git, review them like code, and never lose history.

Mermaid live editor

Start coding immediately in the browser — free plan includes the full editor with 3 saved diagrams.

Ready to try it?

Free plan includes the full editor — no credit card required.

Create Your First Diagram Free