Back to tools

HTML to PDF

Convert webpages in HTML to PDF. Copy and paste the URL of the page.

Advertisement
Advertisement

Convert an HTML page or URL to PDF

Save a webpage as a clean PDF with the layout preserved.

HTML to PDF renders a webpage into a PDF using WeasyPrint. You supply a URL (or HTML source) and get back a PDF that captures the page's visual layout. Useful for archiving articles, saving invoices from a web app, or preparing a printable receipt.

JavaScript-heavy sites may render differently in WeasyPrint compared to a browser — the tool doesn't run a full browser engine.

How to use it

  1. 1Paste a URL, or upload/paste HTML source.
  2. 2Press Convert.
  3. 3Download the PDF and check the layout.

Real-world use cases

  • Archive an article you found online for offline reading.
  • Save an invoice from a SaaS admin panel.
  • Print a receipt that's only shown in the browser.
  • Create a stable copy of a landing page for a portfolio.

Supported formats & limits

Input: HTTPS URL or HTML source. Assets referenced by the page (images, CSS) must be publicly reachable.

Privacy

Your uploaded file is written to a temporary folder on our server, processed, and deleted by the operating system as soon as the request finishes — typically within seconds. Nothing is stored in our database. Traffic is encrypted over HTTPS. We fetch the URL from our server. Auth-only pages behind a login cannot be captured — use your browser's built-in Print → Save as PDF for those.

Full details in the Privacy Policy.

Frequently asked questions

Why does the PDF look different from what I see in Chrome?▾

WeasyPrint is a print-rendering engine, not a browser. Sites that rely heavily on JavaScript or unusual CSS may render differently.

Can I capture a page behind a login?▾

No. WeasyPrint fetches the URL without any browser session. For authenticated pages, use your browser's Print → Save as PDF feature.

Are external images loaded?▾

Yes — any publicly reachable image URL is fetched.

How does HTML to PDF handle pages that need to log in?▾

It can't — the tool visits the URL as an anonymous public visitor. If the page requires a login, save it as HTML from your browser first, then use the 'paste HTML source' option instead of the URL field.

Do JavaScript-rendered pages (React, Vue, etc.) work?▾

Simple SPAs work because the renderer waits for network idle before capturing. Very complex apps that need user interaction (clicks, scrolls) to render content are best captured with your browser's 'Print to PDF' instead.

Related PDF tools

Advertisement