Chapters · 2
Markdown to PDF
Ready
Convert Markdown to PDF
Have a file?
Converted on your device. Nothing is uploaded.
To convert Markdown to PDF, paste your Markdown into the tool above (or load a .md file) and press Open print dialog. The tool lays the text out as a clean, printable page and opens your browser's print dialog; choose Save as PDF as the printer to get the PDF. Nothing is uploaded, and the PDF is made by your own browser.
The chapters below cover what converts and how to get the best PDF from the print dialog.
01
What converts
The page uses a readable print layout: headings stay with the text that follows them, tables and code blocks avoid breaking across pages where they can, and long code lines wrap instead of running off the page.
- Headings, bold, italic and strikethrough text.
- Lists, bulleted and numbered, nested.
- GitHub-style tables with column alignment.
- Links: clickable in the PDF when your browser keeps links, which most do.
- Inline code and code blocks in a monospace font.
- Quotes, horizontal rules, and images written into the file as data URLs. Images that point to a web address or a file on your computer show their alt text instead.
Raw HTML is shown as text, not run.
02
Getting a good PDF from the print dialog
- In Chrome and most browsers, set the Destination (or printer) to Save as PDF; you may need to open See more to find it. On a Mac, you can instead click the PDF pop-up menu at the bottom of the dialog and choose Save as PDF.
- Choose your paper size, such as Letter or A4.
- Turn off headers and footers if your browser adds the date and page address to each page.
- Save the PDF.
The labels differ a little between browsers.
If it doesn't work
- No dialog opens: your browser may block print dialogs from a page. Allow them for this site and press the button again.
- The PDF has the web address at the top of each page: that's the browser's header. Turn off headers and footers in the dialog.
Fix the file now
Drop the document into the repair tool at the top of this page. It's free, and the file stays on your device.
Troubleshooting
The PDF is missing my images
Images that point to a web address or a file on your computer can't be loaded into the page. Embed them as data URLs, or add them to the PDF afterward.
Questions
Frequently asked questions
Is the Markdown to PDF converter free?
Yes. There is no account and no limit.
Why does it use the print dialog?
Your browser already makes accurate PDFs from a page. Using it means the PDF is created on your computer and nothing is uploaded.
Can I get a Word file instead?
Yes. Use markdown to docx.