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.
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.
Export controls activate after your diagram renders locally.
How it works
Upload, drag-and-drop, or paste (Ctrl+V) a screenshot, photo, or sketch of a diagram.
The vision AI identifies the nodes, connections, and labels and writes editable Mermaid.
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.
- ✦ Unlimited premium theme exports
- 200 AI generations every month
- Image-to-Mermaid, AI edit & auto-fix
- Cancel anytime
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.