HTML to PDF

Save a web page or HTML as a PDF. Free, running in your browser.

Paste HTML or choose an HTML file, preview it, then save it as a PDF.

Nothing is uploaded. Scripts in your HTML do not run. Save as PDF opens your browser print window: choose “Save as PDF” as the printer.

Convert HTML to PDF

Paste HTML or open an HTML file, check the preview, then save it as a PDF. The page is shown exactly as your browser prints it, so text stays selectable. Nothing is uploaded, and scripts in your HTML are not run.

How to use it

  1. Choose an HTML file, or paste your HTML into the box.
  2. Choose A4 or Letter and click Preview.
  3. Click Save as PDF. Your browser print window opens.
  4. In the print window, choose Save as PDF as the destination and save the file.

Who this is for

  • Developers turning an HTML email, invoice or report template into a PDF.
  • Saving a simple HTML file you have on your device.
  • Teachers and students saving an HTML assignment as PDF.

For a web page from the internet

Open the page in your browser, press Ctrl+P (or Share and Print on a phone), and choose Save as PDF. This keeps the page as you see it, including pictures, without any tool.

Keep your layout when converting HTML to PDF

  • Put your CSS inside a style tag in the HTML, so the preview can use it.
  • Add break-before: page to an element to start it on a new PDF page.
  • In the print window, turn on Background graphics to keep colours and shaded boxes.
  • Set Margins to Default or None if the page looks squeezed.

Tips

  • Only the HTML you give is shown. Pictures that point to other websites may not load.
  • Scripts are blocked for your safety, so pages that build themselves with JavaScript will look empty.
  • This tool cannot fetch a web address for you. Paste the HTML instead.

Frequently asked questions

Can I convert a website link to PDF?

Not here. A browser tool cannot read other websites. Open the page, choose Print and Save as PDF, or paste its HTML.

Why does it open a print window?

That is how a browser makes a PDF with real, selectable text without sending your page anywhere.

Is my HTML uploaded?

No. It stays on your device.

Is this HTML to PDF converter free?

Yes. It is free, needs no account and adds no watermark.

Do links still work in the PDF?

Usually yes. When you save as PDF from Chrome, links in your HTML stay clickable.

Can I convert HTML to PDF on an Android phone?

Yes. Open this page in Chrome, preview your HTML and choose Save as PDF in the print window.

Related tools