Convert HTML content or files into a downloadable PDF document
This tool converts HTML content directly into a PDF file using your browser. It supports inline styles, images, tables, and basic layouts. No data is uploaded to any server.
You can paste raw HTML or upload an .html file, choose page size and orientation, then download a print-ready PDF.
Drag & drop HTML file here
or click to upload .html file
Conversion happens entirely in your browser
This converter takes an HTML document — pasted in or uploaded as a .html file — and renders it as a PDF using your browser's rendering engine. Because it runs in-browser, inline styles, fonts, and even client-side JavaScript-rendered content all work the way they do when you view the page locally. Your HTML and the resulting PDF never leave your device.
.html file.data:image/png;base64,… avoids that.Does it support JavaScript-rendered content?
Yes — the HTML executes in a hidden DOM, so client-side JS runs before the capture. Async fetches may need extra time; if your output looks blank, try again after the scripts finish.
Is the output text selectable?
Text is rendered as part of a rasterized canvas image, so it is not directly selectable in the PDF. For selectable text, author your source as a PDF natively.
Why is my long page split awkwardly across pages?
Use CSS page-break-inside: avoid on elements you don't want broken, or add explicit page-break-before markers where pages should split.
Are my HTML or PDF uploaded anywhere?
No. Everything runs in your browser using the open-source html2pdf.js library.
Can I batch-convert many HTML files?
One at a time via this UI. For bulk workflows, use the underlying html2pdf.js library directly in your own automation.