HTML to PDF

Render your HTML and CSS with your browser and save it as a PDF, with selectable text and a page size you choose.

Runs in your browser. Your input is processed on your device and is not uploaded to our server.

Drop an HTML file, or paste belowUp to 25 MB. Processed on your device.
mm

Your browser’s print dialog opens: choose Save as PDF as the destination. Scripts in your HTML do not run.

How to use the HTML to PDF

  1. Paste HTML, or drop an HTML file.
  2. Choose the page size and margins, and check the preview.
  3. Click Save as PDF and choose Save as PDF in the print dialog.

Your own browser renders the HTML, so modern CSS works and text stays selectable. In the print dialog, turn on Background graphics if you need background colours.

For safety, scripts never run. Remote images and stylesheets are blocked unless you allow them; allowing them makes your browser contact those sites. This tool takes HTML code: it does not fetch web pages by URL. The file is processed in your browser and is not uploaded to our server.

Frequently asked questions

Why does it open a print dialog?
That is how a browser creates a PDF from a page. Choose Save as PDF as the destination.
Why does my JavaScript not run?
Scripts are blocked for safety. Paste the final HTML.
Where did my background colours go?
Turn on Background graphics in the print dialog.