Mermaid OnlineTools

PDF export · docs and print handoff

Mermaid to PDF Converter

Paste Mermaid code, preview the rendered diagram, then export a clean high-resolution PDF for documentation, specs, handoff, and print-friendly sharing.

No signup · No watermark · Local browser rendering · High-resolution PDF · Your diagram code stays in your browser

Paste or edit Mermaid code
Replace the sample below, or load another example.
Load example
Paste Mermaid code here. Preview and export load locally in your browser.
Live previewSample preview · GitHub README

Write

Preview

Export

Docs Asset

Render & export

Export controls activate after your diagram renders locally.

Flowchart
Mode
Default renderNative MermaidOptimized exportStyled download
Export style
Clean DocsGitHub READMENotion DocWhiteboard SketchTransparent DocsGitHub DarkLinear DarkTokyo NightSlide TransparentSlide DarkExecutive DeckEditorial Card
Scale
1x2x4x
Output: White · comfortable padding
Size: calculated after render
Filename: mermaid-flowchart-white-2x.png

When Mermaid to PDF is the right workflow

PDF is useful when diagrams need to travel through documentation reviews, specs, email attachments, and print-oriented handoff flows where recipients may not accept Mermaid source, SVG, or modern image formats.

Specs and design docs

Attach a PDF diagram to product specs, ADRs, implementation notes, and architecture reviews without asking reviewers to render Mermaid.

Client or stakeholder handoff

Use PDF when the recipient expects a document-style asset rather than an editable source file or web image.

Print-friendly sharing

Create a white-page PDF from the rendered diagram so labels, arrows, and boxes remain readable in document workflows.

PDF export checklist

High-resolution source

The PDF is created from the rendered diagram at the selected export scale, so 2x is the safe default for normal docs.

White PDF page

Transparent presets are flattened onto a white PDF page for reliable viewing and printing across PDF readers.

Need editable vectors?

Use SVG export when you need editable vector markup. The PDF path prioritizes consistent appearance in document workflows.

FAQ

Questions about this Mermaid export workflow

Does Mermaid to PDF run locally?+

Yes. Mermaid rendering, rasterization, and PDF creation happen in your browser for the core workflow. Your diagram code is not uploaded for conversion.

Is the exported PDF editable vector output?+

No. The PDF is generated from a high-resolution rendered image so it matches the preview consistently. Use SVG export when you need editable vector markup.

Can the PDF keep a transparent background?+

PDF export uses a white page background for reliable viewing and printing. Use PNG or WebP when you need transparent image output.

Which scale should I choose for PDF?+

Use 2x for normal documentation and 4x for large diagrams or presentation handoff. If a very large diagram fails, lower the scale or export SVG instead.