Export Mermaid Diagrams to SVG

Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
Flowchart

Export Mermaid Diagrams to SVG

Download your Mermaid diagrams as SVG vectors with infinite resolution. Always sharp at any size — no DPI to worry about. The best format for web, design tools, and scaling.

Benefits of SVG Export

  • Infinite resolution — always sharp at any zoom level, any display
  • Smallest file size — typically 10-50x smaller than high-res PNGs
  • Editable in Figma, Illustrator, Inkscape, and other vector tools
  • Perfect for responsive web designs and dark/light mode support

Best For

Websites and web applications
Design tools (Figma, Illustrator, Sketch)
Technical documentation with zoom capability
Any context where the viewer might resize or zoom

Export Settings

Background

Transparent for embedding on any background, or solid color for standalone use

Inline styles

Embed CSS styles directly in the SVG for standalone use outside the editor

How to Export to SVG

  1. 1

    Create your diagram

    Write your Mermaid code in the editor above or use one of our templates.

  2. 2

    Click the Export button

    Find the Export button in the header to open the export dialog.

  3. 3

    Select SVG format

    Click the SVG tab to see svg-specific options.

  4. 4

    Configure and download

    Adjust settings as needed and click Export SVG to download.

Frequently Asked Questions

Related Export Guides