Convert HTML files to PDF with full CSS, font, and layout rendering. Perfect for archiving web pages or generating reports from HTML templates. Free, no signup.
Select an HTML file to convert
Drag & drop your .html or .htm file here
.html, .htm supported · Up to 100 MB
How it works
No software to install. Works on any device with a modern browser - desktop, tablet or mobile.
Click "Select HTML file" or drag and drop your .html or .htm file. SupaPDF renders the page server-side with full CSS support - no account required for basic use.
The live preview panel renders your HTML exactly as a browser would, so you can verify the layout before converting. Use the refresh button if the preview doesn't load immediately.
Click "Convert to PDF" and your HTML page is rendered to a pixel-accurate PDF using WeasyPrint. External images and fonts referenced in your file are fetched by the server.
Why SupaPDF
Trusted by developers worldwide for generating PDFs from HTML templates, reports and web pages.
Powered by WeasyPrint - a Python rendering engine that implements CSS 2.1, CSS3, flexbox, grid, @font-face, @media print and most modern CSS features for pixel-accurate output.
All uploads use encrypted HTTPS. Your HTML files are permanently deleted from our servers immediately after your download is complete. JavaScript in your HTML is never executed.
See exactly how your HTML looks before you convert. The sandboxed preview panel renders your file in a real browser engine, so what you see is what you get in the PDF.
Automate HTML-to-PDF conversion in your own apps - great for generating invoices, reports and receipts from HTML templates. 5 credits per job.
Developer API
Use our REST API to generate PDFs from HTML templates inside your own application. 5 credits per job.
curl -X POST https://api.supapdf.com/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag": "html-to-pdf-job",
"tasks": {
"upload-1": {
"operation": "import/upload"
},
"convert": {
"operation": "html_to_pdf",
"input": ["upload-1"]
},
"export-result": {
"operation": "export/url",
"input": ["convert"]
}
}
}'After creating the job, PUT your HTML file to the upload_url, then poll GET /v1/jobs/:id?include=tasks until status is "finished". The PDF URL is in the export-result task.
FAQ
Everything you need to know about converting HTML files to PDF with SupaPDF.
Ready to convert your HTML file?
Free to use · No account required · Instant download