ZapKit

HTML to PDF

Turn a saved web page, an email template, a report or any HTML you've written into a PDF. Paste the code or choose the file, check the live preview, and save.

What is an HTML to PDF converter?

An HTML to PDF converter prints web content to a fixed document. Developers use it for invoices and reports generated as HTML, marketers for email templates, and anyone for keeping a copy of an article or receipt.

Because this converter uses the browser's own rendering engine, modern CSS such as flexbox, grid and custom fonts works as it does on screen. The preview is live, and paper size, orientation and margins can be changed before saving, so you see exactly where pages will break.

How to use the HTML to PDF

  1. 1.Add HTML

    Choose an .html file or paste code into the box.

  2. 2.Set the page

    Pick paper, orientation and margins and watch the preview update.

  3. 3.Save as PDF

    Press Save as PDF and pick Save as PDF as the printer.

Example: an HTML invoice template

An invoice built with HTML and CSS by a billing script:

Input
pasted HTML with a <style> block
Paper
A4 portrait, normal margins
Links
still clickable in the PDF

A one-page PDF invoice that matches the HTML design, with selectable text for the customer's accounts team.

Rendered by your browser

The HTML is drawn by your own browser exactly as a web page would be, with its CSS, fonts and images, then printed to PDF with real text and working links. Print stylesheets (@media print) and page-break rules in your CSS are respected.

Scripts are switched off in the preview for safety, so pages that build their content with JavaScript will look empty. Images and fonts linked from the web load if they're publicly reachable.

Frequently asked questions

Can I convert a website by its URL?

Browsers don't let one site load another's pages, so save the page first (Ctrl+S, Web page complete) or open it and use your browser's own Print › Save as PDF.

Will my CSS work?

Yes, both inline styles and <style> blocks, including @media print rules.

How do I force a page break?

Add style="page-break-before: always" (or break-before: page) to the element that should start a new page.

Is the code sent anywhere?

No. It's rendered on your device.

More PDF tools