HTML to PDF Converter
Turn an HTML file, or HTML code you paste in, into a PDF on A4 or Letter pages: handy for invoices, reports and email templates. The HTML is laid out in your browser the way it would print, and nothing is uploaded.
Drop HTML files here
or click to choose files. You can also paste HTML code below.
Your settings are remembered in this browser.
Converted on your device. Files are never uploaded.
of processed ( failed)
-
Waiting Converting
At a glance
Updated
- Input
- HTML files (.html, .htm) or pasted HTML code
- Output
- PDF on A4 or US Letter pages with half-inch margins
- Styles
- CSS in the file and stylesheets or web fonts it links to are used. Scripts are not run
- Images
- Images embedded in the file always show; images from other websites show when the website allows it
- Text in the PDF
- Part of a picture of each page, so it cannot be selected or searched
- Page limit
- Up to 100 pages per document
- Size limit
- Up to 20 MB per file
- File upload
- None. Files are converted in your browser and stay on your device
- Price
- Free, with no sign-up and no watermark
- Batch
- Several files at once, with a Download all button
How to use the HTML to PDF Converter
-
01
Add your HTML
Drop .html files onto the box above, or paste HTML code into the box below it and press Convert to PDF.
-
02
Pick a page size
A4 or Letter, with half-inch margins. The HTML is laid out at the width of the page.
-
03
Download the PDF
Long HTML continues over several pages, cut between lines of text.
Frequently asked questions
Is my HTML uploaded to a server?
No. The HTML is laid out and drawn inside your browser on your own device. Only the images, fonts and stylesheets that your HTML links to are loaded from the web, as they would be when you open the file.
Is JavaScript in my HTML run?
No. The HTML is shown in a frame with scripts switched off, so a page that builds its content with JavaScript comes out empty or incomplete. Paste the finished HTML instead.
Why are some images missing?
An image with a relative path, such as logo.png, points to a file next to the HTML on your computer, which the browser cannot reach. Use full web addresses (https://) or embed the images in the HTML. Some websites also block their images from being drawn on other pages.
How are long pages split?
The HTML is cut into pages from top to bottom. Each cut is moved to an empty gap between lines, so lines of text are not cut in half.
Can I select the text in the PDF?
No. Each page is saved as a picture of the document, which keeps the layout but means the text cannot be selected or searched. If you need the text, run the PDF through Image to Text (OCR).