Markdown to PDF
Turn Markdown into a PDF with selectable text, straight from your browser.
Paste Markdown, check the styled preview, and click Print to PDF to save it from your browser's print dialog. The browser prints real text, so the words in the PDF can be selected, searched and copied. Headings, lists, bordered tables, links and code blocks keep their formatting. The page is built in your browser and nothing is uploaded.
How to convert Markdown to PDF
- 1Paste or type your Markdown in the box on the left.
- 2Check the styled preview on the right.
- 3Click Print to PDF. A new tab shows the formatted page and the print dialog appears.
- 4Choose Save as PDF as the printer or destination, set the paper size, margins and orientation, and save.
Format notes & gotchas
- If no new tab opens, allow pop-ups for markprep.online and click Print to PDF again.
- Page breaks fall where the browser's print engine puts them, so a long table can split across pages.
- Mermaid diagrams aren't drawn. Their code prints as a code block.
Related converters
Frequently asked questions
How do I convert a .md file to PDF?+
Open the .md file in a text editor, copy its contents and paste them into the box above. Click Print to PDF, then choose Save as PDF in the print dialog.
Can I convert Markdown to PDF for free?+
Yes. There is no sign-up, no watermark and no limit on how many PDFs you make.
Does it work on Windows, macOS and Linux?+
Yes. It needs only a web browser, so it works the same on Windows, macOS and Linux distributions such as Ubuntu.
Is my Markdown uploaded?+
No. The conversion runs in your browser tab, which builds the PDF page from the text you paste. Your text is never sent to a server. To check, press F12, open the Network tab and watch while you export.
MarkPrep Pro, £19 once
Pro lets you convert files to Markdown from a terminal, or from AI apps such as Claude Code, on your own computer.