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.
- Add
- Adjust
- Make
- Keep
How to use this tool
- Paste HTML into the editor or upload a .html/.htm file — the source is sanitized before anything is rendered.
- 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.
- Toggle print backgrounds and adjust the scale if the content runs too small or too large on the page.
- 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.