Free Online Tool

Mermaid Viewer: edit and preview diagrams online

Paste Mermaid code on the left and the diagram renders on the right — free, in your browser, no signup. Flowchart, sequence, state, Gantt, pie, class and the rest of the Mermaid syntax, exported as PNG or SVG.

Your files never leave your browser. All processing happens locally.
Examples
Mermaid Code
Preview
Type or select an example to preview

Mermaid diagrams inside .md files on your Mac? MacMD Viewer renders them offline, in the app and in Finder Quick Look.

What is a Mermaid diagram viewer?

A Mermaid diagram viewer renders Mermaid's text-based diagram syntax into visual charts in real time. Instead of drawing boxes and arrows by hand, you describe a flowchart, sequence, state, Gantt, pie, or class diagram in plain-text Mermaid syntax and see it rendered instantly.

Type or paste Mermaid code on the left and the diagram appears on the right as you edit. When it looks right, export it as a high-resolution PNG, a scalable SVG, or copy the SVG markup straight into Figma, a README, or a slide deck. All rendering runs locally in your browser with Mermaid.js — your diagram code is never sent to a server.

FAQ

Common questions

Is this tool free?

Yes. The Mermaid viewer is completely free with unlimited diagrams, no account, no watermarks, and no hidden fees.

Is my data private?

All rendering happens in your browser using Mermaid.js. Your diagram code is never sent to any server.

What diagram types are supported?

Flowcharts, sequence diagrams, state diagrams, Gantt charts, pie charts, and class diagrams. All standard Mermaid syntax is supported.

Can I export my diagrams?

Yes. You can download diagrams as PNG (raster) or SVG (vector), or copy the SVG markup to your clipboard for use in other tools.

How does this compare to mermaid.live?

Both use the same Mermaid.js library for rendering. This tool is lighter, loads faster, and includes one-click PNG/SVG export. For rendering Mermaid diagrams inside Markdown files on Mac, try MacMD Viewer.

5 Best Mermaid Viewers in 2026 — Desktop & Online →
More free tools

Related Markdown utilities

Browse all free Markdown tools →

Render Mermaid in your Markdown files

MacMD Viewer renders Mermaid diagrams inline in .md files. No plugins, no config. Just open a file and see your diagrams.

Browser tools are fine for a one-off. On Mac, TextEdit still shows raw asterisks — MacMD Viewer renders your .md files, and QuickLook lets you press Space in Finder.

Preview on Mac (QuickLook)