Diagrams as code, refined.

Write Mermaid. See it instantly.

A focused editor and a deep reference for every Mermaid diagram type — flowchart, sequence, class, state, ER, Gantt, pie, journey, mindmap, timeline, git, C4. No login, no friction.

Free · Open source friendly · Works offline
diagram.mmd
flowchart TD
    Start([User opens app]) --> Auth{Logged in?}
    Auth -- yes --> Home[Home feed]
    Auth -- no --> Login[Login screen]
    Login --> Auth
    Home --> Compose[Compose post]
    Compose --> Publish[(Database)]
    Publish --> Home
preview · 30ms
startok?retrycommitenddone
12
Diagram types
240+
Vetted templates
3 → 8
UI languages
< 90 KB
Page weight
01 / Coverage

Every Mermaid diagram, fully documented

Each diagram type has a dedicated page with syntax, gotchas, vetted templates, and a one-click "open in editor" link.

See all
02 / Editor

Built for people who think in text

Every interaction is keyboard-first. Every output is portable. Every diagram type is documented inline.

01

Split-pane live preview

Type on the left, the diagram updates on the right within 30ms. Errors point to the exact line.

02

All 12 diagram types

Flowchart, sequence, class, state, ER, Gantt, pie, journey, mindmap, timeline, git graph, and C4 — no plugin required.

03

Pixel-clean export

SVG, PNG @1×/2×/3×, PDF, and a copyable embed snippet that works in any markdown renderer.

04

Themeable

Bring your own palette, type, and stroke. Six built-in themes including a hand-drawn look.

05

Shareable URLs

The diagram is in the URL. No accounts. No backend. The link is the document.

06

Eight UI languages

English, 中文, 日本語 today; Spanish, French, German, Portuguese, Korean shipping next.

03 / Use cases

Used for

01

Engineering RFCs

Pin a sequence diagram to your design doc; reviewers see exactly how the request flows.

startok?retrycommitenddone
02

Onboarding docs

A flowchart in the README is worth a thousand Confluence pages.

UserAPIDBGET /meSELECT…row200 OK
03

Database modeling

ER diagrams that live in version control next to the migration that changed them.

CUSTOMERid PKemailcreated_atPRODUCTsku PKtitlepriceORDERid PK · cust_id FKplacescontains
04

Project planning

A Gantt chart you can edit in a pull request comment.

w1w2w3w4w5researchdesignbuild · apibuild · uiqalaunch
05 / By role

A Mermaid editor for the way your team actually documents.

Software engineers, product managers, technical writers, and educators all reach for diagrams as code for different reasons. MERMAIDEDITOR is the online Mermaid editor that fits all four — open the Mermaid live editor in your browser, write Mermaid syntax, and get a clean SVG flowchart, sequence diagram, ER diagram, or Gantt chart in milliseconds.

01

For software engineers

Document microservice architecture with C4 diagrams, sketch OAuth2 sequence diagrams, model database schemas with ER diagrams, and check Mermaid flowcharts into git next to your code.

02

For product managers

Build quarterly roadmaps with Mermaid Gantt charts, map onboarding journeys, and sketch user flows without leaving your spec doc — every diagram is just text, so review fits into a normal pull request.

03

For technical writers

Replace screenshots that go stale with diagrams as code that update with the product. The Mermaid markdown syntax embeds in MkDocs, Docusaurus, GitBook, and every other static-site generator on Earth.

04

For educators & students

Teach state machines, finite automata, UML class diagrams, and database modeling with a free online diagram editor. No login, works offline, exports clean SVG and PDF for handouts.

06 / Examples

Mermaid examples you can copy in one click.

Every snippet is a ready-to-use Mermaid template. Copy the code, paste it into the Mermaid editor, tweak the labels, and export your diagram as SVG or PNG — no account required.

07 / Integrations

Mermaid renders everywhere your docs live.

The Mermaid syntax is the lingua franca of diagrams as code. Every diagram you draw in MERMAIDEDITOR drops straight into the platforms your team already uses — no plugins, no exporters, no rebuilding.

GitHub
Native Mermaid in markdown
GitLab
Native Mermaid in MR & wiki
Notion
Mermaid code blocks
Obsidian
First-class Mermaid plugin
VS Code
Mermaid Preview ext.
MkDocs
mkdocs-mermaid2
Docusaurus
@docusaurus/theme-mermaid
Confluence
Mermaid macro
Slack
Paste rendered SVG
Linear
Mermaid in markdown
Hugo
render-codeblock-mermaid
Quarto
Built-in Mermaid
08 / How it works

From blank canvas to shipped diagram in three steps.

The diagrams-as-code workflow is the same whether you're drawing a Mermaid flowchart, a sequence diagram, a UML class diagram, or an entity-relationship diagram.

01

Write Mermaid syntax

Type Mermaid markdown in the left pane. Autocomplete, syntax highlighting, and inline error hints catch typos before they break the render.

02

See it render live

The right pane updates in under 30ms. Switch themes, change direction, swap renderers — every keystroke gives you immediate visual feedback.

03

Export or embed

Download SVG, PNG, or PDF. Copy a Mermaid markdown block. Paste a shareable URL into your spec, README, or Notion page. Your diagram is now diagrams as code.

09 / The case

Why teams move to diagrams as code.

