Skip to content
ConvertNicely
Free

Convert HTML to PDF

We render it in headless Chromium — the engine behind Chrome — then print the result to PDF. Layout, CSS, tables and web fonts are handled the way a real browser handles them.

Also known as: HTM to PDF · HTML file to PDF

Files up to 20 MBTypically under a minute

Encrypted upload · deleted right after conversion

Your files are deleted automatically

Uploads are removed as soon as processing finishes, and converted files are deleted after 1 hour. Read our privacy policy.

How to convert HTML to PDF

  1. Step 1

    Add your HTML file

    Drag your HTML file into the box, or choose it from your device. It can be up to 20 MB.

  2. Step 2

    Choose your settings

    Adjust Page size (A4), Orientation (Automatic) and Include backgrounds (on), or keep the starting values in brackets, which suit most files. More are under Advanced options.

  3. Step 3

    Press Convert to PDF

    The work happens on our servers, and you can follow its progress.

  4. Step 4

    Download your PDF file

    Your upload is already deleted, and the result is deleted after one hour.

Worth knowing

Only the uploaded HTML file is processed. Stylesheets, scripts and images referenced by a local relative path are not available — inline your CSS or use absolute URLs for the best result.

Why convert HTML to PDF?

  • Producing PDF invoices or reports from an HTML template
  • Converting an exported email or report file into a document
  • Turning a static site page into a printable handout
  • Generating documentation PDFs from build output

HTML vs PDF

Comparison of HTML and PDF
PropertyHTMLPDF
LayoutReflows to fit any windowFixed pages with set breaks
ScriptsRun every time it opensRun once, before printing
Opening itA browser, plus any linked filesAny PDF reader, one file
Best forTemplates and web pagesInvoices, reports and printing

Frequently asked questions

Page updated

All Web converters

Save any public web page as a clean PDF, rendered by a real browser engine.

Render an HTML file into a PNG screenshot, full page or visible area.

Convert Word documents to PDF so they look the same for everyone who opens them.

Turn plain text files into cleanly typeset, paginated PDF documents.