Home›PDF Tools›HTML to PDF
🌐

HTML to PDF Converter

Convert any URL, HTML code, or .html file to PDF — free, no sign-up

Convert HTML to PDF in three ways: paste a URL to convert any live webpage, paste raw HTML code directly, or upload an .html file. Choose between A4 and Letter page sizes, portrait or landscape orientation, and set custom margins. Perfect for saving web articles, invoices, reports, and any HTML content as a PDF.

Enter the full URL including https://

PDF Settings

Page Size

Orientation

Margin

20mm

Frequently Asked Questions

Yes. Paste any public URL and it will be fetched and converted to PDF.
Yes. Pages are rendered in a real Chromium browser, so flexbox, grid, web fonts, colours and background images come out the way they print from Chrome. Print styles defined by the page are applied too.
A4 and US Letter, in portrait or landscape orientation.
Yes. Use the "Upload .html" tab to upload a local HTML file directly.

About HTML to PDF

Convert HTML to PDF in three ways: paste a URL to convert any live webpage, paste raw HTML code directly, or upload an .html file. Choose between A4 and Letter page sizes, portrait or landscape orientation, and set custom margins. Perfect for saving web articles, invoices, reports, and any HTML content as a PDF.

How to Use HTML to PDF

  1. Choose input method: URL, HTML code, or .html file
  2. Paste your URL or HTML, or upload your file
  3. Select page size, orientation, and margins
  4. Click Convert to PDF and download

Three ways to convert

  • From URL: paste the address of any public web page, such as an article, a receipt page or online documentation.
  • Paste HTML: paste HTML code, for example an invoice or report template you generate yourself.
  • Upload .html: upload an HTML file saved on your computer.

How the page is rendered

The conversion runs in a real Chromium browser, the engine behind Google Chrome. Modern CSS such as flexbox, grid, web fonts, background colours and images renders the way it does when you use Print and Save as PDF in Chrome, including any print styles the page defines. The converter waits for the page to finish loading, for up to 30 seconds, before it creates the PDF.

Limits to know about

  • Only public pages work. A page behind a login, paywall or bot check is captured as the login or check screen. For those, open the page in your own browser and use Print, then Save as PDF.
  • Pages that keep loading content as you scroll may be cut off where the first load ends.
  • In pasted or uploaded HTML, images and stylesheets with relative paths (like images/logo.png) cannot be found. Use full https:// addresses or embed the images.
  • Page size is A4 or US Letter, portrait or landscape, with margins from 0 to 50 mm. If your HTML already has its own margins, set the margin to 0.

Learn More

pdf
How to Convert HTML to PDF for Free — Webpages, Invoices, and Reports (2026 Guide)
6 min read

You May Also Like

Word to PDF

Convert Word documents to PDF format with perfect formatting

Use Tool→

Compress PDF

Reduce PDF file size without losing quality

Use Tool→

Merge PDF

Combine multiple PDF files into one document

Use Tool→

Watermark PDF

Add a text or logo watermark to all or chosen pages. Set position, opacity, color and rotation.

Use Tool→
Something not working with HTML to PDF?Report a problemSee known issues