How to use the HTML to PDF tool
- Pick a sourceSelect “Web page URL” for a live page, “Paste HTML” for your own markup, or upload an .html file.
- Provide itType the address (e.g. https://example.com/article), paste your HTML, or select the file.
- ConvertPress “Convert to PDF”. A genuine browser engine renders the page and prints it onto A4/Letter pages.
- SaveYour PDF downloads on its own.
Conversion features
- Genuine browser engineRendering uses the same engine as Google Chrome, so modern CSS layouts display correctly.
- Keep articles and receiptsHold on to a copy of an online article, an order confirmation or a help page.
- Templates into PDFsDevelopers and small firms can produce PDFs from HTML invoices, certificates and reports.
- Print-aware@media print stylesheets and page-break rules in your CSS are followed.
- Built with safety in mindScripts are switched off for pasted HTML, and all files are removed straight after conversion.
The three input modes
| Mode | Good for | Keep in mind |
|---|---|---|
| Web page URL | Public articles, blog posts, docs pages and receipts | Only public pages can be reached. Material pulled from other domains, such as some images, embeds or ads, might not appear. |
| Paste HTML | Invoices, certificates, emails and reports you build yourself | Put CSS inline and embed pictures as data: URIs. Scripts don’t run. |
| Upload .html file | Saved pages and exported templates | The same rules apply as for pasted HTML. |
Advice for anyone writing the HTML
- Decide where pages break with
break-before: page, or keep blocks together withbreak-inside: avoidon sections and table rows. - Define paper size and margins using
@page { size: A4; margin: 15mm; }. - Hide menus, buttons and anything else meant only for screens inside
@media print. - Pasted HTML can’t fetch external files, so embed logos as data URIs (
<img src="data:image/png;base64,…">). You can make them with our Image to Base64 tool. - Stick to web-safe or system fonts; @font-face fonts embedded as data URIs also work.
When a page won’t convert
Anything that sits behind a sign-in, like webmail, online banking or social media feeds, is out of the converter’s reach. Some websites also turn away automated visitors, or assemble their content with so much JavaScript that it doesn’t finish in time. In those cases, open the page in your own browser and choose Print → Save as PDF.
What happens to your data
Pages are rendered on our server inside an isolated browser that can’t reach anything else, and the PDF is deleted the moment it’s been delivered to you. Pasted markup and uploaded files are removed at the same time.
To slim down the result, run it through Compress PDF; to sign it, use Sign PDF.