Markdown to PDF with Mermaid diagrams
```mermaid fences render as diagrams — flowcharts, sequence, class, state and Gantt — and travel into PDF, Word, image and EPUB as crisp graphics instead of code blocks.
How diagrams get into every format
Mermaid needs a browser to render, so the diagrams are drawn right here in your browser and embedded into the document as images before any format is produced. PDF and Word receive a sharp PNG; HTML, EPUB and image exports receive vector SVG.
The Mermaid engine loads only when a document actually contains a ```mermaid fence, so ordinary documents stay fast.
How it works
- Drop or paste — the Markdown with your ```mermaid blocks — the preview shows the rendered diagrams.
- Check — a diagram with a syntax error stays as a code block so you can fix it.
- Export — To PDF, To Word (DOCX), To Image (PNG) or EPUB — the diagram is in all of them.
Supported diagram types
- Flowchart / graph, sequence, class, state, entity-relationship, Gantt, pie, mindmap, timeline and the other Mermaid 11 types.
- Labels in Chinese, Japanese and Korean render with your device's fonts.
- Very large diagrams are embedded at 2× resolution for print.
⬇ Drop your .md here — or try the sample
Converts in seconds · nothing stored · no signup
Files are processed temporarily for conversion and not stored.
Frequently asked questions
Why is my diagram still a code block?
Mermaid could not parse it. Check the syntax (mermaid.live is handy); a parse error leaves the fence untouched rather than breaking the export.
Can I get the diagram as a separate image?
Export the document To Image (PNG) — or copy the diagram from the rendered preview.
Does Word show the diagram?
Yes, as an embedded PNG image at print resolution.
Is it free?
Free, no account. Diagrams are rendered in your browser; PDF and Word are converted in memory and discarded.