HTML to PDF
Convert HTML files to PDF with full styling preserved.
HTML to PDF at a glance
The essentials before you convert.
- Price
- Free, with no watermark. No sign-up needed. A free account converts up to 3 HTML files or links at once.
- Input
- HTML files, pasted code or a link. Upload .html, .htm or .xhtml files, paste HTML code, or enter a web address.
- You get
- A PDF rendered by a real browser. Modern CSS, web fonts and JavaScript are supported. Pages are A4 with 15 mm margins.
- Limits
- 1 file up to 80 MB without an account. With a free account: 3 files at once, 80 MB each, 120 MB in total. Pasted code converts one page at a time.
- Works on
- Any browser, nothing to install. Windows, Mac, Linux, Chromebook, iPhone and Android.
- Privacy
- Rendered on our server, then deleted. Each page loads in an isolated browser; files are removed automatically within one hour.
How to convert HTML to PDF
Why use our HTML to PDF converter
Frequently asked questions
How do I convert an HTML file to PDF for free?
Upload your .html file in the box above, or switch to pasting code or entering a link, and convert. You download a PDF of the rendered page. It's free, with no watermark and no sign-up.
Can I paste HTML code and get a PDF?
Yes. Choose HTML code, paste your markup including any CSS in style tags, and convert. It's handy for invoices, reports and templates you generate yourself.
Does it support CSS, web fonts and JavaScript?
Yes. Pages are rendered by Chromium, the engine behind Chrome, so flexbox, grid, web fonts and JavaScript work as they do in a modern browser. Scripts run before the PDF is captured, so charts and dynamic content appear.
Why are the images missing from my PDF?
Images and stylesheets on the web, linked with full https addresses, load normally. Files referenced from your own computer, such as images in a local folder, can't be reached by our server. Use full web addresses or embed images directly in the HTML as data URIs.
How do I convert a saved Chrome HTML document or an HTML invoice to PDF?
Upload the .html file you saved or received, such as an e-mail receipt or an electronic invoice, and convert it. If it shows images from the web, they load as long as they're still online.
Can I convert a web page link to PDF?
Yes. Choose From URL and paste the address. For saving web pages there is also a dedicated tool, Web Page to PDF, with more page-size options.
What page size and margins does the PDF use?
HTML files and pasted code are converted to A4 pages with 15 mm margins. Long pages flow onto as many pages as needed. Use CSS such as page-break-before to control where pages break.
Can I save HTML as PDF on iPhone or Android?
Yes. Open this page in Safari or Chrome, upload the HTML file or paste the code, and convert. The PDF is saved to your downloads; no app is needed.
Can I convert several HTML files at once?
With a free account you can convert up to 3 HTML files or 3 links at once (files 80 MB each, 120 MB in total). Each becomes its own PDF, and you can download them all together.
Can I convert pages on localhost or my company intranet?
No. For security, our server only loads public web addresses; private, local and internal network addresses are blocked. Save the page as an .html file and upload it instead.
Is the PDF editable?
The PDF keeps the page's layout and text, so the text can be selected and searched. To change wording afterwards, open it in Editly, or edit the HTML and convert again.
Are my files kept private?
Yes. Files are sent over an encrypted HTTPS connection, rendered in an isolated browser on our server and deleted automatically within one hour. They aren't shared with anyone or used to train AI.