Drop your files here
Drag in one file or a whole batch · click to multi-select
HTML files · or drop a folder
PDF Type
Page size
Image fit
Orientation
Margin
10 mmDrag files in the queue to set page order.
Output
Watermark
Password
Metadata
Source dimensions (px)
W
H
One field = aspect ratio preserved.
Output filename
Saved as converted.pdf
Enter to start · Esc to stop
All processing happens locally in your browser. No files leave your device.
How to convert HTML to PDF
- 1
Drop or select your HTML file
Click the upload area or drag your .html or .htm file onto it. The converter reads the file locally | nothing is sent to a server.
- 2
Adjust settings if needed
Use the Page Size setting to fit your HTML onto A4 or Letter pages. The default renders the HTML at its natural width and height.
- 3
Download your PDF
Click Convert to PDF. The HTML is rendered in your browser and exported as a PDF | what you see is what you get.
What this converter is great for
This tool is designed for self-contained HTML files | pages where all styles are inline or in a <style> tag, and images are embedded as base64 data URIs. Common use cases include:
- Email templates you want to archive or share as a document
- Invoices and receipts generated as HTML
- Simple reports or dashboards exported from a CMS
- HTML prototypes or mockups you need to hand off as PDF
Limitations to know about
Because this runs entirely in your browser, some things cannot be reproduced:
- External images or fonts may not load due to browser CORS restrictions | embed them as base64 for best results
- JavaScript in the HTML file is stripped before rendering for security
- Complex CSS like animations, fixed positioning, or viewport-relative units may render differently
- The converter renders the full page height | it does not paginate content across multiple PDF pages
For best results, use self-contained HTML with inline or embedded styles and base64-encoded images.
Frequently asked questions
Is this HTML to PDF converter free?
Yes, completely free with no file size limits or account requirements. It runs entirely in your browser.
Is my HTML file uploaded to a server?
No. The file is read and rendered locally using your browser's rendering engine and the html2canvas library. Nothing leaves your device.
Why are my images missing in the PDF?
Images loaded from external URLs are often blocked by the browser's CORS policy when rendered off-screen. Embed your images as base64 data URIs inside the HTML to ensure they appear.
Can I convert a web page URL to PDF?
No | the browser's security model prevents fetching and rendering arbitrary URLs client-side. You need to save the page as an HTML file first (Ctrl+S / Cmd+S in your browser), then drop that file here.
The output looks different from my browser | why?
html2canvas renders a snapshot of the DOM rather than using the browser's print engine. Some CSS features behave differently. For pixel-perfect output, self-contained HTML with explicit dimensions works best.
Can I convert multiple HTML files at once?
Yes | drop multiple HTML files and they will each be rendered as a page in the output PDF. Drag them in the queue to control the page order.
