Loading mermaid.tools…

Mermaid to PDF converter

Paste Mermaid source above and produce a page-sized PDF for printing, review, or attaching to a document.

Reach for PDF when the diagram has to arrive as a document rather than an image: a printed plan, a review pack, or an attachment that must open the same way on every machine.

How to convert Mermaid to PDF

  1. Paste your Mermaid source above and confirm the preview renders.
  2. Open the export options and choose PDF.
  3. Pick the paper size and orientation. Wide diagrams such as schedules and sequence charts usually want landscape.
  4. Set the margin and filename, then download the PDF.

PDF settings

SettingChooseWhy it matters
Paper sizeA4 or LetterMatch the paper the reader will actually print on.
OrientationLandscape for wide diagramsA tall flowchart is the exception that wants portrait.
MarginAround 36 pointsLeaves room for binding and printer edges.
TitleOptionalAdds a heading above the diagram on the page.

The diagram is placed into the PDF as a raster image, so the page does not contain selectable diagram text. When the text has to stay selectable, export SVG and place it in a document that accepts vector artwork.

Frequently asked questions

Which orientation should I use?

Landscape suits Gantt charts, sequence diagrams, and wide flowcharts. Portrait suits tall top-to-bottom diagrams such as org charts with many levels.

Is the text in the PDF selectable?

No. The diagram is embedded as an image, so the PDF shows it exactly as rendered. Export SVG when selectable text matters.

Can I print the result directly?

Yes. The export is a normal page-sized PDF, so it opens and prints from any reader without further conversion.

Keep reading

Export guide · the example loaded above · all guides

mermaid.tools is an independent editor not affiliated with the Mermaid.js project or Mermaid Chart / mermaid.ai. Conversion runs in your browser with Mermaid 11.17.2; nothing is uploaded.