Skip to content
MermaidViewer

Free forever · No sign-up · AI-powered

Free Mermaid viewer and live editor

Mermaid viewer for people who would rather type a diagram than drag boxes around. Paste code, watch it render, and export when you are done. PNG is on every plan. SVG and PDF are on Pro.

Supports all 22+ Mermaid diagram types · Mermaid v12

Open in editor
Flowchart example diagram

Everything you need to work with Mermaid

A focused, fast editor that does the basics brilliantly — and adds the things other Mermaid viewers are missing.

Instant live preview

Diagrams re-render as you type, with clear error messages that point to the exact line.

AI generate, edit & fix

Describe a diagram in plain English, ask for changes, or repair broken syntax in one click.

PNG, JPG, SVG & PDF export

Every plan exports PNG. Free is 1× with a watermark. Starter adds watermark-free PNG up to 4×. Pro adds JPG, SVG and PDF, and PNG or JPG up to 8×.

Every Mermaid diagram type

Flowcharts, sequence, class, ER, Gantt, mindmaps, timelines, C4, Sankey, architecture and more.

Share links & embeds

Share an editable link without an account, or publish a read-only page and iframe embed.

Built for keyboards

Autocomplete, syntax highlighting, find & replace, and shortcuts for save, export and AI.

Works on any device

A responsive editor with pan, pinch-zoom and full-screen preview on phones and tablets.

Private by default

Diagrams render in your browser and autosave locally. Nothing is stored unless you save it.

AI diagram assistant

From idea to diagram in seconds

Type “sequence diagram for OAuth login with refresh tokens” and get valid Mermaid code streamed straight into the editor. Ask for edits like “add a cache layer” or “make error paths red”, get a plain-English explanation of any diagram, and let AI fix syntax errors for you.

  • Generate any diagram type from a description
  • Edit existing diagrams with natural language
  • One-click fixes for parser errors
Prompt: Checkout flow with payment failure and retry, max 3 attempts
flowchart TD
    A[Cart] --> B[Checkout]
    B --> C{Payment OK?}
    C -- Yes --> D[Order confirmed]
    C -- No --> E{Attempts < 3?}
    E -- Yes --> B
    E -- No --> F[Show support options]

Every Mermaid diagram type, with examples

Syntax references, live examples and tips for each diagram type.

All diagram types

Flowchart

Map processes, decisions and workflows with nodes, shapes and arrows.

Sequence Diagram

Show how services, users and systems exchange messages over time.

Class Diagram

Model object-oriented code: classes, members and relationships (UML).

State Diagram

Describe state machines: states, transitions, choices and nested states.

Entity Relationship Diagram

Design database schemas with entities, keys and crow's-foot relationships.

Gantt Chart

Plan projects with tasks, durations, dependencies and milestones.

Pie Chart

Show proportions of a whole with a simple labelled pie chart.

Mindmap

Brainstorm and organise ideas with an indentation-based mind map.

Timeline

Show events in chronological order, grouped by period or section.

Git Graph

Visualise Git branches, commits, merges and release tags.

User Journey

Map user experiences step by step with satisfaction scores.

Quadrant Chart

Plot items on a 2×2 matrix for prioritisation and positioning.

Sankey Diagram

Show how quantities flow between categories with weighted links.

XY Chart (Bar & Line)

Bar and line charts with categorical or numeric axes.

Requirement Diagram

Trace requirements to the elements that satisfy and verify them (SysML).

C4 Diagram

Document software architecture using the C4 model (context, containers…).

Block Diagram

Lay out system components in a grid you control, with spans and nesting.

Packet Diagram

Visualise network packets and binary formats bit by bit.

Kanban Board

Show work items as cards in columns such as To do, Doing and Done.

Architecture Diagram

beta

Draw cloud and infrastructure diagrams with services, groups and icons.

Radar Chart

beta

Compare items across several dimensions on a spider chart.

Treemap

beta

Show hierarchical data as nested rectangles sized by value.

How to view a Mermaid diagram online

  1. 1

    Write or paste Mermaid code

    Open the editor and type Mermaid syntax, paste code from a README, or start from a template.

  2. 2

    Preview and refine

    Watch the diagram update live. Use pan, zoom and themes, or ask the AI assistant to edit it for you.

  3. 3

    Export or share

    Download a PNG: 1× with a watermark on Free, up to 4× on Starter, up to 8× on Pro. JPG, SVG and PDF are on Pro. You can also copy Markdown or share a link.

How MermaidViewer compares

