Skip to content
PDFbisAll tools

Convert HTML to PDF

Paste HTML or drop an .html file and get a PDF.

HTMLPDF

or drop them here

Processed on your device. Nothing is uploaded.

Convert HTML to PDF by pasting code or dropping in an .html file. Headings, paragraphs, links, lists, tables and images are kept, giving you a document that’s easy to save, print or attach to an email. It suits email templates, saved web pages, generated reports and invoice markup.

The HTML is turned into a PDF by your own browser. It isn’t uploaded, which matters when the markup contains customer data, internal reports or anything you’d rather not hand to a third-party server.

It’s free, needs no account and doesn’t add a watermark. You can paste markup or drop several .html files in one batch, and each file comes out as its own PDF in the page size you choose: A4 or US Letter.

How to use HTML to PDF

  1. Add your HTML

    Paste HTML code into the text box, or drop .html or .htm files onto the page.

  2. Choose a page size

    Under Page size, select A4 or US Letter to match where the PDF will be printed.

  3. Click Convert to PDF

    Press Convert to PDF to render the HTML as pages.

  4. Download the PDF

    Save the result to your device.

What the converter keeps from your HTML

The tool reads the structure of your document and lays it out as PDF pages. Headings, text, links, lists, tables and images are kept. It works best with document-style HTML: reports, articles, receipts and templates.

Complex web-app layouts, scripts and interactive elements don’t translate to a static page, and advanced CSS may be simplified. Images need to be reachable from the browser, so full URLs or embedded images work better than relative paths to files on your computer.

Saving a web page as PDF

To save a page you’re looking at, your browser’s own print dialog is often the easiest route: press Ctrl+P (Cmd+P on a Mac) and choose Save as PDF as the destination. That captures the page as it appears on screen.

Use this tool when you have the HTML source rather than a live page, for example a downloaded .html file, a template from your email platform or markup produced by a script.

Pages you saved earlier with your browser’s Save Page As option also work, as long as their images are still reachable online.

Paste HTML code and get a PDF

Developers and marketers often need a quick PDF of a snippet without building a page around it. Paste the markup straight into the box, from a full document with <html> and <body> tags or just a fragment, and convert. There’s no library, headless browser or API key to set up.

Because it runs locally, it’s also a handy way to check how a template prints before wiring up a server-side PDF library in your own app.

Questions people ask

Is HTML to PDF free?

Yes, completely. There’s no account to create and no watermark on the PDF.

Is my HTML uploaded to a server?

No. The conversion runs in your browser and your code stays on your device.

Can I convert a website URL to PDF?

This tool works from HTML code or files, not URLs. To save a live page, use your browser’s Print option and choose Save as PDF.

Are CSS styles supported?

Basic styling comes through, but complex layouts and advanced CSS may be simplified. Document-style pages convert most faithfully.

Do images show up in the PDF?

Yes, as long as the browser can load them. Use full image URLs rather than paths to files on your own computer.

Can I paste HTML code instead of a file?

Yes. Paste it into the text box and click Convert to PDF.

Can I convert an HTML email template to PDF?

Yes. Paste the template’s code or drop the .html file. Table-based email layouts usually convert well, though some inline styling may be simplified.