How to convert HTML to PDF
- Choose what to convert: an .html file, or the address of a public web page.
- Pick the layout: paper size or one long page, the screen width the page is laid out for, margins, and whether to hide cookie notices and pop-ups.
- Convert and download the PDF.
Settings that make the difference
- Screen width. Pages lay themselves out for the window they’re in. Desktop width (1280 px) gives the normal website; phone width (390 px) gives the mobile layout, which is often easier to read as a narrow PDF.
- One long page. No page breaks cutting through pictures or tables. Good for reading on screen and for receipts and confirmations.
- As on screen or print version. Some sites have a print style that removes menus and ads; others print badly. The screen look is the safe default.
- Hide cookie notices and pop-ups. Cookie banners and sign-up boxes would otherwise cover the content on the first page, or repeat on every page.
- Wait before printing. For pages that keep loading after they appear, a wait of 2–5 seconds lets everything arrive.
Before printing, the page is scrolled from top to bottom so that pictures which load only as you scroll (“lazy loading”) are in the PDF too.
HTML files: what’s included
Only the HTML file is sent, so everything it needs has to be inside it or on the web: styles in <style> tags or linked with full https:// addresses, and pictures with full addresses or embedded as data. Untick Load pictures, fonts and styles from the web to convert the file exactly as it is, without fetching anything.
Safe by design
Pages are opened in a closed-off browser that can’t read local files or reach any private network: only public internet addresses on the normal web ports, checked again on every redirect. A page can’t use the converter to look into anyone’s internal network.
Related converters
- PDF to HTML: the other way, from a PDF to a clean web page.
- EML to PDF: saved emails, with their attachments, converted in your browser.
- XML to PDF: XML files and e-invoices as readable, coloured code.
Frequently asked questions
How do I convert an HTML file to PDF?
Can I convert a web address instead?
My HTML file’s pictures are missing. Why?
What does “As on screen” or “Print version” mean?
Do scripts run?
Can I get one long page without page breaks?
Is there a limit?
Last updated: 2026-11-24