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.
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
- Paste HTML, or drop an HTML file.
- Choose the page size and margins, and check the preview.
- 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.