Mermaid live editor: render to SVG and PNG
A fast Mermaid editor with a live preview. Use it when you want Mermaid's own rendering as an SVG or PNG for docs, slides or a README.
Rendering…
Loading Mermaid…
Runs in your browser. Nothing you type or drop here is uploaded.
How to use it
Type or paste Mermaid code. Pick an example to see the syntax for a diagram type.
Watch the preview update. Errors are shown under the editor with the parser's message.
Download SVG for docs and the web, or PNG at 2x for slides and chat.
Every Mermaid diagram type
This editor uses the official Mermaid library, so anything Mermaid supports renders here: flowcharts, sequence, class, state, ER, Gantt, pie, journey, git graphs, mind maps, timelines and more.
SVG or PNG
SVG stays sharp at any size and is the right choice for documentation sites and anything you might print. PNG is safer for tools that do not accept SVG, such as some slide and chat apps. The PNG export is rendered at twice the display size so it looks crisp on high-density screens.
From Mermaid to an editable diagram
Mermaid decides the layout, which is the point until one box is in the wrong place. For flowcharts, Open in editor converts the nodes and arrows into shapes on the canvas, where you can move them, restyle them and export to draw.io. Other diagram types are rendered as Mermaid draws them.
Guides that use this tool
- Flowcharts
How to draw decisions in a flowchart without the spaghetti
Practical rules for the flowchart decision diamond: how to phrase the question, label branches, route loops and keep the happy path straight, with a before-and-after example. - Data modeling
Crow's foot notation explained: reading cardinality in ER diagrams
How to read and draw crow's foot notation: the four line endings, which end to read, how each maps to foreign keys, NOT NULL and UNIQUE in SQL, and the mistakes that model the wrong rule. - Diagrams as code
Mermaid flowchart syntax: a practical cheat sheet
Mermaid flowchart syntax on one page: directions, node shapes, link types, labels, subgraphs, styling and the gotchas that break a diagram, with copy-ready examples. - UML
UML class diagram relationships: association, aggregation, composition and the rest
The six UML class diagram relationships, the line and arrowhead for each, what they mean in code, how to read multiplicity, and when aggregation is worth drawing at all.
Questions
- Is this the same as mermaid.live?
- It renders with the same open-source Mermaid library, so diagrams look the same. This editor adds a way to turn a Mermaid flowchart into shapes you can rearrange by hand. It does not have mermaid.live's shareable links or history.
- Do you store my diagrams?
- No. Rendering happens in your browser and nothing is sent to a server. The editor keeps your last text in this browser so it is still there after a reload.
- Why is the PNG background white?
- PNG exports use a white background so they stay readable when pasted into dark documents. Use SVG if you need transparency.