Mermaid live editor: diagrams from text
Type Mermaid syntax in this Mermaid live editor and the diagram redraws as you type, with themes, examples and SVG or PNG download.
What is a Mermaid live editor?
Mermaid is a small text language for diagrams. You write A --> B and get two boxes joined by an arrow. A Mermaid live editor puts the text on one side and the drawing on the other, and redraws on every change, so you see mistakes at once instead of after a commit.
This mermaid editor covers the diagram types people use most: flowcharts, sequence diagrams, class and state diagrams, entity relationship diagrams, Gantt charts, pie charts, mind maps, timelines and git graphs. Pick an example to start, change the text, and choose a default, neutral, dark or forest theme to match where the diagram will appear. When the syntax is wrong, the error message from Mermaid is shown above the drawing.
When the mermaid diagram is ready, download it as SVG for sharp print and docs, or PNG for slides and chat. You can also copy it as a fenced mermaid code block and paste it into a README, a wiki or a note; GitHub, GitLab and Obsidian draw it in place. Everything runs in your browser and nothing is uploaded.
Why use this Mermaid live editor tool
Live drawing
The diagram redraws as you type, with clear error messages when the syntax is wrong.
Examples to start from
Flowchart, sequence, class, state, Gantt, pie, mind map and timeline examples.
Themes
Default, neutral, dark and forest themes.
Export
Download SVG for print and docs, or PNG for slides and chat.
How to make a Mermaid diagram
- Pick an example to start from, or write your own.
- Edit the text and watch the diagram update.
- Choose a theme.
- Press Download SVG or PNG.
Common uses for a Mermaid live editor
- Sketch a flowchart of a sign-up or checkout process for a team discussion, and change it live while people talk.
- Draw a sequence diagram of an API call between a browser, a server and a database before writing the code, so the team agrees on the order of steps.
- Plan a project as a Gantt chart that lives in the same repository as the work, so the plan is updated in the same pull request.
- Make a pie or other Mermaid chart for a monthly report, then download it as PNG for slides or SVG for print.
- Fix a diagram that fails to render on GitHub or GitLab by pasting it here and reading the exact error message.
- Lay out a topic as a mind map with the Mermaid mindmap type, or try Markmap to turn a plain markdown outline into an interactive one.
Frequently asked questions
What is Mermaid?
Mermaid is a text language for diagrams. GitHub, GitLab, Notion and Obsidian render it inside markdown code blocks marked mermaid.
Can I use the diagram in markdown?
Yes. Put the text in a code block marked mermaid; the Markdown viewer draws it too.
Which diagram types are supported?
Flowcharts, sequence, class, state, entity relationship, Gantt, pie, mind map, timeline, git graph and more.
Is this Mermaid live editor free?
Yes, it is free, needs no sign-up, and works on desktop and mobile browsers. Your diagram text stays in your browser and is not uploaded, which matters when a diagram shows internal systems.
How do I put the diagram in a README?
Press Copy as markdown to get a fenced mermaid block and paste it into the file. Preview the whole document in the markdown editor, which draws Mermaid too.
Why is my diagram not drawing?
Usually a syntax error, such as a missing arrow, an unclosed bracket or a label with special characters that needs quotes. The message above the canvas names the problem; fix it and the drawing comes back. Check that the first line names the diagram type, such as flowchart LR or sequenceDiagram.
Open editor