Skip to content
YouNeed Tools
Free VPN

HTML to PDF

Turn an HTML file or a web page into a PDF that looks like it does in a browser, with real, searchable text. Free, no sign-up.

Drop an HTML file here

Up to 50 MB.

or drag and drop here

How to convert HTML to PDF

  1. Choose what to convert: an .html file, or the address of a public web page.
  2. 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.
  3. 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?
Choose the .html file on the HTML file tab, pick the page size and look, and press Convert to PDF. Styles and pictures inside the file, or linked from the web, are included.
Can I convert a web address instead?
Yes. Switch to the Web address tab and paste the address of a public page. Webpage to PDF is the same tool with the address box first.
My HTML file’s pictures are missing. Why?
Pictures saved next to the HTML file on your computer aren’t sent, only the HTML file itself. Use pictures with full web addresses (https://…), or put them inside the HTML file (as data: addresses). Styles in <style> tags, or linked from the web, work.
What does “As on screen” or “Print version” mean?
“As on screen” makes the PDF look like the page in a browser window. “Print version” uses the page’s own print style, if it has one, which often hides menus and adds page breaks. Try both if the first doesn’t look right.
Do scripts run?
Yes, as in a browser, so pages built with JavaScript show their content. They run in a closed-off browser that can’t reach private networks.
Can I get one long page without page breaks?
Yes. Choose One long page as the page size: the PDF is one page as tall as the content, like a full-page screenshot, but with real, searchable text.
Is there a limit?
Files can be up to 50 MB, and one conversion can take up to 60 seconds. There is no daily limit and no account. To keep the converter fast for everyone, each visitor converts one file at a time, up to about 10 a minute.

Last updated: 2026-11-24