The TOOLBeans HTML to PDF converter turns HTML files and code into pixel-accurate PDF documents using your browser's own print engine the very same renderer that displays every web page you visit. Instead of re-parsing your HTML with a JavaScript library, which inevitably misinterprets some CSS, this tool injects print-optimized styles into your document and opens the native print dialog with your content rendered exactly as it appears on screen. The result is a PDF that matches your HTML faithfully, with CSS Grid, Flexbox, web fonts, gradients, box shadows and inline SVG all fully supported.
You can either upload a .html or .htm file or paste HTML directly, and a live preview lets you check the layout before you commit. Page size, orientation, margins, zoom and background colour are all configurable, and you can now add a running header, a footer and automatic page numbers that repeat on every page. When you are happy, one click opens the print dialog where you choose Save as PDF.
Everything happens locally in your browser. Your HTML is never uploaded to a server, which makes the tool fast, private and safe for invoices, contracts, reports and any confidential document. There is no signup, no watermark and no file-size limit.
Most online HTML-to-PDF converters rely on a JavaScript library that reads your HTML, reinterprets the CSS, and paints the result onto a canvas or a PDF document. The problem is that these libraries are reimplementations of a browser's rendering engine, and they always lag behind. Modern CSS features such as Grid, Flexbox, custom properties, clip paths, backdrop filters and advanced font features are frequently rendered incorrectly or ignored entirely. Anyone who has tried to export a nicely styled invoice with one of these tools has seen the layout fall apart.
This converter takes a fundamentally different approach. Because it uses the browser's own print pipeline, the rendering you get in the PDF is identical to what the browser already shows you on screen. There is no second rendering engine to disagree with the first. Whatever your browser can display, it can print, which is why this method produces the highest fidelity output available without any server-side software.
The tool also injects sensible print rules for you, such as preventing images, tables and code blocks from being split across a page break and keeping headings attached to the content that follows them. These small touches turn a raw web page into a document that reads cleanly on paper or in a PDF reader.
Add your HTML
Upload a .html or .htm file, or switch to the Paste tab and paste HTML code. Click Load sample HTML to try it with a ready-made document.
Set the page options
Choose A4, A3, Letter or Legal, pick portrait or landscape, and set the margin. Adjust zoom and background colour if needed.
Add a header or footer
Optionally enter header and footer text and switch on page numbers. These repeat automatically on every page of the PDF.
Preview the layout
Click Preview before converting to see exactly how the document will look, including your page settings, before you print.
Click Convert to PDF
The browser print dialog opens with your HTML rendered as a print preview. Nothing is uploaded; this all happens on your device.
Save as PDF
In the destination dropdown choose Save as PDF, or Microsoft Print to PDF on Windows, then click Save to download your file.
Each setting is translated into a real CSS rule and injected into your document, so it takes effect automatically when you save as PDF. Here is what each one does.
Sets the paper size of the PDF through the CSS @page rule. A4 is the international standard, Letter is common in North America, and A3 or Legal suit larger documents and spreadsheets.
Portrait is taller than it is wide and suits text documents; landscape is wider and suits tables, dashboards and wide layouts. The tool appends the landscape keyword to the page size for you.
Controls the white space around the content, from None for edge-to-edge designs to Wide for formal documents. Leave room when using headers, footers or page numbers so they do not overlap the content.
Scales the whole document up or down. Reduce the zoom to fit more onto each page, or increase it to enlarge small text before printing.
Forces a background colour into the print output. Browsers normally drop backgrounds when printing to save ink, so this option, combined with the exact colour adjustment rule, ensures your chosen colour appears.
These use CSS @page margin boxes, a print feature that places repeating content in the page margins. They are ideal for document titles, confidentiality notices and Page X of Y numbering.
π§Ύ Invoices and receipts
Turn an HTML invoice template into a clean, printable PDF with your styling and totals intact, ready to send to a client.
π Reports and dashboards
Export a styled report or analytics dashboard to PDF, using landscape orientation and a footer with page numbers for a professional finish.
π Documentation
Convert HTML documentation or a styled README into a shareable PDF for offline reading or distribution.
βοΈ Email templates
Save an HTML email or newsletter design as a PDF proof for review or archiving.
π Certificates and forms
Produce certificates, tickets or printable forms from an HTML template with precise page sizing.
π Resumes and CVs
Convert a hand-coded HTML resume into a polished PDF that keeps your fonts and layout exactly as designed.
Unlike server-based converters that upload your document to be processed remotely, this tool does everything inside your browser. Your HTML is rendered in a sandboxed iframe and printed through the browser's own print API, so the content never travels across the network and is never stored anywhere.
That makes it genuinely safe for sensitive material such as invoices with customer details, internal reports, contracts and unpublished work. Because there is no upload step, conversion is also instant and continues to work even if your connection drops after the page has loaded.
Is the HTML to PDF converter free?+
Yes. It is completely free with no signup, no watermark and no file-size limit. Every feature, including headers, footers, page numbers and all page settings, is available to everyone.
Does it support CSS?+
Yes, fully. Because it uses your browserβs native print engine, it supports all modern CSS including Grid, Flexbox, custom properties, web fonts, gradients and shadows exactly as your browser renders them on screen.
How do I save the PDF after clicking Convert?+
Your browserβs print dialog opens. In the Destination dropdown choose Save as PDF in Chrome or Edge, or PDF in Firefox and Safari, or Microsoft Print to PDF on Windows, then click Save.
Are my HTML files uploaded to a server?+
No. The HTML is rendered entirely in your browser using a sandboxed iframe and the print API. Your files never leave your device, so the tool is safe for confidential documents.
Can I add page numbers and a header or footer?+
Yes. Enter optional header and footer text and switch on page numbers. They are injected as CSS @page margin boxes so they repeat on every page. Use a Normal or Wide margin to leave room for them.
Can I convert HTML that uses external CSS and images?+
Yes. The HTML renders in an iframe using your browser, so any external resources it references, such as stylesheets, images and fonts, will load as long as they are accessible online.
Why does my background colour disappear in the PDF?+
Browsers drop backgrounds when printing by default to save ink. This tool sets the exact colour-adjustment rule and lets you force a background colour, so your chosen colour is preserved.
What page sizes are supported?+
A4, A3, Letter and Legal, in both portrait and landscape orientation, with None, Narrow, Normal or Wide margins.
Can I download the HTML instead of printing?+
Yes. Use Download print-ready HTML to save the fully wrapped document, including the print styles and your header or footer settings, as an .html file you can open or print later.
Does it work on mobile?+
Yes. You can paste or upload HTML and print to PDF from a mobile browser, although the print dialog and save options vary slightly between mobile browsers.
For other document conversions see TXT to PDF, SVG to PDF, Image to PDF, Word to PDF and JPG to PDF.