How to use the HTML to PDF tool
- Choose the sourcePick “Web page URL” to save a live page, “Paste HTML” for your own code, or upload an .html file.
- Enter itType the address (for example https://example.com/article), paste the HTML, or choose the file.
- ConvertClick “Convert to PDF”. The page is rendered by a real browser engine and printed to A4/Letter pages.
- DownloadThe PDF downloads automatically.
Features
- Real browser renderingPages are rendered by the same engine as Google Chrome, so modern CSS layouts look right.
- Save articles and receiptsKeep a copy of an online article, order confirmation or documentation page.
- HTML templates to PDFDevelopers and small businesses can turn HTML invoices, certificates and reports into PDFs.
- Print-friendlyPrint stylesheets (@media print) and page-break CSS are respected.
- Safe by designPasted HTML runs with scripts disabled, and files are deleted right after conversion.
Three ways to convert
| Mode | Use it for | Notes |
|---|---|---|
| Web page URL | Saving public articles, blog posts, documentation, receipts | Works with public pages only. Content loaded from other domains (some images, embeds, ads) may be missing. |
| Paste HTML | Invoices, certificates, emails, reports you generate yourself | Use inline CSS and embed images as data: URIs. Scripts are not run. |
| Upload .html file | Saved web pages and exported templates | Same rules as pasted HTML. |
Tips for HTML authors
- Control page breaks with
break-before: pageorbreak-inside: avoidon sections and table rows. - Set page size and margins with
@page { size: A4; margin: 15mm; }. - Use
@media printto hide navigation, buttons and other screen-only elements. - Embed logos as data URIs (
<img src="data:image/png;base64,…">), since external files are not loaded for pasted HTML. Our Image to Base64 tool creates them. - Use web-safe or system fonts; embedded @font-face fonts as data URIs work too.
Why some pages can’t be converted
Pages behind a login (webmail, banking, social media feeds) can’t be reached by the converter. Some sites block automated visitors or build their content with heavy JavaScript that takes too long. For these, open the page in your own browser and use Print → Save as PDF instead.
How your data is handled
The page is rendered on our server in an isolated browser with no access to anything else, and the resulting PDF is deleted as soon as it has been sent to you. Pasted HTML and uploaded files are deleted at the same time.
To make the result smaller, use Compress PDF, and to add a signature, use Sign PDF.