Convert Mermaid to PDF

Turn Mermaid diagram Markdown into a PDF. Paste fenced diagrams, preview page breaks, and download.
No account or watermark.

  • Mermaid in Markdown
  • Live page-by-page preview
  • No watermark

Try it with example Mermaid diagrams

We've loaded flowchart and pie samples so you can see how Mermaid diagrams appear in the exported PDF.

Convert Mermaid diagrams to PDF

A Mermaid PDF helps when you need architecture diagrams outside a repo—reviews, handoffs, and print.

  • Architecture handoffs

    Share flow and sequence diagrams as a single printable PDF.

  • Design reviews

    Bring Mermaid sketches into meetings without asking people to open a repo.

  • Docs and runbooks

    Combine prose with diagrams for offline onboarding notes.

  • Stable snapshots

    Freeze a diagram version for audits, tickets, and change records.

Diagram types and Markdown around them

Put Mermaid source in fenced code blocks labeled mermaid. Surrounding Markdown still renders in the preview and PDF.

  • Flowcharts
  • Sequence diagrams
  • Class diagrams
  • Markdown prose
  • Headings and lists
  • Tables and links

How to convert Mermaid to PDF

  1. Step 1

    Paste Mermaid Markdown

    Paste fenced ```mermaid blocks, or upload a Markdown file (.md, .markdown, or .txt).

  2. Step 2

    Preview rendered diagrams

    Confirm Mermaid renders and check how large diagrams affect page breaks.

  3. Step 3

    Download the PDF

    Export when the layout looks right. Open the full-screen editor for themes, fonts, and margins.

Diagram size and page breaks

Mermaid renders before pagination, so wide or tall diagrams can push content onto later pages. Check the live preview and split large diagrams into smaller fences when needed.

Use the full-screen editor to adjust paper size, orientation, margins, and font sizes when a diagram-heavy document needs more room.

Frequently asked questions

Answers about Mermaid fences, diagram types, privacy, and PDF export.

Can I convert Mermaid diagrams to PDF?

Yes. Put Mermaid source inside fenced ```mermaid code blocks in Markdown, preview the rendered diagrams, and download a PDF.

Which Mermaid diagram types work?

Common diagram types such as flowcharts, sequence diagrams, and class diagrams render when Mermaid can parse the fence. Invalid or unsupported syntax may fail to render—fix the diagram in the preview before downloading.

Do diagrams render before pagination?

Yes. Mermaid runs before Paged.js pagination in both the live preview and PDF export, so diagram size affects page breaks the same way in both places.

Can I mix diagrams with regular Markdown?

Yes. Headings, lists, tables, links, and prose around Mermaid fences are supported. That is useful for architecture notes and technical write-ups.

Is there a watermark or account requirement?

No. Exported PDFs do not include a watermark, and no account is required.

What happens to my Mermaid Markdown?

Pasted text and files you open on your device stay in your browser until you download a PDF. We send your Markdown to generate a PDF only when you choose Download, and we do not keep a copy after processing finishes.

Can I start from sample diagrams?

Yes. This page preloads flowchart and pie samples so you can preview rendering and page breaks, then replace them with your own Mermaid fences.