No upload, 100% local, no account

HTML to PDF

Paste HTML, choose a page size, and download a PDF, everything renders in your browser.

How HTML to PDF works

HTML to PDF turns pasted HTML into a downloadable PDF, right in your browser. Paste your markup, pick a page size (A4 or Letter) and orientation, and get a PDF. The HTML is first sanitised (DOMPurify) for safety, then rendered to an image and paginated into the PDF with jsPDF.

Be realistic about what this does: it is a best-effort raster snapshot, not a full print engine. Layout is approximate, selectable text is not preserved (the page is an image), and external resources behind CORS may not load. Only pasted HTML is supported, a browser cannot fetch an arbitrary URL’s content for you (CORS).

Frequently asked questions

Are my files uploaded to a server?

No. Every operation runs inside your browser tab using JavaScript and WebAssembly. Your file is read into memory on your own device, processed there, and the result is offered as a local download. Nothing is transmitted to Sunasty or any third party. You can verify it yourself: open your browser DevTools, go to the Network tab, and watch, no request carries your file.

Can it convert a web page from its URL?

No. Browsers block reading the content of another site (CORS / same-origin policy), so a purely client-side tool cannot fetch an arbitrary URL. Paste the HTML instead, for a page you control, copy its source.

Is the text selectable in the PDF?

No. The HTML is rasterised to an image and placed in the PDF, so the result looks right but is not selectable or searchable text. This is the trade-off of doing it 100% in the browser without a server.

Why might images or fonts be missing?

External resources that block cross-origin access (CORS) cannot be captured. Inline or same-origin assets work best.

Does it work offline?

Yes, once the page has loaded. Because the processing happens on your device, you can disconnect from the network and the tool keeps working. This is the clearest proof that your data never leaves your machine.

Is it free? Do I need an account?

It is completely free and requires no sign-up. There are no watermarks, no daily limits and no tracking cookies needed to use the tool.