Mermaid Diagram Visualizer

Write Mermaid code and see flowcharts, sequence and Gantt diagrams update live, then export SVG, PNG or JPEG. A free, private Mermaid editor.

About Mermaid Diagram Visualizer

This Mermaid diagram editor turns plain-text diagram code into a live preview. Write or paste Mermaid syntax and the diagram redraws a moment after you stop typing, so you can sketch a flowchart, a sequence of API calls or a project timeline as quickly as you can describe it.

Diagrams are rendered in your browser with the Mermaid library in its strict security mode, and your code is never uploaded. The editor keeps your latest diagram in this browser's local storage, so it is waiting for you when you come back, and the finished diagram exports as SVG, PNG or JPEG.

How to use

  1. Start from a template (flowchart, sequence, class, state, ER, pie or Gantt) or paste your own Mermaid code into the editor.
  2. Edit the code and watch the preview update; if the syntax is wrong, the error message tells you what Mermaid couldn't parse.
  3. Pick a theme (default, dark, neutral, forest or base) and zoom in, zoom out or fit the diagram to the preview.
  4. Download the diagram as SVG, PNG or JPEG.

Features

Live preview
The diagram re-renders shortly after each pause in typing, so you see the effect of every change without pressing a button.
Seven starter templates
Flowchart, sequence, class, state, entity-relationship, pie and Gantt templates give you working syntax to adapt instead of a blank page.
Syntax-highlighting editor
A code editor with Mermaid syntax highlighting makes keywords, arrows and labels easy to tell apart in longer diagrams.
Clear error messages
When the code can't be parsed, Mermaid's error message appears below the editor, so you can fix a missing arrow or bracket quickly.
Five themes
Switch between the default, dark, neutral, forest and base themes to match a document, slide deck or dark-mode wiki.
Export to SVG, PNG and JPEG
SVG stays crisp at any size; PNG keeps a transparent background and JPEG a white one, both rendered at high resolution for sharp results.
Zoom and fit
Zoom in on the details of a large diagram, zoom out to see the whole thing, or fit it to the preview area in one click.

Frequently asked questions

What is Mermaid?

Mermaid is a text-based diagramming language. You describe nodes and connections in a few lines of code, such as A --> B, and the diagram is drawn for you; GitHub, GitLab and many documentation tools render it too.

Which diagram types can I make?

The templates cover flowcharts, sequence, class, state, entity-relationship, pie and Gantt diagrams. The preview uses the full Mermaid library, so other diagram types written in valid Mermaid syntax render as well.

Is my diagram code private?

Yes. Rendering happens in your browser, and the code isn't sent to PBX Tools or any server. The only copy kept is in this browser's local storage, which you can clear by deleting the code.

Should I export SVG, PNG or JPEG?

Choose SVG for documentation, websites and further editing, because it scales without blurring. Choose PNG for a transparent background in slides, or JPEG when a tool needs a plain image with a white background.

Why isn't my diagram showing?

The code most likely has a syntax error, such as an unclosed bracket, a missing arrow or an unknown keyword. Read the error message below the editor, or start from the matching template and change it step by step.