How to convert HTML to PDF
- Paste your HTML, or switch to Upload .html file.
- Check the live preview and choose page size, orientation and margins.
- Click Download PDF for a clean, text-based PDF, or Exact layout to keep your CSS design (pick "Save as PDF" in the print dialog).
Two ways to convert
| Download PDF | Exact layout | |
|---|---|---|
| Text | Real, selectable text | Real, selectable text |
| CSS design, colors, columns | Simplified to clean formatting | Kept as rendered |
| Headings, lists, tables, links | ✓ | ✓ |
| Images | Embedded (data URI) PNG/JPG | Any that load in the preview |
| Best for | Documents, articles, reports | Designed pages, invoices, receipts |
Safe by design
Your HTML is converted in your own browser. Scripts and event handlers are stripped before the preview, so pasted code can't run or track you.
Frequently asked questions
What's the difference between the two buttons?
Download PDF rebuilds your content (headings, text, lists, tables, links, images) into a clean PDF with real, selectable text — great for documents and articles. Exact layout opens your browser's print dialog, which renders the HTML with all its CSS; choose "Save as PDF" as the printer. Use it when the precise design matters.
Can I convert a website by URL?
Browsers don't allow one site to download another site's pages, so paste the page's HTML instead (right-click → View page source → copy), or save the page as an .html file and upload it. For a quick copy of any page you're viewing, press Ctrl+P (Cmd+P on Mac) and choose Save as PDF.
Is my HTML uploaded?
No. Everything is converted in your browser. Scripts in your HTML are removed for safety and never run.
Why are some images missing?
In Download PDF mode, only images embedded as data (PNG or JPG data URIs) can be included; images linked from other websites are blocked by browser security. Exact layout mode can show linked images that load normally.