Skip to content
whiteboard.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.

PreviewRendering…

Loading the renderer…

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.

Want the sketchy look instead?

Mermaid's output is clean and geometric. If you would rather have a hand-drawn version that you can rearrange, use the Mermaid to Excalidraw converter with the same code.

Questions

Is this the same as mermaid.live?
It renders with the same open-source Mermaid library, so diagrams look the same. This editor is part of whiteboard.tools and adds a path into a hand-drawn whiteboard. 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.

Further reading

Related tools