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
- Paste your Mermaid source above and confirm the preview renders.
- Open the export options and choose PDF.
- Pick the paper size and orientation. Wide diagrams such as schedules and sequence charts usually want landscape.
- Set the margin and filename, then download the PDF.
PDF settings
| Setting | Choose | Why it matters |
|---|---|---|
| Paper size | A4 or Letter | Match the paper the reader will actually print on. |
| Orientation | Landscape for wide diagrams | A tall flowchart is the exception that wants portrait. |
| Margin | Around 36 points | Leaves room for binding and printer edges. |
| Title | Optional | Adds 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.