HTML to PDF

Convert a saved HTML file into a PDF. Works best with self-contained pages.

How to Use HTML to PDF

  1. Upload a .html or .htm file.
  2. Click Convert HTML to PDF. The page is laid out at desktop width and captured.
  3. Compare the original and the PDF preview, then click Download PDF.

Which HTML files work well

The file is opened in a hidden frame at 1024 pixels wide, drawn as an image and placed onto A4 pages. Styles written inside the file (a style block or inline styles) are applied. Images and stylesheets referenced with relative paths, like images/logo.png, can't be loaded because the tool only has the one file you picked, so they'll be missing. Images from other websites appear only if that site allows it.

For the best result, use a self-contained HTML file with its CSS inside and images as full web addresses or embedded data.

What the PDF is like

Because each page is an image, text in the PDF can't be selected or searched, and a long page is cut into A4 slices, so a page break can fall through a line of text. To convert a live website, or to get selectable text, open the page in your browser and use Print, then Save as PDF.

Key Features & Practical Use Cases

  • Turning an HTML email template or invoice into a PDF to send or archive.
  • Saving an HTML report exported from another program as a PDF.
  • Making a PDF of a simple page you've built, to share with someone who doesn't code.

Frequently Asked Questions

Can I convert a website by entering its URL?

No. This tool converts an HTML file you upload. For a live site, use your browser's Print, then Save as PDF.

Why are images missing from my PDF?

They're probably linked with relative paths to files in a folder the tool can't see. Embed them or use full web addresses.

Can I select text in the PDF?

No, the pages are images. Your browser's Save as PDF option keeps text selectable.

Is my file uploaded?

No. It's rendered and converted in your browser.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • PPT Text to PDF - Copy the text of each slide in a .pptx file onto its own PDF page. Text only, without the slide design.
  • PDF to HTML - Extract the text of each PDF page into a simple, readable HTML file.
  • PDF to JPG - Extract pages from a PDF and convert them into separate JPG images.
  • Image to PDF - Combine JPG and PNG images into one PDF, with page size, orientation and margin options.
  • Word to PDF - Convert a Word .docx document into a PDF, keeping text, headings, lists, tables and images.
  • PDF Text to PowerPoint Slides - Extract text from each PDF page into an editable PowerPoint slide (text only - original layout, images, and design are not preserved).