Subformer
Free · No signup · Runs in your browser
HTML
PDF

HTML to PDF Converter

Convert a saved HTML file to PDF in your browser - email-friendly, print-ready, looks the same everywhere.

Why convert HTML to PDF?

HTML to PDF is the conversion for archiving a web page, sharing a styled report, or making web content printable. PDFs preserve layout precisely across devices, print cleanly, and don't require the recipient to navigate to a URL. This page is best for self-contained HTML (a single .html with inline CSS / data URIs) - external CSS, fonts, and images won't load because we run with no network access during conversion.

We render your HTML in an offscreen iframe at 816px wide (matching US Letter), rasterize with html2canvas at 2x, then slice the result into US-Letter pages and embed each as a PNG in a PDF. The output is a raster-inside-PDF, not a vector PDF - meaning fonts won't be searchable text. For full vector fidelity, a desktop tool like wkhtmltopdf or headless Chrome is more accurate.

HTML

About HTML

HTML (Hypertext Markup Language) is the language of the web. Every page you read in a browser is HTML. Self-contained HTML files (no external assets) are portable and accepted everywhere.

PDF

About PDF

PDF is the universal document format - looks the same on every device, prints reliably, and is the canonical way to share images that should stay fixed in layout.

How to convert HTML to PDF

  1. 01

    Drop your HTML file

    Drag a HTML onto the converter above, or click the box to pick one from your device.

  2. 02

    PDF is already selected

    We've preselected PDF as the output format. Change it from the dropdown if you want a different target.

  3. 03

    Convert and download

    Click Convert and wait for the progress bar to finish. Download the PDF when it's ready.

HTML to PDF FAQ

See all formats →