HTML to PDF conversion API
Save your time and effort, by dedicating a PDF conversion task to us.
- 1.7M+Conversions per month
- 1.5K+Trusted by developers
- 1.8sAverage processing time
- 99.9%Uptime reliability
Everything you need to convert HTML to PDF
A fast, developer-friendly API with everything you need for high-quality PDF generation.
Browser-based HTML to PDF Engine
Chromium-based rendering with support for modern HTML, CSS, and JavaScript.
Templates
Ready-made invoice, receipt, CV and report templates you can drop into the API.
Asynchronous request
Generate PDFs in the background and receive completed documents at your callback URL.
Advanced Options
Control page size, orientation, margins, media styles, headers, footers, and more.
Encryption & Passwords
Protect PDFs with a password and control permissions using AES encryption.
Private & Secure
Generated PDFs are processed temporarily and are not permanently stored.
Free tools included
HTML to PDF Online Converter
Convert a URL or raw HTML to PDF right in your browser — no code required.
Playground
Test the API in your browser and get ready-to-use code generated automatically from your settings.
WordPress PDF Plugin
Convert any WordPress page or post to a PDF file using a simple shortcode.
Pricing
Start with a Free plan and get 100 credits per month and up to 1MB per file!
100 credits / month
1 Parallel conversions
All customization options
Up to 1MB PDF size
WordPress PDF plugin
1000 credits / month
3 Parallel conversions
All customization options
Unlimited PDF size
WordPress PDF plugin
5000 credits / month
10 Parallel conversions
All customization options
Unlimited PDF size
WordPress PDF plugin
10000 credits / month
20 Parallel conversions
All customization options
Unlimited PDF size
WordPress PDF plugin
Each 5MB chunk of the generated document is equal to 1 credit, so for example, 15MB generated document will cost 3 credits.
Start quickly with code samples
Choose a language to see a quick HTML-to-PDF API example.
curl -X POST https://api.html2pdf.app/v1/generate \
-H 'Content-Type: application/json' \
-H 'X-API-Key: <your-api-key>' \
-d '{
"html": "https://www.example.com",
"landscape": true,
"format": "A4"
}' --output document.pdf