HTML to PDF Converter

Convert HTML files, pasted HTML or a zipped site folder to PDF with its CSS, pictures and fonts.

Drop files here

or

Up to 10 files

Download PDF converts on our secure server: sent over HTTPS, deleted right after conversion. Save as PDF on this device never uploads. How we handle files

How Do You Convert HTML to PDF?

You convert HTML to PDF by adding the HTML file to QuickCatPDF's HTML to PDF converter, or pasting the code into Type or paste, and clicking Download PDF. The page is drawn by a real browser engine, so its CSS, fonts, pictures and layout come through as they look in a browser.

For a page with its own CSS and image files, upload the folder as a ZIP. It's free, with no sign-up and no watermark.

How to Convert an HTML File to PDF With QuickCatPDF

Converting HTML takes four steps.

  1. Click Select HTML files, drop files on the page, or choose Type or paste.
  2. Choose the Page size, or One long page, and whether to use Print styles or Screen styles.
  3. Click Download PDF, or Save as PDF on this device to print it from your browser without uploading.
  4. For several files, choose Separate PDFs or One combined PDF before you convert.

How Do You Keep the CSS and Pictures?

CSS and pictures inside the HTML file (in style tags or as data: images) always work. For files kept beside the page, such as css/style.css and img/photo.png, put the HTML file and its folders in a ZIP and upload that. The tool opens index.html, or the only HTML file, and loads every file it links to from the ZIP.

Files linked from other websites, such as web fonts, CDN stylesheets or pictures on another site, aren't loaded, because the converter has no internet access. Copy them into the ZIP and link them with relative paths.

In our test, a page with a style block, a data: picture and a link to a stylesheet on another site converted in about 2 seconds with its colours and picture kept, while the outside stylesheet was skipped. A zipped site folder kept the colours from its CSS file and its picture.

Print Styles or Screen Styles?

Many pages have print styles that hide menus and buttons. Print styles (the default) uses them, which usually gives the cleanest PDF. Screen styles makes the PDF look like the page on a monitor. Tick One long page for a single tall page with no page breaks, like a full-page screenshot with real text.

Do Scripts in the Page Run?

Not by default. Pages that build their content with JavaScript, such as charts or reports, need Run the page's scripts ticked. Scripts then run on our server for up to 10 seconds with no internet access, and the page is printed afterwards. Save as PDF on this device never runs a page's scripts: it shows the HTML in a locked-down frame.

Frequently asked questions

Is HTML to PDF free?

Yes, free with no sign-up and no watermark, with a fair-use limit of 60 files an hour for Download PDF.

Can I paste HTML code instead of uploading a file?

Yes, choose Type or paste, paste the code, and convert it. Inline styles and style tags are kept.

Can I convert HTML to PDF without uploading?

Yes, for a single HTML file click Save as PDF on this device. The page is shown in your browser and saved through the print window. ZIP folders and pages that need their scripts must use Download PDF.

Can I get A4 or US Letter pages, or landscape?

Yes, choose A4, Letter, A3, A5 or Legal under Page size, and Portrait or Landscape under Orientation. Page sizes set in the page's own CSS are replaced by your choice.

How do I convert a live website?

Use Webpage to PDF, which loads the page from its address. For Markdown files, Markdown to PDF gives a styled document, and every other format is on Convert Any File to PDF.

Convert HTML to PDF now

Last updated:

More Convert Any File to PDF tools