Skip to content
PDFDaily

HTML to PDF

Save web pages, HTML files or pasted HTML as PDF. Preview before you convert.

Free: up to 10 links at a time. You can add more links in the next step.

or drop files here

Free: files up to 50 MB · up to 3 files · up to 50 pages per task · 10 links per task · 15 of 15 free tasks left today. See plans

Files are encrypted in transit and deleted after 2 hours. You can delete them sooner.

To convert HTML to PDF, paste a web page link (or add an HTML file, or paste HTML code) into HTML to PDF, check the preview and select Convert to PDF.

How to convert HTML to PDF in 3 steps

  1. 1

    Enter web page links (one per line), add an HTML file or ZIP, or paste HTML.

  2. 2

    Choose the page size and layout width. The preview updates as you change options.

  3. 3

    Select Convert to PDF and download one PDF per page.

What can HTML to PDF do?

  • Web page links: up to 10 at a time, each page becomes its own PDF.
  • HTML files and ZIP sites with images and stylesheets, or pasted code.
  • One long page without page breaks, or A4, A3, A5, Letter and Legal pages.
  • Pick the screen width from mobile to large desktop, plus margins and a URL and date header.
  • Cookie notices, pop-up overlays and ads are hidden by default.
  • Pages are loaded in an isolated browser that cannot reach private networks.

How do I convert HTML to PDF?

To convert HTML to PDF, choose a source (web page links, an HTML file or pasted HTML), check the preview and select Convert to PDF. HTML to PDF loads the page in a real browser, scrolls through it so lazy-loaded images appear, and hides cookie notices, pop-up overlays and ads by default.

Which page settings can I change?

Pick One long page for a PDF without page breaks, or A4, A3, A5, US Letter or Legal pages in portrait or landscape. You can set the page layout width from Mobile (390 px) to Large desktop (1920 px), add margins, use the page's own print styles, or add the URL and date in the header.

Can I convert several pages at once?

Yes, enter several links, one per line, and each becomes its own PDF; turn on Merge all pages into one PDF to get a single document. To shrink the result, use Compress PDF, or turn it into an editable document with PDF to Word.

Your files are deleted from our servers automatically after 2 hours.

Frequently asked questions

How do I turn an HTML file into a PDF?

Set Source to HTML file, add the .html file (or a ZIP of the site with its images and stylesheets) and select Convert to PDF. The page is drawn in a real browser, so CSS and images appear as they would on screen.

How can I convert HTML code to PDF for free?

Set Source to Paste HTML, paste your code and select Convert to PDF. It is free within the daily limits shown on the page, and a free account raises them.

Why can't some web pages be converted?

Pages behind a login or a bot check cannot be loaded by our automated browser. Save the page from your own browser as an HTML file and add it here instead.

Can I convert an intranet or localhost page?

No. Private network addresses are blocked on purpose, so the converter can never reach internal systems. Save the page as an HTML file and upload that instead.

How long can a one-page PDF be?

One long page is limited by the PDF format to about 200 inches. Longer pages continue on a second page and we tell you.

Is the preview counted as a task?

No. Previews are free and limited to 20 per hour.

Related tools

Last updated October 23, 2026