Mermaid diagrams to PDF
Write Mermaid inside fenced code blocks and export a PDF where every diagram is sharp vector SVG — flowcharts, sequence, class, state, ER and gantt all supported.
Open the converterFree · runs in your browser · nothing uploaded
Vector, not screenshots
Diagrams export as SVG, so they stay crisp at any zoom and print resolution.
All diagram types
Flowchart, sequence, class, state, ER, gantt, pie, gitgraph and more.
Diagrams never split
Each diagram is kept whole on a single page — no awkward cuts.
Runs locally
Mermaid renders in your browser; your source is never uploaded.
How it works
- 1
Add a mermaid code block
Use a fenced block with the language set to mermaid.
- 2
Check the live preview
The diagram renders instantly so you can tweak it.
- 3
Export PDF
Export and the SVG diagram is embedded crisply in the PDF.
Related
Frequently asked questions
Which Mermaid diagram types are supported? +
Flowchart, sequence, class, state, entity-relationship, gantt, pie, gitGraph, journey, quadrant, timeline and more — the full Mermaid library is bundled.
Is this Markdown to PDF converter free? +
Yes — completely free with no login, no watermark and no limits. Conversion runs in your browser, so there are no server costs to pass on.
Is it private? Do my files get uploaded? +
Nothing is uploaded. Your Markdown is parsed and rendered to PDF entirely client-side in your browser. You can verify this in your browser DevTools Network tab — there are no upload requests.
Why do code blocks and tables get cut in other converters? +
Most tools ignore page-break rules, so atomic elements get sliced across page boundaries. We apply break-inside: avoid to code blocks, tables, images and headings, so they stay whole on a single page.
Is the exported PDF text selectable? +
Yes. We use the browser print engine to produce a true vector PDF with selectable, searchable text and clickable links — not a flattened image.