TidyFigure

HTML to PDF

  • 100% free
  • No sign-up
  • Files stay on your device

Paste your HTML code or drop an .html file, choose the paper size and margins, and press Convert to PDF. The page is laid out with its own styles, cut into pages between lines, and saved as a PDF with real, selectable text. Scripts are removed first, so the code can't run.

Also known as: HTML file to PDF · HTML code to PDF · web page to PDF

Drop an .html file here or click to choose Or paste HTML code below

PDF

Paste HTML or choose an .html file.

Your files are processed on your device and never uploaded.

How to convert HTML to PDF

  1. Paste HTML code into the box, or drop an .html file (a saved web page, an email template, an exported report).
  2. Choose the paper size, orientation and margins.
  3. Press Convert to PDF, check the page previews and download.

What's kept

Styles in the HTML (in <style> tags and style attributes) are used, so headings, colours, tables, borders, backgrounds and lists look as they do in a browser. Long content continues onto as many pages as needed and lines are never cut in half. The PDF contains real text that you can select and search.

Fonts are replaced by close free fonts (sans-serif, serif and monospace), so the layout matches what the PDF can show. Pictures embedded in the HTML (data URLs) are included; pictures linked from other websites are included when those sites allow it.

Safe by design

Scripts, frames and event handlers are removed before the HTML is shown, so pasted code can't run or load trackers. Everything happens in your browser and nothing is uploaded.

Converting a live web page

To turn a website into a PDF, open it in your browser, press Ctrl+S (or Cmd+S on a Mac) and save it as "Web page, complete" or "HTML only", then drop the saved file here. You can also use the browser's own Print → Save as PDF.

Frequently asked questions

How do I convert an HTML file to PDF for free?

Drop the .html file here or paste its code, choose the paper size and press Convert to PDF. It is free with no sign-up.

Is the text in the PDF selectable?

Yes. The PDF contains real text, not a picture of the page, so you can select, copy and search it.

Can I convert a website URL?

Save the page from your browser (Ctrl+S) and drop the saved .html file here, or use your browser’s Print → Save as PDF.

Does my HTML run any scripts?

No. Scripts, frames and event handlers are removed before the HTML is laid out, and nothing is uploaded.

Last updated October 2026 · More pdf tools