Mermaid Editor

Describe diagrams as text — get a picture. Mermaid is a compact language for flowcharts, sequence diagrams, ER models and more. The editor renders the result as you type, with no reloads.

Example: Theme:
Code
Preview
Syntax error

        

Diagram types Mermaid supports

Mermaid supports more than ten diagram types. Each has its own compact syntax that reads almost like plain text. Below are the main types and what each is good for.

Flowchart — block diagrams

Algorithms, business processes, decision branches. Nodes can be rectangles, diamonds, circles, cylinders, rounded blocks. Multiple directions are supported (TD — top down, LR — left to right).

Sequence diagram — call timeline

Interactions between actors, services or objects over time. Great for documenting APIs, auth flows, message exchange between microservices.

Class diagram — classes

UML class diagram: fields, methods, visibility, relationships (inheritance, composition, association). Used for OOP design and architecture documentation.

State diagram — finite-state machine

States and transitions between them. Handy for describing UI flows, an order lifecycle, background-task states or data models with multiple statuses.

ER diagram — data model

Database entities and relationships between them (one-to-many, many-to-many, optionality). Fields are shown inside the entity — convenient for schema design.

Gantt — task plan

A schedule of work over time with dependencies and milestones. Suits project plans, release roadmaps and sprint planning.

Pie — pie chart

A simple display of proportions in percent. Works well as an illustration of how time, budget or audience is distributed.

Mindmap — mind map

A hierarchical breakdown of ideas around a central topic. Useful for brainstorms, splitting a feature into tasks, visualizing content structure.

Timeline — chronology

Events in chronological order. Fits product history, biographical notes, year-by-year roadmaps.

GitGraph — git history

Visualization of branches and commits in git. Useful for showing branching strategy (trunk-based, GitFlow) and illustrating complex merge scenarios in documentation.

Free online Mermaid editor with live preview. Describe diagrams using simple text syntax — the editor instantly renders SVG. No installation needed: just open the page in a browser.

All major diagram types are supported: flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline and git graph. The result downloads as SVG or PNG, and a share link with the encoded source lets you send the diagram in one click.

The editor runs entirely in the browser — your diagram source is never sent anywhere. Suits developers documenting APIs and architecture, managers working on roadmaps and process diagrams, analysts modeling data.