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 the layout engine built into your browser to draw each page and jsPDF to assemble the pages into a PDF, without a server round-trip. The result matches the live preview; browsers that cannot render this way fall back to html2canvas.

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 drawing pages as images before assembling the PDF - 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.

Related tools

Guides & comparisons

← All tools · PDF Tools · Blog · Cheat sheets · FAQ