Skip to content
PDFMergely
Merge PDFs

HTML to PDF

Paste HTML or open a saved web page and download it as a PDF, with searchable text, clickable links and page breaks that never cut a line in half. It all happens in your browser.

Files never leave your device · No upload · Free
Loading tool…

How to convert HTML to PDF

  1. 1

    Add your HTML

    Paste HTML, or open an .html file along with the images and stylesheets it uses.

  2. 2

    Choose the page

    Pick the paper size, orientation, margins, and whether to lay the page out at desktop width.

  3. 3

    Create the PDF

    Download the PDF, or use Print to PDF for fully vector text through your browser.

Why convert HTML in your browser?

Saved pages, email templates and reports often contain private data. Converting locally means the HTML is never uploaded, and nothing in it can call home: scripts are stripped and other servers are never contacted.

Writing rather than coding?

For notes and documents, Markdown to PDF is quicker to write. For slides or a live presentation, use Presenter. To join the result with other files, use Merge PDF.

Frequently asked questions

Can I convert a web page by its URL?+

Not by URL: this site never fetches anything from other servers, which is how it can promise your files stay private. Open the page in your browser, save it (Ctrl+S or Cmd+S, "Webpage, HTML only" or "Complete"), then open the .html file here and add the images from its folder.

Is the text in the PDF searchable?+

Yes. Each page is drawn exactly as the preview shows it, and every word is also placed as real, invisible text over its position, so you can search, select and copy it. Links stay clickable.

What is the difference between Create PDF and Print to PDF?+

Create PDF makes the file right here and matches the preview exactly. Print to PDF hands the page to your browser’s print engine, which keeps text as vector outlines (sharper when zoomed, usually smaller files); pick "Save as PDF" as the printer.

Why are some images missing?+

Images on other servers are never loaded, and images with relative paths need their files. Add the image and CSS files alongside the HTML: they are matched by file name. Missing files are listed so you know what to add.

What happens to JavaScript in the page?+

Scripts and event handlers are removed before the page is laid out, and it is rendered in a sandbox where code cannot run. What you get is the page as its HTML and CSS describe it.

How do I control where pages break?+

Use CSS: break-before: page (or page-break-before: always) starts a new page, and break-inside: avoid keeps a block together. Without them, breaks are placed so no line of text, image or table row is cut.

Is it free and private?+

Yes. No sign-up and no watermark, and the HTML never leaves your device.

Common uses

Task-specific guides for the situations people reach for this tool for.

Related tools