Markdown to PDF with Mermaid diagrams
Keep diagrams and prose in one Markdown file and export a PDF where every ```mermaid block becomes a crisp vector diagram — no extensions, no setup.
Try an example
Open one in the editor — it loads instantly, then edit and download your PDF.
Mermaid diagrams
Flowchart and sequence diagrams rendered to vector SVG.
# System Architecture
A quick overview of how a request flows through the platform.
```mermaid
flowchart LR
U[User] --> CDN[CDN]
CDN --> API[API Gateway]
API --> S1[Auth Service]
API --> S2[Orders Service]
S2 --> DB[(PostgreSQL)]
S2 --> Q[[Queue]]
Q --> W[Worker]
```
## Deployment timeline
```mermaid
sequenceDiagram
Dev->>CI: push commit
CI->>Registry: build & push image
Registry->>K8s: rolling update
K8s-->>Dev: deploy complete
```
Key Features
Built-in Mermaid
Diagrams render automatically in the preview and the exported PDF.
Prose + diagrams
Document architecture, flows and lifecycles alongside your explanations.
Vector output
Diagrams export as SVG and stay sharp at any zoom or print size.
100% private
Conversion runs entirely in your browser. Nothing is uploaded — your content never touches a server.
Everything in one document
Instead of pasting screenshots of diagrams into a doc, write them as Mermaid code right in your Markdown. They render live as you type and export to the PDF as clean vector graphics — and they're easy to edit later.
No extension required
VS Code and Pandoc typically need a plugin or filter to handle Mermaid. Here it's built in, so you can convert Markdown to PDF with Mermaid diagrams straight from the browser.
Frequently asked questions
Do I need to install anything for Mermaid?
No. Mermaid rendering is built in — paste a ```mermaid block and it renders automatically.
Are the diagrams vector?
Yes, they export as SVG, so they stay crisp at any size.
Can I mix diagrams with normal Markdown?
Absolutely — combine headings, tables, code and Mermaid diagrams in one document.
Related converters
Ready to convert?
No sign-up, no upload, no cost. Start writing and download in seconds.