Skip to content
flowchart.tools

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…

Diagram

Loading Mermaid…

Download

Runs in your browser. Nothing you type or drop here is uploaded.

How to use it

  1. Type or paste Mermaid code. Pick an example to see the syntax for a diagram type.

  2. Watch the preview update. Errors are shown under the editor with the parser's message.

  3. 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

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.

Related tools