What it does
HTML to PDF turns HTML and its CSS into a PDF. Choose the page size, orientation and margins, check the paged preview, then save. It suits reports, receipts, certificates and documents you build from a template.
How to use it
- Paste your HTML (with
<style>blocks) into HTML, or click Sample. - Set the page size, orientation and margins.
- Check the preview.
- Click Save as PDF and choose Save as PDF as the printer in the dialog.
Example
<style>
h1 { color: #4f46e5; }
.total { font-weight: bold; text-align: right; }
</style>
<h1>Monthly report</h1>
<p>Revenue grew 12% in October.</p>
<p class="total">Total: 48,200</p>
Good to know
- Scripts are removed for safety, so content built by JavaScript will not appear. Paste the final HTML.
- Use print CSS for page control:
page-break-before: alwaysstarts a new page, and@media printstyles apply only to the PDF. - Images and fonts must be reachable by URL or embedded as data URLs; the Image to Base64 tool can embed images.
FAQ
Can it convert a live web page by URL? No. Open the page in your browser and use its own print dialog, or copy the HTML here.
Why do backgrounds disappear? Turn on Background graphics in the print dialog's settings.