How to use HTML to PDF
- Click "Choose files" or drag your .html or .htm files onto the box. You can add 1 to 5 files, 5 MB each.
- Click "Convert to PDF" to convert HTML to PDF. The files are uploaded over HTTPS and cleaned before conversion.
- Download each PDF when it is ready. Several files give one PDF each, downloaded individually.
- Use "Delete now" if you want the files removed before the automatic deletion.
Features
- Takes .html and .htm files, up to 5 per run and 5 MB each
- Never fetches anything from the internet, it only reads your file
- Removes scripts, frames, forms and external stylesheets before conversion
- Keeps images that are embedded in the file as data URIs
- Keeps the CSS written inside the file, apart from url() and @import
- Links stay clickable in the PDF
- Rendered by LibreOffice, free and without sign-up
- Up to 20 conversions per day, files deleted 1 hour after processing
Supported formats and limits
- Maximum file size: 5 MB
- Up to 5 files at once
- Free limit: 20 conversions per day
Examples
| Input | Result |
|---|---|
| invoice.html with a heading, a table and a paragraph | invoice.pdf with the heading, the table and the text in the same order |
| newsletter.html with a logo embedded as data:image/png;base64,... | newsletter.pdf that shows the logo |
| page.html whose logo is an img tag pointing to logo.png or to a web address | page.pdf without that image, because linked images are removed — Embed the image as a data URI if you want it in the PDF |
Limitations
- It converts files, not web addresses. Nothing is downloaded from the internet, so a page saved from a browser may lose images, styles or content that came from other files or servers.
- Scripts, frames, forms, external stylesheets and linked images (remote or local) are removed. Only images embedded as data URIs appear.
- LibreOffice supports classic HTML and CSS (headings, paragraphs, lists, tables, fonts, colours). Modern layout such as flexbox or grid, and pages built by JavaScript, will look different or be empty.
- Up to 5 files per run, 5 MB each, and 20 conversions per day.
- For a page that must look exactly as it does in your browser, use the browser's own Print and Save as PDF.
Learn more
An HTML file describes a page with tags and style rules, and a browser draws it differently depending on the window size. A PDF does the opposite, it fixes the pages so they look the same everywhere. Converting one into the other means picking a page size and laying the content out on it.
A saved web page usually depends on other things: stylesheets, scripts and images stored in separate files or on other servers. To keep the conversion private and predictable, this tool reads only the single file you upload. Scripts, frames, forms and external stylesheets are taken out, and only images embedded in the file as data URIs are kept. The CSS you wrote inside the file is kept, except url() references and @import rules, because those would point to other resources.
The layout is drawn by LibreOffice, which follows classic HTML and CSS well. Headings, lists, tables, fonts and colours work as expected. Flexbox, grid and content created by JavaScript are not supported. For a modern page, the browser's own Print, Save as PDF gives the most faithful result. After converting, you can combine PDFs with Merge PDF or shrink them with Compress PDF.
Frequently asked questions
Can I convert a web page address to PDF with this tool?
No. This tool only accepts HTML files that you upload, and it never opens a web address. To keep a live page, use your browser's Print option and choose Save as PDF.
Why are the images missing in my PDF?
Images linked to another file or web address are removed for safety. Only images embedded in the HTML file as data URIs, such as data:image/png;base64,..., appear in the PDF.
Why does the PDF look different from my browser?
The conversion uses LibreOffice, which handles classic HTML and CSS but not flexbox, grid or JavaScript-built content. Simple documents convert well, complex web apps do not.
Are the links in my HTML still clickable?
Yes. Links stay clickable in the PDF.
Are my files kept after conversion?
No. They are deleted automatically 1 hour after processing, or at once with "Delete now".
Sources
Last reviewed: October 1, 2026