✨ Free, no signup required — open source spirit

Create beautiful diagrams
with code, not clicks

MermaidStudio is a full-featured, browser-based Mermaid.js editor. Write diagram code, get live previews, generate with AI, export and share — all from one page.

🚀 Open MermaidStudio See all features ↓
🔒 www.mermaid.skin
flowchart TD
  A([🚀 Start]) --> B{Decision?}
  B -->|Yes| C[Action A]
  B -->|No| D[Action B]
  C --> E([✅ Done])
  D --> E

sequenceDiagram
  User->>Server: Login
  Server-->>DB: Query
  DB-->>Server: OK
  Server-->>User: Token
🚀 Start
Decision?
Action A
Action B
✅ Done

Everything you need to diagram

MermaidStudio packs professional-grade tools into a single, fast-loading PHP file. No installation. No database. No subscription.

Instant Live Preview

Your diagram renders in real-time as you type. The preview panel updates automatically after a configurable delay (default 500ms), powered by Mermaid.js v11 running entirely in the browser.

Auto-render
✏️

CodeMirror Editor

A full-featured code editor with syntax highlighting (Dracula & Default themes), line numbers, undo/redo history, word wrap, configurable font size, and keyboard shortcuts — Ctrl+Enter to force render.

Professional IDE
🤖

AI Diagram Generator

Describe your diagram in plain English and let AI write the Mermaid code for you. Supports OpenAI (GPT-4o-mini), Perplexity AI, and Google Gemini. API keys are saved locally in your browser — never on the server.

OpenAI · Perplexity · Gemini
📐

12 Diagram Templates

Get started in one click with ready-made templates for Flowcharts, Sequence Diagrams, Class Diagrams, State Machines, Gantt Charts, ER Diagrams, Pie Charts, User Journeys, Git Graphs, Mindmaps, Timelines, and C4 Context diagrams.

One-click start
🎨

5 Mermaid Themes

Switch between Default, Dark, Forest, Base, and Neutral diagram themes instantly. The preview background is also customizable between dark, white, and a dot-grid canvas.

Customizable
🔍

Zoom & Pan Controls

Zoom in, zoom out, reset to 100%, or fit the diagram to the available screen space with a single click. Supports mouse-driven fine control directly on the SVG canvas.

Precise control
📤

PNG & SVG Export

Export your diagram as a high-quality PNG or vector SVG via the mermaid.ink service. Both formats are ready for presentations, documentation, and print.

mermaid.ink powered
🔗

Shareable URLs

Every diagram is encoded directly in the URL as Base64. Share a link and anyone can open and edit your exact diagram — no login, no cloud storage, no data retention.

Zero backend
🕐

Edit History

The last 30 versions of your work are automatically saved to your browser's localStorage. Browse history and restore any previous state with a single click.

Auto-saved
📋

Embed Code Generator

Get a one-liner <img> tag to embed your diagram in any website or email, pointing to a permanent mermaid.ink image URL.

Embeddable
🌙

Dark / Light App Theme

Switch the entire editor interface between a dark and light theme with a single toggle — independent of the diagram theme. Your preference is applied instantly.

Eye-friendly
📱

Responsive Layout

The split-panel editor works on desktop and mobile. The central divider is draggable to give more space to either the code editor or the preview. On small screens, panels stack vertically.

Mobile-ready

12 diagram types, one tool

From technical architecture to project planning, MermaidStudio supports every major Mermaid.js diagram type out of the box.

🔀
Flowchart
🔄
Sequence
🧱
Class Diagram
State Machine
📅
Gantt Chart
🗃️
ER Diagram
🥧
Pie Chart
🚶
User Journey
🌿
Git Graph
🧩
Mindmap
📊
Timeline
🔁
C4 Context

Up and running in 30 seconds

1

Open the editor

Visit www.mermaid.skin — no signup, no install, nothing to configure.

2

Write or generate

Type Mermaid syntax in the editor, pick a template, or use the AI generator to create a diagram from a text description.

3

Preview live

The diagram renders instantly as you type. Zoom, pan, and switch themes to get the perfect look.

4

Export or share

Download as PNG or SVG, copy a shareable URL, or grab the embed code for your website — all in one click.

Describe it. We'll diagram it.

Stop writing syntax manually. Just describe what you need in plain English and let the AI generate valid Mermaid.js code. Works with three major AI providers — bring your own API key.

🟢 OpenAI GPT-4o-mini
🔵 Perplexity AI
🔴 Google Gemini
Try AI Generator →
👤 YOU
A sequence diagram for an e-commerce checkout flow with payment gateway and order confirmation
🤖 AI RESPONSE
sequenceDiagram participant U as User participant S as Shop participant P as Payment participant DB as Database U->>S: Add to cart U->>S: Checkout S->>P: Process payment P-->>S: Confirmed S->>DB: Save order DB-->>S: Order #1042 S-->>U: ✅ Order confirmed!

Take your diagram anywhere

Multiple ways to get your finished diagram out of the editor and into the world.

🖼️

PNG Export

High-resolution raster image, ready for slides, reports, and Wikis.

📐

SVG Export

Infinite-scale vector graphic. Perfect for web use, print, and further editing in Figma or Illustrator.

🔗

Share URL

The entire diagram is Base64-encoded in the URL. Share it — no server storage, no expiry.

📋

HTML Embed

One-line <img> tag that renders your diagram inline on any webpage.

🖨️

Copy Code

Copy the raw Mermaid syntax to paste in GitHub READMEs, Notion, Confluence, or VS Code.

How does MermaidStudio compare?

We benchmarked the key features across the leading online Mermaid editors.

Feature MermaidStudio
mermaid.skin
mermaid.live mermaideditor.com mermaid.ai simplemermaid.com
Live preview✔ Yes✔ Yes✔ Yes✔ Yes✔ Yes
CodeMirror editor✔ Yes✔ Yes✔ Yes✘ No~ Basic
AI generation✔ Yes (3 providers)✘ No✘ No✔ Yes✘ No
Templates library✔ 12 templates~ Few~ Few✘ No~ Few
PNG export✔ Yes✔ Yes✔ Yes✔ Yes~ Limited
SVG export✔ Yes✔ Yes✔ Yes✔ Yes✘ No
Shareable URL✔ Yes (Base64)✔ Yes~ Limited✘ No✘ No
HTML embed code✔ Yes✘ No✘ No✘ No✘ No
Edit history✔ 30 snapshots✘ No✘ No✘ No✘ No
Multiple Mermaid themes✔ 5 themes✔ Yes~ Few✔ Yes✘ No
Dark / light UI theme✔ Yes✔ Yes~ Partial✔ Yes✘ No
No signup required✔ Yes✔ Yes✔ Yes~ Freemium✔ Yes
Single-file deployment✔ One PHP file✘ No✘ No✘ No✘ No
Self-hostable✔ Yes✔ Yes (open source)✘ No✘ No✘ No

Start diagramming for free,
right now

No signup. No installation. No limits. Just open the editor and start creating.

Open MermaidStudio →