Mermaid Online

AI · image → Mermaid

Image to Mermaid

Turn a screenshot, whiteboard photo, or hand-drawn sketch into clean, editable Mermaid code. Upload or paste an image — or just describe your diagram in the same box — then refine and export PNG, SVG, or PDF, no watermark.

AI
1 credit

Drop or paste a screenshot, whiteboard photo, or hand-drawn sketch above — the AI reads it into editable Mermaid. It renders below to tweak and export.

Paste or edit Mermaid code
Replace the sample below, or load another example.
Load example
Preparing the local renderer without uploading your diagram.Preparing editor…
Live previewSample preview · Clean Docs

Write

Preview

Export

Docs Asset

Preparing local editor…
Render & export

Export controls activate after your diagram renders locally.

Flowchart
Mode
Default renderNative MermaidOptimized exportStyled download
Export style
Clean DocsGitHub READMETransparent DocsWarm Editorial✦ ProWhiteboard Sketch✦ ProAurora Noir✦ ProBlueprint✦ ProChampagne✦ ProEmerald Suite✦ Pro
Scale
1x2x4x
Or exact width, e.g. 1200px wide
Output: White · comfortable padding
Size: calculated after render
Filename: mermaid-flowchart-white-2x.png

How it works

1 · Add your image

Upload, drag-and-drop, or paste (Ctrl+V) a screenshot, photo, or sketch of a diagram.

2 · AI reads it

The vision AI identifies the nodes, connections, and labels and writes editable Mermaid.

3 · Refine & export

Tweak the code or refine with AI, pick a theme, and export a crisp PNG, SVG, or PDF.

Get more conversions

Everyone gets 10 free credits after signing in (each image conversion uses 3). For more, subscribe to Pro for a monthly AI allowance plus unlimited premium theme exports, or buy a one-time credit pack.

Pro
$5.99/mo
  • ✦ Unlimited premium theme exports
  • 200 AI generations every month
  • Image-to-Mermaid, AI edit & auto-fix
  • Cancel anytime
Loading…

FAQ

Questions about image to Mermaid

How do I convert an image to Mermaid?

Upload, drop, or paste a diagram image — a screenshot, an exported flowchart, a whiteboard photo, or a hand-drawn sketch. The AI reads the nodes, connections, and labels and returns editable Mermaid code that renders instantly below, where you can refine it and export a PNG, SVG, JPG, WebP, or PDF.

What image formats work, and how accurate is it?

PNG, JPG, and WebP up to 5MB. Clean, legible diagrams convert most accurately. Messy handwriting, low contrast, or very dense labels may need small corrections — you can fix them in the editor or with the built-in AI fix, and the result auto-repairs once if it doesn't render.

How much does image conversion cost?

Sign in and you get 10 free credits. Each image conversion uses 3 credits. After that, subscribe to Pro for a monthly AI allowance, or buy a one-time credit pack. Editing and exporting the standard themes is always free with no watermark.

Is my image private?

The editor, preview, and image export run locally in your browser. The one exception is image-to-Mermaid: an image you upload for conversion is sent to our AI provider so it can read the diagram. It is not used to train models. Don't upload images containing secrets.

Can I edit the result?

Yes. The generated Mermaid is fully editable — adjust nodes and labels in the editor, refine with AI, switch themes, and export the final image.