For two decades, software teams documented architecture in Visio, OmniGraffle, draw.io, and Lucidchart. Those tools work — until you try to review a diagram in a pull request, diff two versions, or update fifty diagrams when a service is renamed. The drag-and-drop diagram editor is a dead end for systems that change.

Mermaid solves the version-control problem. A Mermaid flowchart is plain text. A Mermaid sequence diagram is plain text. A Mermaid class diagram, ER diagram, state diagram, Gantt chart, pie chart, user journey, mindmap, timeline, git graph, and C4 context diagram are all plain text. Plain text diffs cleanly. Plain text reviews cleanly. Plain text scales to a hundred contributors and a thousand diagrams without anyone losing track.

MERMAIDEDITOR is the online Mermaid editor built around that workflow. Write Mermaid markdown on the left, see your diagram render on the right, export SVG or PNG, copy a Mermaid code block straight into your README, and ship. No login. No tracking. No upsell to a "team plan" before you've drawn your second diagram.

If you've used the official Mermaid live editor, you'll feel at home. MERMAIDEDITOR adds the things that matter for daily work: a deep cheatsheet, 240+ vetted Mermaid templates, a library of Mermaid examples for every diagram type, three UI languages today (with five more on the roadmap), dark mode, keyboard-first navigation, offline support, and a focused triptych layout for power users.

10 / FAQ

Questions teams ask before they switch.

Is MERMAIDEDITOR a free Mermaid editor?+
Yes. The full Mermaid editor — every diagram type, every export format, every theme — is free with no login. Pro adds AI generation, real-time collaboration, and version history for $8/editor/month.
How is this different from the official Mermaid live editor?+
The official Mermaid live editor is a minimal sandbox from the Mermaid project. MERMAIDEDITOR is a full-surface workspace: 240+ Mermaid templates, a per-diagram-type reference, a printable Mermaid cheatsheet, a multilingual UI, an SEO-discoverable example gallery, and offline support. Same Mermaid syntax under the hood.
Which Mermaid diagram types are supported?+
All twelve: flowchart, sequence diagram, class diagram, state diagram, entity-relationship (ER) diagram, Gantt chart, pie chart, user journey, mindmap, timeline, git graph, and C4 context diagram.
Can I use Mermaid offline?+
Yes. The Mermaid editor renders entirely in your browser — no server round-trip. Install as a PWA for true offline use, or just keep the tab open on a flight.
Does it work with GitHub-flavored markdown?+
Yes. Every diagram exports as a Mermaid code block (` ```mermaid `) that GitHub renders natively in READMEs, issues, pull requests, wikis, and discussions. GitLab, Notion, Obsidian, and most static-site generators do the same.
Can I export Mermaid diagrams as SVG or PNG?+
Yes. Export SVG (sharpest), PNG (universal), or PDF (print). SVG is the recommended format for embedding in web docs and responsive layouts.
What is diagrams as code?+
Diagrams as code is the practice of writing diagrams as plain-text source files instead of clicking shapes in a GUI. The plain-text source lives in version control, diffs cleanly in pull requests, renders deterministically, and scales to teams of any size. Mermaid is the most widely adopted diagrams-as-code syntax.
Do you support Chinese, Japanese, and other languages?+
Yes. The MERMAIDEDITOR UI currently ships in English, 简体中文, and 日本語, with 한국어, Español, Français, Deutsch, and Português on the roadmap. Mermaid itself supports any Unicode label, so your diagrams can be in any language.
Is there an AI Mermaid generator?+
Yes — Pro plans include "prompt to Mermaid": describe what you want in natural language and get a working Mermaid diagram you can edit. Works for all twelve diagram types.
Can I self-host MERMAIDEDITOR?+
A self-hosted edition is on the roadmap. The current product is a static SPA under 90 KB gzipped, so a single Nginx container will serve it to a whole company.
11 / Glossary

Speak Mermaid like you wrote the spec.

A quick reference to the terms you'll meet across the documentation, the cheatsheet, and the per-diagram-type guides.

Mermaid
A JavaScript-based diagrams-as-code library that renders text into SVG diagrams. The reference implementation behind every Mermaid editor.
Mermaid syntax
The plain-text DSL used to describe each diagram type. Each type has its own grammar, but all share Mermaid markdown headers like `flowchart TD` or `sequenceDiagram`.
Diagrams as code
The practice of expressing diagrams as version-controlled text files rather than binary GUI documents.
Flowchart
A node-and-edge diagram for branching processes and decision logic. The most-used Mermaid diagram type.
Sequence diagram
A time-ordered diagram showing messages between actors. Used for API flows, OAuth handshakes, and protocol design.
ER diagram
Entity-relationship diagram. Shows database tables and the relationships between them using crow's-foot notation.
C4 model
A four-level architecture description: Context, Container, Component, Code. Mermaid supports the first three.
ELK renderer
An alternative auto-layout engine for Mermaid flowcharts. Often produces cleaner results on large graphs.
Gantt chart
A horizontal bar chart for project schedules with dates and dependencies. Mermaid renders Gantt from a date-format header and task list.
Mindmap
A radial tree diagram for brainstorming and outlining. Indentation defines hierarchy.
Ready when you are

Open the Mermaid editor. Draw a diagram. Ship the doc.

Free forever for individuals. Pro for teams that need collaboration, AI generation, and history.