Free HTML to PDF

HTML to PDF converter, free and private

Drop an .html file or paste code and save it as a clean PDF. Pick A4, US Letter or 16:9, choose margins, and get either real selectable text (print) or a pixel-perfect one-click download. Nothing is uploaded.

  • ✓ Free, unlimited
  • ✓ No sign-up
  • ✓ No watermark
  • 🔒 Your files never leave your device

Files

Or paste HTML code

🔒 Runs in your browser. Your files never leave your device.

PDF

Page size
Orientation
Margins
Advanced options
Image quality

Fixes for AI-generated pages

Print = selectable text and small file (choose "Save as PDF" and tick "Background graphics"). Download = one click, pixel-perfect pages, text not selectable.

Free tool by Dawwerni: gamified loyalty for businesses

How to convert HTML to PDF

  1. Drop your .html file (or a .zip with its images and CSS), or paste the HTML code.
  2. Check the live preview: the converter waits for fonts, scripts and charts, then shows every page.
  3. Choose the page size (A4, Letter, 16:9), orientation and margins.
  4. Click Print / Save as PDF for selectable text, or Download PDF for an exact visual copy.

Tips for a better PDF

  • Reports and articles: use Print / Save as PDF, it keeps text searchable and the file small.
  • Designed pages, dashboards and decks: Download PDF keeps the design pixel for pixel.
  • Dark designs: set margins to None so the dark background reaches the edges.
  • Add break-before: page to an element in your HTML to force a new page exactly there.
  • Keep the desktop layout: the layout width (Auto = 1280 px) is scaled to the page width.

Download PDF or Print to PDF?

Print / Save as PDF

Uses the browser’s print engine: real, selectable and searchable text, small files, links kept. Best for reports, articles and documents.

Download PDF (one click)

Each page is a high-resolution picture of the page exactly as it looks on screen. Text is not selectable. Best for designed pages, dashboards and slide decks.

Common problems and how the converter fixes them

Web fonts missing (Google Fonts, icon fonts)
The converter waits for document.fonts.ready before capturing. If a font still loads late, raise "Wait before capture" to 2–3 seconds.
Charts are blank or half drawn (Chart.js, D3, ECharts)
Chart.js animations are switched off right before capture and the page gets a settle delay. For heavy dashboards, wait 2–4 seconds.
Tailwind CDN page looks unstyled
The Tailwind Play CDN builds its CSS in the browser after load. The default 1.5 s wait covers it; slow connections may need 3 s.
Sections set to 100vh are giant or squashed
The page is rendered in a fixed viewport (1280 × 720 by default, or the size of your slides), so vh units stay stable on every page.
The header repeats on every page or hides content
Fixed and sticky elements are shown once, at their place at the top, instead of being stamped on every page.
Dark background turns white
Backgrounds are captured as they are; in Print mode the converter forces print-color-adjust: exact. With dark pages, use margins "None" so the page edge is dark too.
Content that appears on scroll stays invisible
The converter scrolls through the page first (scroll-reveal and lazy images load), then freezes CSS animations at their final state.
Images from other websites are missing
The one-click download can only draw images whose server allows it (CORS). Use Print / Save as PDF, or put the images in a .zip with the HTML.

Private by design: nothing is uploaded

Most "online converters" upload your file to their server. This one does not: the HTML is opened inside your browser, in a sandboxed frame, and the PDF, PowerPoint, images, Word or Markdown file is built on your device. There is no server to send it to.

The sandbox lets the page run its own scripts (charts, Tailwind, slide decks) but blocks it from reading this site, your cookies or your storage, from opening pop-ups and from navigating away. Fonts, CDN scripts and images that your page itself links to are downloaded by your browser, exactly as when you open the file.

Guides

Frequently asked questions

Is this HTML to PDF converter really free?

Yes. There is no limit, no sign-up and no watermark. The conversion runs on your own device, so it costs us nothing to run, which is why it can stay free.

Is my HTML uploaded to a server?

No. The file is opened in a sandboxed frame inside your browser and the PDF is generated there. Only the fonts, scripts and images your page links to are downloaded, as when you open the file normally.

Can I get selectable text in the PDF?

Yes, with Print / Save as PDF: it uses your browser’s print engine, so text stays selectable and searchable. The one-click Download PDF creates image pages, which look identical to the screen but are not selectable.

How do I convert an HTML file with images and CSS files?

Put the HTML and its folders in a .zip and drop the zip. Relative paths (img/logo.png, css/style.css, fonts) are resolved inside the zip, in your browser.

Why does my PDF look different from the browser?

Usually because fonts, charts or the Tailwind CDN were not ready yet, or because of 100vh sections and fixed headers. Raise the wait time to 2–3 seconds; the fixes for animations and headers are on by default.

Does it work on a phone?

Yes, in recent mobile browsers. Very long pages or many slides use a lot of memory, so a computer is faster for big files.

Other free HTML converters

Made by Dawwerni

We build gamified loyalty for cafés, restaurants and shops: customers scan a QR code, play a short game and come back. These converters are free and stay free.

See what Dawwerni does →