Convert HTML to PDF Online Free - HTML to PDF Converter
Upload an HTML file or paste HTML code below

or drop your file anywhere on this page

Processed in your browser, never uploaded

How to Convert HTML to PDF

  1. Add your HTML – Click "Select HTML file" to open an .html or .htm file, drop it on the page, or paste the code into the editor. "Load sample" shows an invoice example.
  2. Check the preview – The preview shows the page at the width it will have in the PDF.
  3. Set up the page – Choose the "Page size" (or a custom width and height), "Orientation", "Margins (mm)", a "PDF file name" and whether to add "Page numbers".
  4. Create the PDF – Click "Convert to PDF". The file downloads automatically; "Download PDF" saves it again.

HTML to PDF Converter: What You Get

When to Convert HTML to PDF

HTML to PDF Converter: Good to Know

HTML to PDF – Frequently Asked Questions

How do I convert an HTML file to PDF?

Open the file with "Select HTML file" or paste the code, choose the page size and margins and click "Convert to PDF".

Can I convert a website by its URL?

No. Browsers do not let a web page load other websites for conversion. Save the page as HTML (or copy its code) and convert that.

Does JavaScript in my HTML run?

No. Scripts are removed for safety. Only the HTML and CSS are rendered.

Is the text in the PDF selectable?

No. Each page is saved as a high-resolution image so that every design and language looks as in the preview.

How do I start a new page?

Add the CSS rule break-before: page (or page-break-before: always) to the element that should start on a new page.

Is my file uploaded?

No. The PDF is created in your browser, so your HTML stays on your device.

Is it free?

Yes – no sign-up and no watermark.

Not sure which tool fits your file? See Convert to PDF Guide.