Skip to content
All tools

HTML to PDF Converter

Convert HTML files or snippets into a PDF document.

Convert an HTML file or a snippet of HTML into a PDF document. The converter reads the structure of the page, such as headings, paragraphs, lists, tables, links and embedded images, and lays it out on A4 pages with real, selectable text.

It is useful for saved web pages, exported reports, email templates and simple documents written in HTML.

How to convert HTML to PDF

  1. Drop your .html file on the page, choose it from your device, or paste HTML into the box.
  2. Select Convert to PDF.
  3. Download the PDF. It is named after your file, or “document” for pasted HTML.

Why no upload matters

Saved pages and HTML exports can contain account details, order histories or internal reports. The HTML is converted in your browser and is never uploaded. The converter also does not load anything from the web while it works: scripts and external files in the HTML are removed, not run.

What converts well

  • Headings, paragraphs, bold and italic text, lists and block quotes.
  • Tables, which are stretched to the page width with header cells in bold.
  • Links to web pages and email addresses, which stay clickable in the PDF.
  • Images embedded in the HTML as data. Formats such as GIF, WebP and BMP are converted so they can be included.
  • Text in many writing systems, using matching fonts loaded from this site.

Limits

  • The PDF is rebuilt from the HTML structure, not from how the page looks in a browser. CSS styles, page layouts, colours set in CSS and web fonts are not applied.
  • Images linked by a web address or a file path are left out, because nothing is downloaded. The tool tells you how many were skipped.
  • Scripts, forms, videos, iframes and inline SVG drawings are removed.
  • Pages are always A4. To keep the exact look of a web page, use your browser’s print function and save as PDF.

Frequently asked questions

How do I convert an HTML file to PDF?

Drop the .html file on this page, or paste the HTML, and select Convert to PDF.

Can I convert a website by entering its address?

No. The converter does not download pages from the web. Save the page as an HTML file first, or paste its HTML.

Why does the PDF look different from the page in my browser?

CSS is not applied. The converter keeps the content and structure, such as headings, lists and tables, and gives them a simple, consistent style.

Is my HTML uploaded?

No. The conversion happens in your browser on your own device, and the HTML is not sent to a server.

What happens to scripts in the HTML?

They are removed before conversion and never run. External files such as style sheets and remote images are not fetched either.

Can I turn a PDF into a web page?

Yes. PDF to HTML converts a PDF into a single HTML file.