HTML to PDF converter: save HTML code or files as PDF
Convert HTML code or an .html file to a PDF for free. Paste your HTML, preview it and download a PDF, all in your browser.
How to use the HTML to PDF tool
- Paste HTML code or choose an .html file.
- Check the preview and pick a page size.
- Download the PDF.
Private by design: this tool runs in your browser, so your files never leave your device.
Pages are saved as sharp images, so text in the PDF can't be selected. Scripts don't run, and images or fonts from other websites may not show because browsers block that for safety. To save a live web page, use your browser's Print → Save as PDF.