guide · 2026

Mermaid to flowchart: how to make a Mermaid flowchart editable

Updated: 2026-05-03 · Tools, tradeoffs, and which Mermaid types convert cleanly.

If you have a Mermaid flowchart - or an AI flowchart that came back as Mermaid syntax from a docs file, an AI chatbot, or a Notion Mermaid block - and you need a real, editable diagram rather than a static image, you have four practical options for "Mermaid to flowchart" conversion. The Mermaid Live Editor (export only). draw.io's built-in Mermaid import. Excalidraw's mermaid-to-excalidraw. And, if your Mermaid lives in Notion, Flowblock - which converts the block in place. This guide walks through each, with honest tradeoffs.

What "editable" actually means

Mermaid is a markdown-like syntax. When you "render" Mermaid, you get an SVG - a static image. You can't drag a node, change the color of a single arrow, or add a hand-drawn annotation without going back to the source code and re-rendering.

That's fine for documentation that lives next to the source code and is rebuilt on commit. It is not fine if you want to:

For all of those, you need the Mermaid output in a real diagramming tool - boxes, arrows, and text you can manipulate directly. That's what "convert to editable" means in this guide.

Method 1 - Mermaid Live Editor (export only)

mermaid.live · official browser playground

Paste your Mermaid code into mermaid.live, click Actions → Download SVG / PNG. You get an image file you can drop anywhere images go.

Pros
Zero install. Free. Supports every Mermaid diagram type, including the long-tail ones (timeline, sankey, requirement).
Cons
The export is the image. To "edit" it, you go back to the Mermaid source, rewrite it, re-render, re-export. Moving a single node 50 pixels is not possible without rewriting the syntax.
Use it when
You need a one-off image for a slide deck or PR description and the diagram won't change again.

Method 2 - draw.io (diagrams.net)

Built-in Mermaid importer · full editor

draw.io (also called diagrams.net) has a built-in Mermaid import. Open the app, then Arrange → Insert → Advanced → Mermaid. Paste, click Insert, and you get a real draw.io diagram you can edit shape by shape.

Pros
Full diagramming editor. Free. Runs in browser or as desktop app. Native support for flowchart, sequence, class, ER, state, gantt, and mindmap. Falls back to a rendered image cell for unsupported types - not editable, but not lost.
Cons
Some fidelity loss on complex diagrams (label wrapping, custom styling). The diagram lives in draw.io's file system or a Google Drive / OneDrive link, not where the rest of your work happens.
Use it when
You need rigorous technical diagrams - network architectures, schemas, swimlanes - and benefit from draw.io's stencil libraries.

Method 3 - Excalidraw

mermaid-to-excalidraw · hand-drawn aesthetic

Excalidraw ships a Mermaid converter built on its mermaid-to-excalidraw library. Open Excalidraw, click the AI/Mermaid icon in the top toolbar, paste, and the diagram appears as fully-editable Excalidraw shapes.

Pros
Clean output for flowcharts and sequence diagrams. Excalidraw's hand-drawn aesthetic is excellent for whiteboarding, brainstorms, and "humanizing" otherwise-dry technical content.
Cons
As of 2026, only flowchart and sequence diagrams convert cleanly. Class is partial. ER, state, gantt, mindmap, pie, journey, sankey - these either render incorrectly or throw outright.
Use it when
You're dealing with a flowchart or sequence diagram and you'd rather it look like a sketch than a polished engineering artifact.

Method 4 - Flowblock (Notion-integrated)

One-click conversion that stays inside Notion

If your Mermaid lives in a Notion code block - common with Notion AI, where every prompted-for AI flowchart comes back as Mermaid syntax - Flowblock converts it in place. Hover the Mermaid block, click the Import button Flowblock adds to the corner, and the modal opens with the diagram already converted to Excalidraw or draw.io. Save, and the Notion block becomes a real, editable image block.

Pros
Zero context switch. The converted diagram lives as a native Notion image block on the same page, so it stays linked to whatever doc context it belongs to. Supports both Excalidraw and draw.io as the conversion target. Editable forever - re-open from Notion any time.
Cons
Notion-only. If your Mermaid lives in a markdown file or a GitHub issue, draw.io or Excalidraw is the better fit.
Use it when
You're already in Notion. Especially for Notion AI workflows, where Mermaid is the default output for "draw me a flowchart" prompts.