The speed and simplicity of the official live editor, with the AI and sharing features of paid tools — free to start.

FeatureMermaidViewerMermaid Live EditorMermaid Chart
Free without sign-upYesYesLimited
AI generate / edit / fix5 uses total on Free, 500/mo on Starter, unlimited on ProNoPaid plans
PNG, JPG, SVG & PDF exportFree 1× PNG; Starter 4×; Pro 8× plus JPG, SVG, PDFPNG & SVGYes
Autocomplete & error line highlightingYesPartialYes
Saved diagrams, folders & versionsYesNo (browser only)Yes
Public share links & embedsYesLink onlyYes
Paid plansStarter $6.99/mo · Pro $11.99/mo—Paid plans per seat

Read the full comparisons: Mermaid Live Editor alternative · Mermaid Chart alternative · Best Mermaid editors

Start from a template

30+ ready-to-edit Mermaid templates for software, product and business.

Browse templates
< 1s
to first diagram
22+
diagram types supported
0
sign-ups required to start

Simple pricing

Start free. Upgrade when you need more saved diagrams, more AI and watermark-free exports. Cancel any time.

Free

Try diagrams-as-code with no card required.

$0forever

No credit card required

  • 3 saved diagrams
  • 5 AI uses total
  • Low-res PNG export with watermark
  • Basic sharing (1 public link)
  • No version history
Most Popular

Starter

For people who diagram every week.

$6.99/month

or $69.90/year (save ~17%)

  • 30 saved diagrams
  • 500 AI conversations per month
  • High-res PNG export, no watermark
  • Unlimited sharing
  • 30-version history

Pro

Everything, unlimited, for power users.

$11.99/month

or $119.90/year (save ~17%)

  • Unlimited diagrams
  • Unlimited AI
  • All formats: PNG, JPG, PDF & SVG
  • Advanced sharing & view statistics
  • 100-version history
  • Personal notes & annotations
  • Priority support

Compare every limit on the pricing page.

From the blog

Longer answers than a syntax page: what a diagram is, how flow charts actually get used, and how to read the docs without getting lost.

All posts

Frequently asked questions

What is MermaidViewer?

MermaidViewer is a free online Mermaid diagram viewer and editor. Write Mermaid code and see the diagram instantly, generate diagrams with AI, download a PNG, and share links or embeds. JPG, SVG and PDF downloads are included with Pro.

Is MermaidViewer free?

Yes. The editor, live preview, templates and one public share link work without an account. A free account saves 3 diagrams and includes 5 AI uses in total (a lifetime allowance, not a daily refill). Free PNG export is 1× with a small watermark. Starter ($6.99/month or $69.90/year) adds 30 diagrams, 500 AI conversations a month and watermark-free PNG up to 4×. Pro ($11.99/month or $119.90/year) makes diagrams and AI unlimited and adds JPG, SVG and PDF, plus PNG or JPG up to 8×.

Do I need to sign up?

No. Open the editor and start typing. Your work is autosaved in your browser. Sign up only if you want to save diagrams to the cloud, organise them in folders and access them from any device.

Which Mermaid diagram types are supported?

All of them: flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline, git graph, user journey, quadrant, sankey, XY chart, requirement, C4, block, packet, kanban, architecture, radar and treemap, plus any new types in the latest Mermaid release.

How does the AI diagram generator work?

Describe the diagram you want in plain language. MermaidViewer sends the request to an AI model on our server, which writes Mermaid code that streams into the editor and renders live. You can also ask the AI to edit, fix or explain an existing diagram. Free includes 5 uses in total.

Is my diagram data private?

Diagrams you create without an account stay in your browser's local storage. Saved diagrams are private to your account unless you explicitly make them public. AI requests send the diagram text to our AI provider only when you use an AI feature.

Can I export Mermaid diagrams as images?

Yes. Every plan can download PNG and copy the image to the clipboard. Free PNG is 1× with a small watermark. Starter unlocks 2×, 3× and 4× with no watermark. Pro unlocks 6× and 8× (up to 8×), plus JPG, a vector SVG and a vector PDF. The converter pages offer 1×–4×; 6× and 8× are in the full editor.

Can I embed diagrams in my website or docs?

Yes. Save a diagram, make it public and copy the embed code. The iframe always shows the latest saved version, so updates appear everywhere automatically. Free and Starter embeds include a small badge; Pro embeds do not.

More answers in the FAQ.

Turn your next idea into a diagram

No account and no install. Open the editor and start typing. Free PNG downloads include a small watermark.

Open the Mermaid editor