Mermaid Live Editor
A free-form Mermaid editor: type diagram-as-code and get a live rendered diagram you can export.
Processed locally in your browser· Your data stays in your browser.
What is Mermaid Live Editor?
Mermaid turns short text definitions into diagrams: flowcharts, sequence diagrams, class and state diagrams, entity-relationship diagrams, Gantt charts, mind maps, pie charts, user journeys, timelines and Git graphs. Because the source is plain text, diagrams can live in version control next to your code and docs.
This editor renders your code with Mermaid in strict security mode with HTML labels disabled, so the SVG contains only plain shapes and text. If the syntax is wrong you get the parser message with the line and what was expected, instead of a blank screen. Pick a theme and export the result.
How does it work?
- Type or paste Mermaid code; the first line must name the diagram type (flowchart, sequenceDiagram, gantt…).
- Choose a theme (default, neutral, forest, dark or base) to match your document.
- Read the parser message if the diagram does not render, fix the reported line and try again.
- Export the diagram as SVG or PNG for slides, wikis and documentation.
Common use cases
- Drafting architecture and process diagrams for a README or design document.
- Debugging a Mermaid block that does not render on GitHub or in your wiki.
- Creating diagrams for slides without a drawing tool.
- Learning Mermaid syntax by editing a working example.
Examples
Try this input in the tool above:
flowchart TD
A([Start]) --> B[Read configuration]
B --> C{Configuration valid?}
C -- Yes --> D[Start server]
C -- No --> E[Show error message]
E --> B
D --> F([Ready])Privacy
Mermaid Live Editor runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
Rendering uses the Mermaid version bundled with this site, so very new diagram types or syntax may differ from your platform. Interactive features such as click links are disabled for safety.
Frequently asked questions
Is my diagram code sent to a server?
No. Mermaid runs locally in your browser and the code never leaves your device.
Why do I get a syntax error?
The message quotes the line where parsing stopped and what token was expected. Common causes: a missing diagram keyword on the first line, unquoted labels containing brackets or parentheses, or a stray character in an arrow.
Can I use the diagram outside this site?
Yes. Export SVG for scalable graphics or PNG for slides, or copy the Mermaid code into any platform that supports it, such as GitHub, GitLab or Notion.
Related tools
Flowchart Generator
Describe a process one step chain per line and get a flowchart plus the Mermaid code behind it.
Markdown & Diagrams
Sequence Diagram Generator
Write one message per line and see who talks to whom, in order, as a sequence diagram.
Markdown & Diagrams
Gantt Chart Generator
List tasks with a start and a duration and get a project timeline with sections and dependencies.
Markdown & Diagrams
Class Diagram Generator
Write classDiagram code with classes, members and relations and see the UML diagram immediately.
Markdown & Diagrams
State Diagram Generator
List transitions between states and get a state machine diagram with events on the arrows.
Markdown & Diagrams
ER Diagram Generator
Describe your tables, keys and relationships as Mermaid erDiagram code and see the ER diagram instantly.
Markdown & Diagrams
Mind Map Generator
Type your ideas as an indented list and see them as a radial mind map.
Markdown & Diagrams
Markdown Editor & Live Preview
Type or paste Markdown on one side and read the rendered result on the other, with instant document statistics.
Markdown & Diagrams