HTML to PDF
Paste HTML code or choose an .html file, then save it as a PDF. Scripts are removed for your safety.
Your HTML is converted in your browser and is never uploaded.
How to convert HTML to PDF
- Paste your HTML code into the box, or choose an .html file.
- Pick A4 or Letter and a margin.
- Click Download PDF to get a PDF made of page pictures.
- Or click the print button and choose Save as PDF, which keeps the text selectable.
Two ways to save, and what to expect
- Download PDF draws each page as a picture, so the look is kept but the text cannot be selected or searched.
- The print button opens your browser print window. Saving from there gives a PDF with real, selectable text.
- Scripts, forms, frames and external stylesheets are removed. Put your CSS inside a style tag.
- Images must be embedded in the code as data URIs. Images that load from other websites do not appear.
- Pages are cut at a fixed height, so a line of text can be split between two pages.
- This is tested in Chrome. Other browsers can differ, and if drawing fails the print button still works.
Frequently asked questions
Is my HTML uploaded? No. It is drawn in your browser and never leaves your device.
Can I convert a web page by its address? No. A browser cannot fetch other sites. Save the page as an .html file or copy its code, then paste it here.
Why are my images missing? Images linked from other sites are blocked. Embed them in the code as data URIs so they can be drawn.
Why can I not select the text in the downloaded PDF? That PDF is made of page pictures. Use the print button and save from the print window to get selectable text.
Is it free? Yes, with no sign-up and no limit on how many files you convert.
Related tools
- Markdown to PDF – Convert .md Files and Notes to PDF Free
- Text to PDF – Convert Text into a PDF File
- PDF to HTML – Convert PDF Text to Clean HTML Free
- Word to PDF
Learn more in our guide: 9 New Free PDF Converters: Which One Do You Need? (Honest Results and Limits).