Paperlane
Install app

In your browser menu, look for the option labeled “Add to Home Screen” or “Install app”.

HTML to PDF

Convert HTML or a web page to PDF free, entirely in your browser — paste markup or a URL and get a print-ready PDF of the rendered page.

  1. Add
  2. Adjust
  3. Make
  4. Keep
Loading tool…

How to use this tool

  1. Paste HTML into the editor or upload a .html/.htm file — the source is sanitized before anything is rendered.
  2. Choose a page format (A4, Letter, or Legal), orientation, and margins; margins can be a preset (none/normal/wide) or a custom value in millimeters.
  3. Toggle print backgrounds and adjust the scale if the content runs too small or too large on the page.
  4. Review the before-download preview of the sanitized render, then download the PDF.

About this tool

Convert HTML or a web page to PDF free, entirely in your browser — paste markup or a URL and get a print-ready PDF of the rendered page. Nothing is uploaded to a server; rendering happens locally, and the finished PDF downloads straight from your device.

Privacy & limitations

This is not a full browser engine: JavaScript never runs, and external network resources — remote images, fonts, stylesheets, frames — are not fetched (the external-asset policy strips them before rendering). Complex modern CSS (flexbox/grid edge cases, remotely loaded custom fonts, animations, and pseudo-element trickery) may render differently than in a real browser. Only same-document data: images are displayed; any image that must be downloaded from a URL will not appear.

Last updated:

Frequently asked questions

How do I convert HTML to PDF?

Paste your HTML into the box or upload an .html file, choose A4, Letter or Legal, orientation and margins, then convert. You can also set the scale and whether to print background colours. The PDF is built in your browser, so your markup is never uploaded.

Does JavaScript run, and are images and fonts loaded?

No. Scripts never run, and anything that must be fetched from the network, such as remote images, web fonts, stylesheets and frames, is stripped rather than loaded. Inline styles and images embedded as data: URLs are rendered, so inline the assets your page needs.

Why does the PDF look different from my browser?

This is not a full browser engine. Complex modern CSS, edge cases in flexbox and grid, animations and downloaded custom fonts may render differently from Chrome. For the closest result, use simple layouts with inline CSS and check the output before sharing it.

Can I convert a live web page by entering its URL?

No. The tool never fetches web addresses. Save the page as an HTML file, or copy its markup, then paste or upload it. Note that content the page loads through scripts or from other sites will not be included in the PDF.

Can I set HTML to PDF margins in millimeters?

Yes. Margins can be a preset or a custom value in millimeters. The presets are none at 0 mm, normal at 12.7 mm and wide at 25.4 mm. A raw number is taken as the margin in millimeters directly, so you can match a style guide or an existing document layout.

Which page sizes and scale values can I use for HTML to PDF?

You can pick A4, Letter or Legal, in portrait or landscape. Scale runs from 0.5 to 2 with a default of 1, where 1 fits the content to the page width. You also get margin presets or a custom value in millimetres, and a preview of the sanitized render before you download.

Are background colors and images included by default?

No. Print backgrounds is off by default. Turning it on includes background colors and background images in the rendered PDF, mirroring what a browser print dialog does. Images loaded from a remote URL are not fetched at all, so only images already present in the document can appear.