Side-by-side comparison

Method Editable after? Where the output lives Best for Cost
Mermaid Live No (image only) Wherever you paste it One-off exports Free
draw.io Yes draw.io / Google Drive / OneDrive Rigorous technical diagrams Free
Excalidraw Yes Excalidraw app or .excalidraw file Flowcharts, sketches, whiteboarding Free
Flowblock Yes Native Notion image block Notion / Notion AI workflows Free for 5 drawings/month
Pro from $3.75/month for unlimited

Which Mermaid diagram types convert well

Mermaid has 14+ diagram types and the spec keeps adding more. Converter coverage varies a lot. Here's the lay of the land as of early 2026:

Mermaid type draw.io Excalidraw Notes
Flowchart✅ Clean✅ CleanExcellent in both. The default case.
Sequence✅ Clean✅ CleanExcellent in both.
Class✅ Clean⚠️ Partialdraw.io preserves methods/fields cleanly; Excalidraw drops some structure.
ER✅ Clean❌ Not supporteddraw.io is the only honest option.
State✅ Clean❌ Not supporteddraw.io only.
Gantt✅ Clean❌ Not supporteddraw.io only.
Mindmap✅ Clean❌ Not supporteddraw.io only.
Pie🖼️ Image fallback❌ Not supporteddraw.io renders it but not as editable shapes.
User journey🖼️ Image fallback❌ Not supportedSame.
Git graph🖼️ Image fallback❌ Not supportedSame.
Quadrant🖼️ Image fallback❌ Not supportedSame.
Sankey🖼️ Image fallback❌ Not supportedSame.
Timeline🖼️ Image fallback❌ Not supportedSame.
Requirement🖼️ Image fallback❌ Not supportedSame.

Read: for flowcharts and sequence diagrams, every editor does the job. For ER, state, class, gantt, mindmap - draw.io is the only one that gives you an editable result. For specialty types (pie, journey, git graph, sankey, quadrant), every tool falls back to an image. If you need those types editable, Mermaid's source-text format is currently the only practical home.

Flowblock note: Flowblock supports both draw.io and Excalidraw as conversion targets, and routes by Mermaid type - flowcharts default to Excalidraw for the cleaner aesthetic; ER/class/state route through draw.io for full fidelity. You can override per diagram from the popup.

FAQ

Can I convert Mermaid to draw.io for free?

Yes. draw.io (diagrams.net) is free, browser-based, and has Mermaid import built in. Go to Arrange → Insert → Advanced → Mermaid.

Does Notion have a built-in way to make Mermaid editable?

No. Notion renders Mermaid blocks as static images - there's no native button to convert the rendered output into editable shapes. Flowblock is the integration that bridges that gap.

What's the best free option overall?

Depends on the diagram type. For flowcharts and sequence diagrams: Excalidraw (cleanest hand-drawn output) or draw.io (most precise). For ER, class, state, gantt: draw.io. For something quick and one-off: Mermaid Live + image export.

Why doesn't every tool handle every Mermaid diagram type?

Mermaid evolves quickly and most converters target the high-frequency 80% - flowchart, sequence, class, ER, state. The long tail (timeline, requirement, sankey, quadrant) has low real-world usage in docs, so it's rarely a priority. AI tools also overwhelmingly emit flowchart and sequence diagrams when asked for an AI flowchart, which means coverage on the common types matters more than coverage on the rare ones.

I want to convert Mermaid in a Markdown file - what's the workflow?

Open draw.io, paste the Mermaid via Arrange → Insert → Advanced → Mermaid, edit, then export as SVG or PNG and embed in your Markdown.

Will the converted diagram stay editable later, or does it become an image?

In draw.io, Excalidraw, and Flowblock, the diagram stays editable - the source structure is preserved (as draw.io XML, an .excalidraw scene, or - in Flowblock's case - as the source XML embedded inside the saved SVG so re-opening from Notion brings the whole scene back). Mermaid Live's output is the only one that's just an image.

Mermaid Notion conversion in one click. If your Mermaid lives in a Notion block, Flowblock turns it into an editable diagram on the page - no copy-paste, no second tool.

Add Flowblock to Chrome