FreePDFTools logoFreePDFTools

HTML to PDF

Convert HTML to PDF online for free. Paste HTML or upload an .html file and download a multi-page PDF. Pages are pictures of your HTML, so text isn't selectable. Free and private.

Paste your HTML

0 characters • 0 B • Limit 2 MB

Pages are pictures of your HTML, so text in the PDF isn't selectable or searchable. Pictures hosted elsewhere usually come out blank, and web fonts usually fall back to system fonts. Inline styles and embedded pictures work best. Documents up to about 14 pages render in one go.

How to use HTML to PDF

1

Paste or upload your HTML

Type or paste HTML into the editor, or upload an .html file to load it.

2

Convert to PDF

Your HTML renders at A4 width, then gets sliced into A4 pages.

3

Download the PDF

A multi-page PDF downloads instantly, no account needed.

Why use this tool?

  • Turn web pages, invoices and notes into PDFs fast.
  • Inline styles carry over to the PDF.
  • Runs fully in your browser.
  • Free, no signup, no watermark.

Good to know

  • Each page is a picture of your rendered HTML, so you can't select or search the text in the PDF.
  • Pictures hosted on other sites usually come out blank unless the site lets other pages read them. Embed pictures in the HTML itself and they always show up. Web fonts usually fall back to a plain system font.
  • Scripts and linked stylesheets are stripped out before rendering, so what you see is what the PDF gets.
  • HTML over 2 MB gets refused. Split a long document at a heading and convert each part on its own.
  • Documents up to about 14 pages render in one go. Longer ones are refused with a clear message, so split them at a heading first.

Frequently asked questions

Is the text in the PDF selectable?

No. Each page is a picture of your rendered HTML, so you can't select, copy or search the text in the PDF.

Do external images load?

Usually not. A picture hosted on another site comes out blank unless that site lets other pages read it. Say your page links a logo from example.com: that logo usually won't show up. Embed the picture in the HTML itself as a data URI and it always will.

Do web fonts work?

No. Only fonts already on the device show up. If your HTML asks for a web font like Roboto from Google Fonts, you'll get a plain system font instead, usually Arial.

Can I convert a full HTML document?

Yes. Paste a full document or just a fragment, both work. The html, head and body wrappers are ignored, your inline style blocks are kept, and scripts plus linked stylesheets are stripped out.

Is there a size limit?

HTML up to 2 MB is fine. Plain typed HTML is small, so 2 MB goes a long way. If yours runs over, split it at a heading and convert each part.

Is there a page limit?

Yes, about 14 pages. The render needs one big picture of the whole document, and browsers cap how tall that picture can be. Past that point you get a clear message asking you to split the document at a heading and convert each part on its own.

Do my files leave my device?

No. Rendering happens entirely in your browser.

Related tools

Related guides

Files are processed in your browser. Nothing is uploaded to any server.