HTML to PDF
Turn HTML into a PDF with your choice of paper size and margins, using your browser to print it.
Direction
Your browser's print window opens. Choose "Save as PDF" as the printer.
Preview
Missing a feature or found a bug in HTML to PDF? Tell me on X (@_andrewtran) or by email.
How to use HTML to PDF
- Paste your HTML, with any styles in a style element.
- Choose the paper size, direction and margin.
- Select Save as PDF, then choose Save as PDF as the printer.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Why were parts of my page taken out?
Scripts, forms, frames and anything that loads from another site are removed, so the page can do nothing but be printed. The status line lists what was taken out.
How do I include images?
Put them in the HTML as data URIs. The image to Base64 tool makes one from any picture. Images at web addresses are not loaded.