This HTML to PDF tool lets you convert HTML to PDF online. Paste your code or open an .html file, check the live preview, then download the PDF or print it to PDF. It suits anyone who needs a quick PDF from a receipt, an email template or a simple web page, and it is free to use.
How do you convert HTML to PDF with this tool?
- Add your HTML. Paste the code into the editor, or open an .html file from your device.
- Check the preview. The live preview shows how the page will look. Fix any problems in your code and the preview updates.
- Choose a page size. Pick the paper size that fits where the PDF will be used.
- Export. Use "Download PDF" to save a file straight away, or "Print / Save as PDF" to use your browser's print dialog.

When you are done here, you might also want the Markdown to PDF or the Text to PDF.
Your HTML is processed in your browser, so nothing is uploaded to a server.
What is an HTML to PDF converter good for?
It works best on self-contained, simple pages. Here are some real examples:
- Receipts and invoices. Paste the HTML from an order confirmation and keep a PDF copy for your records.
- Email templates. Turn a finished template into a PDF to send to a client for approval.
- Simple web pages. Save a small landing page or a document written in HTML as a file you can share.
- Quick drafts. Test how a block of HTML code to PDF output looks before you use it elsewhere.

Download PDF or Print / Save as PDF: which should you pick?
The two export methods give different results. The main difference is whether you can select the text.
| Method | Text in the PDF | Pick it when |
|---|---|---|
| Download PDF | Image-based pages, text not selectable | You only need a quick copy to view or send |
| Print / Save as PDF | Selectable text | You need to copy text from the PDF |
If you are unsure, start with Print / Save as PDF. You can always try the other method afterwards and compare.
Tips for best results
- Use inline styles. This tool is built for HTML with inline styles, so put your CSS directly on the elements.
- Keep it self-contained. External images and fonts may not load, so a picture that sits on another server can go missing.
- Stick to common fonts. A familiar font such as Arial or Georgia is safer than a web font you link to.
- Skip scripts. Scripts are not run, so anything built by JavaScript will not appear. Use plain HTML for the content you need.
- Check the preview first. If something looks wrong there, it will look wrong in the PDF too.
- Set the page size before exporting. Changing it afterwards means exporting again.
Why does my PDF look different from the original page?
Usually the cause is something the tool cannot load or run. A few common situations:
- Missing images. The image is probably hosted elsewhere. Replace it or remove it.
- Wrong fonts. A linked web font did not load, so a default font was used instead.
- Empty sections. Content created by a script does not run here. Put the final content directly in the HTML.
- Text you cannot select. You used "Download PDF", which creates image-based pages. Export again with "Print / Save as PDF".
Can you save an HTML file as a PDF without installing anything?
Yes. This works in your browser, so there is nothing to install. Open your .html file, review the preview and export. Because the file stays on your device, it is a reasonable option for documents you would rather not upload.
What if you only have a website address?
This tool cannot fetch a page from a URL, because browsers block reading other websites. Open the page yourself, then use your browser's Print option and choose Save as PDF. If you have the page's HTML code or a saved .html file, you can paste or open that here instead.
