Markdown to PDF
Convert Markdown — headings, lists, tables, code blocks, links and more — into a downloadable PDF. Paste Markdown or upload a .md file, pick a page size and font, and convert entirely in your browser: nothing is uploaded.
Input
Read as UTF-8 text and dropped into the box above.
Code blocks and inline code always render in a monospace font.
White space around the page content, in points (72 pt = 1 inch).
Output
Guides
Turn Markdown into a real, shareable PDF — headings, bold/italic text, lists,
tables, code blocks, blockquotes and links all render as proper page layout,
not a screenshot of a code editor. Paste Markdown or upload a .md file,
pick a page size and font, and download the result — all in your browser.
How to use it
- Paste your Markdown into the box, or drop a .md file to load it there.
- Open Page options to set the page size, orientation, body font (Helvetica or Times), font size and margin.
- Press Convert to PDF, then download
document.pdf.
What renders
- Headings (
#through######), each at a distinct size - Bold, italic and
strikethroughtext, including combinations - Bulleted, numbered and nested lists, plus GitHub-style
- [x]task lists - Fenced/indented code blocks in a monospace font on a shaded background
- Blockquotes, rendered indented and italic
- Tables, with column alignment preserved
- Links (clickable in the PDF) and a horizontal rule for
---
Free in your browser, private by default
The PDF is built entirely on your device — your Markdown is never uploaded. There's no file-size limit beyond what your browser can hold in memory, and long documents automatically flow across as many pages as they need.
What doesn't render?
Raw HTML embedded in the Markdown is dropped (there's no DOM for a PDF to render it against), and formatting inside a table cell — bold, italic, links — is flattened to plain text so the cell's column width stays predictable. Everything else in CommonMark/GFM lays out as expected.
Is there an API?
Yes. The same tool is available as a developer API
(POST /v1/tools/markdown-to-pdf) for converting Markdown from a script or
backend — handy for turning a README or changelog into a distributable PDF
in CI. Send the Markdown as a string; the response carries the PDF as a data
URL. The in-browser tool on this page stays free.
I need HTML instead of a PDF
Use Markdown to HTML to get clean HTML source and a live preview instead of a downloadable PDF.
I need to combine images or an Office document into a PDF instead
For images, use Image to PDF to combine PNG/JPEG files into one PDF. For Word documents, use Word to PDF, which preserves formatting and layout. For plain text, use TXT to PDF.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/markdown-to-pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Project README\n\nA short description of the pro…",
"pageSize": "a4",
"orientation": "portrait",
"font": "helvetica",
"fontSize": "12",
"margin": "40"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `markdown-to-pdf` tool (Markdown to PDF) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.