PDF tools
PDF / CONVERT

Convert HTML to PDF

Convert HTML to PDF by pasting markup or opening an HTML file. Set page size and margins, then save the provided content as a PDF. Free to use, with no sign-up required.

Files processed on your device
01

Write or import

HTMLScripts never run
Preview
02

Options

Page size
Orientation
Margins
36pt

01 How it works

  1. Paste HTML or open an .html file.
  2. Choose page size and margins.
  3. Download the PDF.

02 Good to know

Scripts never run and remote files are not fetched, so only the HTML you provide is used. Embedded images (data URLs) and CSS are kept.

03Convert provided HTML into pages

Paste HTML into the editor or open a .html or .htm file. Choose page size, portrait or landscape orientation, background printing, and margins, then download the PDF.

The converter uses the HTML and embedded resources you provide. Scripts do not run and remote files are not fetched; data URL images and CSS are kept.

04Prepare styles and images

Include the styles needed for the document in the supplied HTML. If an image or font is linked to a remote address, it will not be fetched during conversion; provide an embedded data URL when appropriate.

Review the printed pages for clipped content, unexpected page breaks, missing images, and background colours. Long web layouts may need print-specific CSS and margins.

05Save a web document for sharing

A PDF is useful when readers need a fixed page layout or a printable copy. Keep the HTML source when you expect to change styles or content.

For an existing PDF that you want to publish as web content, use PDF to HTML and review the extracted reading order.

06 Questions

Can I paste HTML instead of uploading a file?

Yes. Paste HTML into the editor or open an .html or .htm file.

Are scripts and remote images included?

Scripts do not run and remote files are not fetched. CSS and embedded data URL images are supported.

Can I set page size and margins?

Yes. Choose the page size, portrait or landscape orientation, background printing, and margins.

07 Related tools