HTML to PDF

Convert HTML into a downloadable PDF, with a live preview and automatic multi-page pagination.

About this tool

Converts HTML into a downloadable PDF entirely in your browser, using html2canvas to render the page and jsPDF to assemble it into a PDF — the same technique used by many "print to PDF" style tools, without needing a server round-trip.

How to use it

  1. Paste or write HTML (with inline CSS if needed) in the source panel - it renders live in the preview on the right.
  2. Click Convert to PDF.
  3. Review the summary, then confirm to download the result.

FAQ

Is the text in the output PDF selectable?

No - the output is a rasterized image of your HTML (a screenshot, effectively), not real vector text. This is a real limitation of the html2canvas + jsPDF approach - if you need selectable text, format the same content in a different tool.

Can I convert a live web page by URL?

No - only pasted HTML source. Fetching an external URL's content from the browser reliably runs into cross-origin restrictions most sites enforce, and would require a server-side fetch, which breaks this site's 100% client-side promise.

What happens to <script> tags in my HTML?

They're ignored during conversion - a static PDF page can't run JavaScript anyway, so there's nothing for a script tag to meaningfully do in the output.

How is pagination handled for long content?

The rendered content is automatically sliced into as many A4 pages as needed - no manual page-break markup required.