Markdown & HTML to PDF
Turn Markdown or HTML into a clean, printable PDF with page size, margins and fonts you choose, previewed live in your browser.
Runs in your browser. Nothing is uploaded.
How to use the Markdown & HTML to PDF
- Choose Markdown or HTML with the switch at the top.
- Type or paste Markdown in the editor, or drop a .md file.
- Check the formatted preview on the right.
- Choose the page size, orientation, margins, font and text size.
- Press Save as PDF and choose "Save as PDF" as the printer.
From plain text to a polished document
Markdown is a simple way to write formatted text with symbols: # for headings, ** for bold, - for lists. It’s popular for notes, documentation and README files. This tool turns Markdown into a clean, printable document and saves it as a PDF through your browser.
Layout options
Choose the page size (A4, Letter, Legal or A5), orientation and margins, plus the font style and text size. The preview updates as you type, showing headings, tables, quotes and code blocks with tidy default styles. Code blocks and tables avoid splitting across pages where possible.
Saving as PDF
Press Save as PDF to open the print dialog for the preview. Choose “Save as PDF” (or “Microsoft Print to PDF” on Windows) as the printer. Your browser creates the PDF with selectable text and the page settings you chose. You can also download the formatted HTML.
Safety
Raw HTML inside Markdown is allowed, but the preview runs in a sandbox where scripts are disabled and content from other websites isn’t loaded, so pasted Markdown can’t run code or track you.
HTML to PDF
Switch to HTML to turn a web page, an email template or a receipt into a PDF. Paste the HTML or drop an .html file. Keep the page’s own styles uses its CSS so it looks like the original; untick it to use the same clean print styles as Markdown documents. Scripts don’t run and external images may not load, because nothing is fetched from other sites.
Private
Your text is converted in your browser and saved only on this device. The last document is remembered so you can come back to it.
Frequently asked questions
Which Markdown features are supported?
Headings, emphasis, lists, links, images by data URL, block quotes, code blocks, tables and horizontal rules (GitHub-flavoured Markdown).
Why does it use the print dialog?
Your browser's own PDF engine produces sharp, selectable text in every language and handles page breaks well. Choose "Save as PDF" as the destination.
Can I force a page break?
Yes. Add <div class="page-break"></div> on its own line where a new page should start.
Do images from the web appear?
No. For privacy, the preview doesn't load anything from other websites. Images embedded as data URLs work.
Tutorials
How to save an HTML receipt or report as a PDF
Turn an HTML file or snippet into a PDF that keeps its own styling, with the page size and margins you choose.
How to turn Markdown notes into a PDF
Convert Markdown with headings, tables and code blocks into a printable PDF with your choice of page size and font.