Everything in One Markdown to PDF Converter
A complete, private, in-browser studio that turns Markdown into professional PDFs — with a live editor, syntax highlighting, Mermaid diagrams, LaTeX math, ten themes and custom CSS.
Live editor & preview
A real Markdown editor with line numbers, find & replace, word wrap, fullscreen and dark mode, beside a live themed preview that mirrors the final PDF.
Syntax highlighting
Code blocks are highlighted with highlight.js across JavaScript, TypeScript, Python, Go, Rust, SQL, YAML, Bash and many more languages.
Mermaid diagrams
Flowcharts, sequence, class, ER and Gantt diagrams and mind maps are rendered as crisp vector SVG and embedded straight into the PDF.
LaTeX math (KaTeX)
Inline and block equations render with KaTeX — perfect for academic papers, scientific notes and technical documentation.
10 professional themes
GitHub, GitHub Dark, GitLab, Obsidian, Notion, Academic, Technical, Minimal, Resume and Book themes — plus full custom CSS.
GitHub Flavored Markdown
Tables, task lists, footnotes, definition lists, admonitions, emoji shortcodes and auto-linking are all supported out of the box.
Table of contents
Generate an automatic, multi-level, optionally numbered table of contents with clickable links to every heading.
Private & secure
Everything runs in your browser — no upload. Add a password and printing/copying permissions to the PDF for extra control.
What Is Markdown to PDF?
Markdown to PDF is the process of turning a Markdown document — a lightweight, plain-text format that uses simple symbols like #, * and ` for formatting — into a polished, fixed-layout PDF. Markdown is how developers, writers and researchers author README files, documentation, notes, books and papers; PDF is how they share, print and archive the finished result.
This converter renders your Markdown exactly the way it will look — applying a professional theme, syntax-highlighting your code, drawing your Mermaid diagrams, typesetting your LaTeX math — and then produces a print-ready PDF, entirely in your browser. There is no server round-trip, so your content stays private.
- Full GFM support: Tables, task lists, footnotes, admonitions, emoji and auto-links all render correctly.
- Code, diagrams & math: highlight.js, Mermaid and KaTeX turn fenced blocks into rich, accurate output.
- Real themes: Ten battle-tested themes plus custom CSS control exactly how the PDF looks.
- 100% in-browser: Your Markdown is never uploaded; the PDF is generated on your own device.
Why Convert Markdown to PDF?
Markdown is perfect for writing, but it is not how most people want to receive a document. A PDF is universal, fixed-layout and print-ready: it looks identical on every device, needs no special software, and can be signed, shared and archived. Converting Markdown to PDF bridges the gap between authoring and distribution.
Whether you are publishing project documentation, turning a README into a professional handout, generating a resume, compiling a book, or exporting an academic paper with equations and figures, a Markdown to PDF converter gives you a clean, branded, shareable result without leaving your writing format.
- Professional sharing: Hand over a finished, branded document instead of raw Markdown.
- Documentation export: Publish README and docs as offline, printable PDFs.
- Resume generation: Write your resume in Markdown and export a clean, ATS-friendly PDF.
- Book publishing: Compile chapters into a paginated book with a table of contents.
- Offline reading: Take documentation and notes anywhere, no internet required.
- Long-term archiving: PDF is a stable, self-contained format ideal for records.
PDF Generation Modes
Different documents need different output. The converter offers five generation modes that trade speed against fidelity, so you get exactly the PDF you need.
- Fast: Quick export at a lower render scale — smallest file, ideal for drafts and previews.
- Standard: A balanced render scale and image quality — the right default for most documents.
- High Quality: Maximum render scale with lossless images for crisp diagrams, math and screenshots.
- Print Ready: Roughly 300 DPI output for professional printing and physical handouts.
- PDF/A Archive: High quality plus full embedded metadata, intended for long-term archiving.
How the Conversion Engine Works
The pipeline is fully client-side. Your Markdown is parsed by marked with GitHub Flavored Markdown plus custom extensions for footnotes, admonitions and math. Fenced code is highlighted with highlight.js; $...$ and $$...$$ math is typeset with KaTeX; ```mermaid blocks are drawn as SVG by Mermaid. The result is themed with real CSS.
To produce the PDF, the themed document is rendered off-screen, captured with html2canvas, and laid out page by page with jsPDF — snapping page breaks to block boundaries so paragraphs, code blocks and tables are not cut in half. Headers, footers, page numbers and watermarks are drawn as vector text on top, and the file can be encrypted with a password.
- WYSIWYG fidelity: The PDF matches the on-screen preview exactly, diagrams and math included.
- Smart pagination: Page breaks snap to block boundaries, with support for manual page breaks.
- Vector furniture: Headers, footers, page numbers and watermarks are sharp vector text.
- No upload: Parsing, rendering and PDF assembly all run on your device.
Best Markdown to PDF Settings
The ideal settings depend on what you are producing. Match the theme, page size and mode to your goal for a professional result.
- Documentation: Technical or GitHub theme, A4, Standard mode, table of contents and numbered headings on.
- Books: Book theme, A5 or A4, High Quality, TOC and chapter page breaks for a printed feel.
- Reports: Minimal or Technical theme, A4, header/footer with title and page numbers.
- Academic papers: Academic theme, A4, KaTeX math, footnotes preserved, justified text.
- Resumes: Resume theme, A4 or Letter, narrow margins, no page numbers, High Quality.
How to Convert Markdown to PDF
Add your Markdown
Upload a .md file, paste Markdown into the live editor, import a GitHub repository README, or pull Markdown from a URL or Gist. The preview and analysis update instantly as you type.
Choose a theme & settings
Pick from 10 professional themes (GitHub, Academic, Book, Resume and more), set page size, margins, a table of contents, headers/footers and optional password protection — and watch the live PDF preview update.
Convert & download
Press Generate PDF. Code is syntax-highlighted, Mermaid diagrams and LaTeX math are rendered, and a polished PDF is produced in your browser. Download it, print it, or batch-export many files as a ZIP.
Supported Features
Markdown vs PDF
| Dimension | Markdown | |
|---|---|---|
| Editing | Plain text — edit in any editor | Fixed layout — not meant for editing |
| Portability | Tiny, text-only files | Self-contained, opens everywhere |
| Printing | No layout — prints raw | Print-ready with exact pagination |
| Sharing | Best for developers | Best for any audience |
| Formatting | Rendered by the viewer | Embedded and consistent everywhere |
| Version control | Diff-friendly, Git-native | Binary, not diff-friendly |
| Use case | Authoring & collaboration | Distribution & archiving |
Markdown Compatibility
| Input | Supported | Notes |
|---|---|---|
| .md / .markdown / .mdown / .mkd | Yes | All Markdown file extensions |
| CommonMark | Yes | Full CommonMark spec |
| GitHub Flavored Markdown | Yes | Tables, task lists, strikethrough, autolinks |
| GitLab / Obsidian / Notion export | Yes | Admonitions, callouts and embeds map to themes |
| MkDocs / Docusaurus / Hugo / Jekyll | Yes | Container directives and front-matter tolerated |
| Mermaid code blocks | Yes | Rendered to SVG and embedded |
| LaTeX math ($ and $$) | Yes | Typeset with KaTeX |
Best Use Cases
Documentation teams
Export README files and docs sites into branded, offline PDF manuals with a table of contents and code highlighting.
Researchers & students
Write papers in Markdown with KaTeX equations and footnotes, then export a clean Academic-themed PDF for submission.
Job seekers
Keep your resume in Markdown under version control and generate a polished, recruiter-ready PDF in one click.
Developers
Turn release notes, RFCs and architecture docs (with Mermaid diagrams) into shareable PDFs straight from a repo.
Writers & authors
Compile chapters into a paginated Book-themed PDF with chapter breaks, ready for review or self-publishing.
Businesses
Produce reports and proposals from Markdown with your own custom CSS, logo header and confidential watermark.
Private by Design
Your Markdown never leaves your device. Parsing, diagram and math rendering, and PDF assembly all run in your browser.
No upload
Your Markdown is parsed and rendered to PDF in your browser. It is never sent to a server.
Stays on your device
The source and the generated PDF live only in your browser tab and are released when you close it.
No account
No sign-up, no email, no tracking of your content. Open the page and convert.
Optional encryption
Add an open password and printing/copying/editing restrictions to the PDF before downloading.
How It Works Under the Hood
marked (GFM)
A fast, spec-compliant Markdown parser with GitHub Flavored Markdown and custom extensions for math, footnotes and admonitions.
highlight.js
Industry-standard syntax highlighting for hundreds of languages, applied to every fenced code block.
Mermaid
Renders text definitions of flowcharts, sequence, class, ER and Gantt diagrams into crisp SVG embedded in the PDF.
KaTeX
Lightning-fast LaTeX math typesetting for inline and display equations, ideal for scientific writing.
html2canvas + jsPDF
Captures the themed document and assembles a paginated PDF with vector headers, footers and optional encryption.
Theme engine
Ten CSS themes plus your own custom CSS control typography, colours, code styling and layout.
Pro Tips
Force a page break
Insert anywhere in your Markdown to start a new PDF page — perfect for chapters and sections.
Building a book?
Use the Book theme with A5 page size, turn on the table of contents, and add page breaks before each chapter heading.
Need selectable text?
Use the Print / Save as PDF button for a vector PDF with selectable text via your browser print dialog.
Brand your PDF
Paste custom CSS to change fonts and colours, set a header with your company name and add a confidential watermark.
Diagrams not rendering?
Make sure your diagram uses a ```mermaid fenced code block. The first render downloads the Mermaid engine, then it is cached.
Math tips
Use $x^2$ for inline math and $$...$$ on its own lines for display equations. KaTeX handles the typesetting.
Markdown to PDF API
Automate Markdown to PDF at scale with a REST API: Markdown rendering, GitHub repository conversion, batch processing, async jobs, webhooks, API keys, team accounts and usage analytics.
Free
- Markdown & GFM rendering
- REST API
- Community support
Pro
- Everything in Free
- Mermaid & KaTeX rendering
- GitHub repo conversion
- Webhooks
Business
- Everything in Pro
- Batch & async jobs
- Team accounts
- Usage analytics
Enterprise
- Everything in Business
- SLA & priority support
- Self-hosted option
- Custom themes & integrations