HTML to PDF

Convert HTML content into a paginated PDF document, just as it looks in the browser.

How to use HTML to PDF

  1. Paste your HTML or upload an .html file.
  2. Choose the page size.
  3. Download the PDF.

Convert HTML code to PDF

Paste the code or upload the .html file, choose the page size and download a PDF with selectable text, just as it looks in the browser.

Secure by design

Scripts are not run and nothing is downloaded from the internet: only the HTML you paste or upload is used, with its embedded images.

Page size and orientation

Choose A4 or Letter paper and portrait or landscape orientation. The content is laid out on pages of that size with margins, and the PDF text stays selectable, so it can be copied or searched.

What it is for

To save as PDF an invoice, a receipt or a confirmation you received as HTML; to convert templates and reports generated by a system; or for anyone who writes a document in HTML and needs to hand it in as PDF. If what you have is a web page open in your browser, use the browser’s own “Print” and “Save as PDF” option.

Styles and images

Styles included in the HTML itself (in style tags or attributes) are applied. Stylesheets, fonts and images hosted on other websites are not downloaded; to include an image, embed it in the HTML as a data URL or convert it separately with “JPG to PDF” and merge the files.

Frequently asked questions about HTML to PDF

Can I convert a URL?

For security and privacy, only HTML that you paste or upload is converted.

Are images loaded from the internet?

No: for security only images embedded in the HTML itself (data:) are included. Scripts are not run.

What is the maximum size?

The HTML code can be up to 2 MB, either pasted or in an .html file.

Is CSS kept?

Yes, the CSS inside the HTML itself. External stylesheets are not loaded for security.

Related tools