Convert HTML to PDF
Convert HTML code or .html files to PDF. Set screen width, page size, orientation and margins, or one long page. Scripts disabled.
How to use HTML to PDF
- 1Paste HTML or add a .html file
- 2Choose page size and screen width
- 3Download the PDF
What makes it better
- Live preview before converting
- One long page option for receipts and web pages
- Scripts never run — safe for untrusted HTML
Good to know
- Images and styles must be inline or loaded from public https URLs that allow cross-origin access.
- Converting a live web address is not supported because pages cannot be fetched from another site inside your browser.
HTML to PDF FAQ
Will my original PDF be changed?
No. Your original file stays unchanged. Download the result as a separate file.
Can I convert a website URL?
Browsers block reading other websites, so paste the page’s HTML instead (View source → copy), or use your browser’s Print → Save as PDF on that site.
Will links and text be selectable in the PDF?
Choose “Selectable text” for real text and working links. “Exact look” captures the page as you see it in the preview, but as an image, so its text can’t be selected.