PDF Tools

HTML to PDF Converter: Save HTML Files in PDF Format

Convert an HTML file to PDF with its layout, CSS styles, tables and embedded images kept. Choose A4 or US Letter, portrait or landscape, and convert up to 5 files at once. Each file is cleaned of scripts and outside links, printed to PDF on our server and deleted at once.

01

Your inputs

Choose your file, then set the options.

Maximum 25 MB per file. Up to 5 files at a time. Converted on our server and deleted right away.

Converted on our server and deleted right away. Nothing is stored.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the HTML to PDF Converter

Choose one or more .html or .htm files, pick the page size and orientation, then press Create PDF.

Read more: How to Use the HTML to PDF Converter: Step by Step Guide

Saving a web page in PDF format

In the browser, use Save page as and choose Web page, HTML only or Single file, then convert that file here. For a page you can open, the browser print dialog with Save as PDF is another option; this tool gives the same clean print layout for files you have on disk, such as exported reports, invoices and email templates.

What is kept and what is removed

Headings, text, tables, colours, backgrounds and styles in the file are kept, as are images built into the HTML as data URLs. For safety, scripts, frames and anything loaded from other addresses are removed before printing, so linked images, web fonts and pages drawn by JavaScript do not appear.

Page breaks and print styles

Print styles in the file are used. Add page-break-before: always to an element to start a new page there, or use an @page rule to set your own margins.

How it works

Scripts and outside addresses are removed, then the page is printed to PDF by Chromium on our server

Examples

  • Worked example
    Turn a saved invoice, an exported report or an HTML email template into a PDF you can print or attach.

Limitations and assumptions

Upload saved .html files; web addresses cannot be fetched. Images and fonts linked from other sites or other files are left out; images built into the file as data URLs are kept. Scripts do not run, so pages that draw their content with JavaScript come out empty. Up to 5 files at a time, 25 MB each.

Frequently asked questions

Can I convert a URL to PDF?

Not here: save the page as an HTML file first, then convert it. The converter does not open web addresses.

Why are some images missing?

Images linked from other sites or files are not loaded. Embed them in the HTML as data URLs to include them.

Is my file stored?

No. It is sent over HTTPS, converted in memory and deleted as soon as the PDF is returned.