HTML to PDF API
for Developers
Generate a PDF from HTML with a single API request.
PDFBolt uses Chrome to render responsive layouts with modern CSS, JavaScript, and web fonts. 50 free PDFs per month. No credit card required. EU‑based processing.
2M+
PDFs Generated
2K+
Developers
99.9%
Uptime SLA
~ 2s
Avg render time
From HTML to PDF in One API Call
No HTML to PDF libraries to install or headless browsers to manage.
Send your HTML and get a PDF back. PDFBolt handles Chrome rendering and scaling for you.
Chrome Rendering Engine
Your HTML renders in a real Chrome instance. Support for CSS Grid, Flexbox, web fonts, and JavaScript gives you responsive HTML to PDF rendering that preserves the look of your page.
Simple REST API
Send Base64-encoded HTML to the Direct, Sync, or Async endpoint. Use REST examples or our Node.js, Python, and PHP SDKs. Connect AI tools via our MCP server.
Privacy-First Processing
PDFBolt processes your HTML on EU‑based servers and supports GDPR compliance. Your HTML is no longer stored in request logs once processing is complete.
Built to Scale
99.9% uptime SLA with auto‑scaling infrastructure that handles traffic spikes. Same fast response whether you convert 10 or 10,000 documents a day. No servers to manage.
Clear Pricing
Start with our free HTML to PDF API with 50 conversions per month. Upgrade to a paid plan when you need more. No hidden fees. Only successful conversions count.
Responsive Support
Get technical answers from our engineers, not chatbots. For integration help, see our detailed HTML to PDF API documentation and quick-start guides for developers.
Three HTML to PDF API Endpoints
Use Direct to get the PDF in the response, Sync to get a download link, or Async to process PDFs in the background.
All three use the same Chrome engine and offer the same PDF customization options.
Direct Endpoint
Convert HTML to PDF in a single HTTPS request and get the PDF directly in the response. Perfect for real‑time downloads or in‑browser previews when the user is waiting.
Sync Endpoint
Generate a PDF and share it with your users via a download link valid for 24 hours. For more control over storage, PDFBolt can upload the PDF directly to your own S3-compatible bucket.
Async Endpoint
Submit a request. When the conversion finishes, PDFBolt sends the result to your webhook as HMAC‑signed JSON. Ideal for long-running conversions and batch jobs.
Convert HTML to PDF in Any Language
Use the official Node.js SDK, Python SDK, and PHP SDK, or copy REST examples for Java, C#, Go, Rust, and cURL.
Choose the Direct, Sync, or Async endpoint and start converting HTML to PDF. Quick Start
const fs = require('fs');
async function generatePdf() {
const htmlContent = '<html><body><h1>Hello!</h1><p>This is a sample PDF.</p></body></html>';
const base64Html = Buffer.from(htmlContent).toString('base64');
const response = await fetch('https://api.pdfbolt.com/v1/direct', {
method: 'POST',
headers: {
'API-KEY': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
'Content-Type': 'application/json'
},
body: JSON.stringify({
html: base64Html,
format: "A4",
printBackground: true,
margin: {
top: "30px",
left: "30px"
}
})
});
if (!response.ok) {
const errorText = await response.text();
throw new Error(`HTTP ${response.status} - ${errorText}`);
}
const pdfBuffer = await response.arrayBuffer();
fs.writeFileSync('document.pdf', Buffer.from(pdfBuffer));
console.log('PDF generated successfully');
}
generatePdf().catch(console.error);HTML Templates for Recurring Documents
Same layout, different data? Create your HTML template once.
Then generate invoices, reports, or contracts by sending just the template ID and JSON data.

Let AI Build Your Templates
Skip the coding. Describe your document layout and attach reference files.
AI generates a complete HTML template with sample data for you, ready to edit or use.
Start with a Prompt
Describe your layout, data fields, and styling. Attach reference files – PDFs, images, or code.
AI Generates Code & Data
AI creates a complete HTML/CSS template with Handlebars variables and sample data.
Edit with AI Assist
Request changes – layout, fields, styling. AI handles the code updates. Iterate until satisfied.
Review & Accept
See what changed in diff view. Compare PDF output side by side, then accept or reject – full control.
Get API Code
Copy ready-to-use code snippets in your language. Integrate in minutes.
Generate Template with AI
Describe the template you want to create. Be specific about layout, styling, and data fields.
0 / 10,000 characters
Drag & drop, click to browse, or paste (Ctrl+V)
PDF, PNG, JPG, JPEG, SVG, TXT, HTML, HTM, CSS, JS, JSON (max 5 files, 5 MB total)
0 KB / 5 MB
Invoice Template

