Convert an HTML file to PDF
Render an .html file into a paged A4 PDF.
Files stay on your device. No accounts. Free.
Loading tool...
About this tool
Renders your .html file visually, inline styles included, then slices the result across A4 pages. Good for invoices, reports, receipts and pages you want frozen as documents.
Rendering uses html2canvas plus jsPDF inside your browser. Very complex layouts may differ slightly from the browser's own print dialog, but the file itself never leaves your machine.
How it works
- Drop your file(s), they are read locally on your device.
- Set the options you need and run the tool.
- Download the finished PDF, images or text.
Frequently asked questions
Will my CSS styles show up in the PDF?
Inline styles and style tags inside the file are rendered. External stylesheets referenced by URL may not load, so for best results save the page as a self-contained HTML file first.
How is this different from pressing Ctrl+P in the browser?
The print dialog is actually excellent for one-off jobs. This tool is for when you want a repeatable A4 render of an .html file as a downloadable document without fiddling with print settings each time.
Why does my complex page look slightly different in the PDF?
The page is rendered by html2canvas, which reimplements browser drawing and handles most, but not all, modern CSS. Simple documents come out identical; heavy layouts with exotic CSS may shift slightly.