HTML to PDF API
for developers.
The fastest way to convert HTML to PDF. Build, test, and generate beautiful documents in milliseconds via a simple REST API.
PDF API is a high-performance HTML to PDF conversion service built for developers. Generate pixel-perfect invoices, reports, and contracts from HTML templates and JSON data. EU-hosted, GDPR compliant, with a generous free tier of 500 PDFs per month.
# Convert your HTML template to a secure PDF link instantly
curl -X POST https://api.pdfapi.dev/v1/render \ -H "Authorization: Bearer sk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{
"template_id": "invoice-template-01",
"data": {
"customer_name": "Acme Corp",
"amount_due": 4200.00
}
}'Lightning Fast
Generate documents in under 300ms. Keep your application feeling instantly responsive, whether you're delivering checkout receipts or complex monthly reports.
Enterprise Reliability
From your first hundred invoices to millions of documents per month. A robust API that scales effortlessly with your business growth, with zero maintenance.
Elegant Integration
Design documents using standard HTML and CSS. Pass your JSON data to our REST API and instantly receive a secure, ready-to-share PDF link.
PDF generation made easy. Finally.
Stop losing sleep over failing rendering queues. Offload your document generation to a dedicated infrastructure designed for scale and peace of mind.
The Hidden Cost of DIY
- Burning Engineering CashPaying expensive developers to maintain fragile document generators instead of building your core, revenue-generating product.
- Delayed Cash FlowBilling cycles get bottlenecked and payments are delayed because invoice generation fails or times out during end-of-month spikes.
- Amateur Brand PerceptionFrustrating your customers with slow, broken, or misaligned documents that make your enterprise software look cheap.
- Losing Enterprise DealsLucrative contracts stall in security reviews because your current tools expose sensitive customer data to foreign servers.
The PDF API Advantage
- Focus on Your Core ProductReclaim thousands of engineering hours. One simple integration, zero maintenance. Your team goes back to shipping real features.
- Instant Revenue OperationsGuaranteed uptime and infinite auto-scaling mean your invoices and contracts are generated instantly, no matter the volume. Get paid faster.
- Premium Customer ExperienceDeliver pixel-perfect, beautifully designed documents in under 300ms. Your brand looks flawless and reliable on every screen.
- Enterprise-Ready ComplianceClose bigger deals with confidence. 100% EU-hosted, native GDPR compliance, and strict data purging to satisfy any Data Protection Officer.
Built for any document.
If you can build it in HTML and CSS, we can convert it to a pixel-perfect PDF.
Invoices & Receipts
Generate highly dynamic financial documents with complex tables, dynamic VAT calculations, and page breaks.
Contracts & NDAs
Instantly generate personalized legal agreements ready to be sent to your e-signature provider of choice.
Financial Reports
Support for multi-page layouts, heavy SVGs, dynamic charts, and repeated headers/footers.
Shipping Labels & Tickets
Millimeter-perfect rendering for barcodes, QR codes, and precise print formats.
Integrate in minutes
Simple REST API with SDKs and guides for every major language.
Start generating PDFs today
Try it free — 500 PDFs/monthFAQ.
Straight answers for technical decisions.
Do you store my data?
No. We render the PDF, upload it to a secure bucket, and generate a temporary presigned URL. Once the URL expires (default: 24h) or you hit the DELETE endpoint, your document is wiped completely. Zero long-term retention.
Do you support modern CSS?
Yes. We use the latest Chromium engine. Flexbox, Grid, custom properties, and modern web standards are fully supported. If it renders in Chrome, it renders in your PDF.
What about custom fonts?
For maximum privacy (and to avoid leaking IP addresses to Google Fonts), we strongly recommend embedding your fonts and images as Base64 data URIs directly in your CSS. This guarantees 0 external network requests.
Is it really under 300ms?
Yes. Instead of booting a headless browser for every request, our Rust backend maintains a persistent, hot pool of Chromium instances. The moment your API request hits our servers, a browser is already waiting.
Ready to stop waiting?
Join the developers building the next generation of SaaS products. 500 free PDFs per month, no credit card required.
Get your API key →