Invoice Template

AI Assistant
Describe what you want to change:
Thinking
0 / 10,000 characters
Drag & drop, click to browse, or paste (Ctrl+V)
PDF, PNG, JPG, JPEG, SVG, TXT, HTML, HTM, CSS, JS, JSON (max 5 files, 5 MB total)
Review AI Changes
Before (Current)
1
/
1

After (AI-edited)
1
/
1

Invoice Template

API Integration: Invoice
Use the following code examples to generate PDFs using this template through our API.
Close
Generate PDFs and Manage Templates with MCP
Connect ChatGPT, Claude, Claude Code, or Codex to PDFBolt’s MCP server. Generate a PDF from HTML, or ask your assistant to create or update a template and preview it before publishing.
Built for Invoices, Reports, Certificates, Contracts, and More
Each template includes Handlebars variables and sample data. Use your own data and generate PDFs.
Browse the full template gallery – ready-made layouts for receipts, healthcare, HR, resumes, quotes, shipping labels, and more.
Browse template galleryAll-in-One Dashboard
Design HTML templates, test PDF generation, monitor API usage, and manage your team. Everything in one place.
Trusted by Developers Worldwide
See how teams save time and reduce complexity with our developer‑first PDF solution.
"It has a very intuitive User Interface and easy to use API with a great documentation. What's best, that the support is super fast and even feature requests are discussed and implemented in just a couple of days. It helps us to create individualised PDF gift cards both for digital use as well as print production on the base of modern HTML / CSS."
"Amazingly, the owner personally helped solve the issues I was having creating an exported lesson plan with hyperlinks and complex styling. This is a great piece of software. But more importantly, it’s the people behind a product that truly make a company great. His willingness to support my project without payment is truly unique – a rare product and a rare individual. This product just works. Thank you, PDFBolt!"
"There's a lot of products that convert to PDF out there, but this one stood out to me, because the output quality is good, it's very easy to use, and pay per use. I also love the interactive API documentation, my request just worked out of the box in my app. And of course the focus on privacy, which is important when working with GDPR data. (...) PDFBolt just works, so I can focus on the business logic."
PDFBolt is a PDF Association Member
PDFBolt is a member of the PDF Association, the worldwide technical community for PDF technology. Membership connects us with experts working on PDF standards for archiving, accessibility, and print.
View PDFBolt ProfileSimple and Transparent Pricing
Start with 50 free HTML to PDF conversions per month.
Upgrade when you need more. No hidden fees.
Free
50 documents / month
20 requests per minute
1 concurrent request
PDF file size limit: 2MB
All customization options
1 template
1 AI template generation
PDF Tools API (merge, compress)
No credit card required
Basic
$19
/month2,000 documents / month
100 requests per minute
5 concurrent requests
$0.01 per overage PDF
Unlimited PDF file size
All customization options
Async processing
Upload to S3
3 team members
10 templates
10 AI template generations / month
PDF Tools API (merge, compress)
Growth
$79
/month10,000 documents / month
250 requests per minute
20 concurrent requests
$0.008 per overage PDF
Unlimited PDF file size
All customization options
Async processing
Upload to S3
10 team members
Unlimited templates
50 AI template generations / month
Print production (PDF/X, CMYK)
PDF Tools API (merge, compress, convert to PDF/X)
Priority support
Enterprise
$249
/month50,000 documents / month
500 requests per minute
50 concurrent requests
$0.005 per overage PDF
Unlimited PDF file size
All customization options
Async processing
Upload to S3
Unlimited team members
Unlimited templates
150 AI template generations / month
Print production (PDF/X, CMYK)
PDF Tools API (merge, compress, convert to PDF/X)
We create custom templates for you
Top priority support
Looking for higher monthly limits?
Contact Us →Frequently Asked Questions
Got questions about our HTML to PDF converter? We've got answers.
From API integration to customization options, templates, security, and pricing.
How do I convert HTML to PDF using the API?
How much does the HTML to PDF API cost? Is there a free tier?
What customization options are available?
Does the API support JavaScript-rendered pages and SPAs?
Can I use templates instead of raw HTML?
Does PDFBolt support PDF/X-1a, PDF/X-4, and CMYK for print production?
How fast is the HTML to PDF conversion?
Can I generate PDFs at scale?
Is PDFBolt GDPR compliant? How is my data secured?
Do I need to install an HTML to PDF converter library?
Why use PDFBolt instead of running headless Chrome (Puppeteer or Playwright) yourself?













