1. Paste Code
Paste your Mermaid syntax into the code editor on the left, or start with one of our built-in templates.
Built for docs, specs, and engineering notes
Convert Mermaid code to PNG, JPG, SVG, or PDF with live preview, templates, and browser-only export.
flowchart LR
draft["Mermaid"] --> preview["Preview"]
preview --> image["PNG / SVG"]
preview --> document["JPG / PDF"]START WITH A TASK
Working examples, the reasoning behind each change, and checks before you share. Follow the step you need, from source to document.
LAYOUT WALKTHROUGHSharp image, unreadable labels on a phone? →Browse all guides →Not just rendering code. Mermaid2Img keeps editing, previewing, styling, node tweaks, and export in one flow.
Convert your Mermaid diagrams to images in just a few simple steps.
Paste your Mermaid syntax into the code editor on the left, or start with one of our built-in templates.
The diagram renders instantly in the preview panel on the right. Syntax errors are highlighted in real time.
Fine-tune the appearance by modifying the Mermaid code. Customize colors, shapes, labels, and layout as needed.
Choose your preferred format—PNG, JPG, SVG, or PDF—and download a high-resolution image with one click.
Mermaid2Img includes 22 common Mermaid diagram templates for mainstream technical documentation workflows.
Everything you need to know about Mermaid2Img.
Rendering and image export happen in your browser, so your Mermaid code stays on your device during normal use.
We support PNG, JPG, SVG, and PDF. PNG is great for general use, SVG offers infinite scalability, and PDF is ideal for printing and formal documents.
Absolutely. All processing happens entirely in your browser. Your Mermaid code never leaves your device or gets uploaded to any server.
Yes. Mermaid2Img is designed for Markdown docs, product specs, architecture notes, presentations, and knowledge bases.
Mermaid2Img supports mainstream Mermaid diagram types including flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, git graphs, mindmaps, user journeys, and more.
PNG exports are rendered at 2x resolution for crisp Retina displays. SVG exports are pure vector graphics that stay sharp at any zoom level. PDF exports preserve precise layout for printing.