---
title: "Fast, Easy Website and HTML to PDF Converter via API | PDFShift"
description: "An API to convert HTML/CSS documents to PDF. Fast, reliable, and pixel-perfect conversions for developers. Start with 50 free credits per month."
---

# PDFShift - HTML to PDF Conversion API

## From HTML to pixel-perfect PDFs in seconds

Our always-up-to-date API for developers automates your document conversion tasks - effortlessly.

[Register for free](/register/)

## Key Statistics

- **86+ Million** Conversions made
- **56,000+** Developers
- **1.5s** Average conversion time
- **99.99%** Uptime

## Trusted by Leading Companies

PDFShift is used by thousands of companies worldwide for their PDF generation needs.

## Powerful Features for High-Fidelity Documents

### Full CSS Support
Our powerful engine supports all the latest CSS features, including custom web fonts, flexbox, grid layouts, and responsive design.

### JavaScript Execution
Execute JavaScript before converting your pages to capture dynamic content and single-page applications.

### Headers & Footers
Add custom headers and footers with page numbers, dates, and dynamic content.

### Watermarks
Protect your documents with text or image watermarks, positioned precisely where you need them.

### Password Protection
Secure your PDFs with password protection and encryption.

### Screenshot Capture
Generate high-quality screenshots of web pages in various formats (PNG, JPEG, WebP).

## API-First Design

Built for developers, by developers. Our RESTful API integrates seamlessly with any programming language or framework:

- Node.js
- Python
- PHP
- Ruby
- Go
- C#

## Features

### Perfect Rendering
Powered by Chromium for pixel-perfect rendering every time.

### Custom Page Sizes
Support for standard sizes (A4, Letter) and custom dimensions.

### Landscape & Portrait
Convert in any orientation.

### Webhooks
Get notified when conversions complete via webhooks.

### Cloud Storage Integration
Save directly to Amazon S3 or get a temporary URL.

### Custom HTTP Headers
Send custom headers for authenticated pages.

### CSS & JavaScript Injection
Load additional CSS or JavaScript from strings or URLs.

### Page Selection
Export specific pages or page ranges from your document.

### Full-Height Documents
Generate PDFs with full page height without pagination.

### Timeout Control
Set custom timeouts for complex page rendering.

## Pricing

Flexible plans to suit your needs:

- **Free**: 50 credits/month, no credit card required
- **Starter**: Ideal for small projects
- **Business**: For growing companies
- **Enterprise**: Custom solutions with SLA

[View detailed pricing](/pricing/)

## Resources

- [API Documentation](https://docs.pdfshift.io)
- [PDF generator API: request, limits and prices compared](/pdf-generator-api/)
- [API Status](https://status.pdfshift.io)
- [Guides & Tutorials](/guides/)
- [Playwright PDF in production](/guides/playwright-pdf-in-production/)
- [Puppeteer PDF in production](/guides/puppeteer-pdf-in-production/)
- [Puppeteer PDF on AWS Lambda and Vercel](/guides/puppeteer-pdf-aws-lambda/)
- [PDFMonkey alternative: move Liquid templates to one API call](/alternatives/pdfmonkey/)
- [Best PDF generation APIs an AI agent can call](/guides/best-pdf-api-for-ai-agents/)
- [Puppeteer alternatives for PDF generation](/alternatives/puppeteer/)
- [React to PDF: 4 ways, one invoice, measured](/guides/react-to-pdf/)
- [HTML to PDF in Python: does your HTML need a browser?](/guides/html-to-pdf-python/)
- [HTML to PDF in Node.js: replace html-pdf-node](/guides/html-to-pdf-node/)
- [HTML to PDF in C#: getting Chromium into your .NET deploy](/guides/html-to-pdf-csharp/)
- [DocRaptor alternative: PDFShift, tested on the same page](/alternatives/docraptor/)
- [Gotenberg alternative: HTML to PDF without the container](/alternatives/gotenberg/)
- [Cloudflare Browser Rendering alternative for PDFs](/alternatives/cloudflare/)
- [PrinceXML alternative: print HTML in a real browser](/alternatives/prince/)
- [FAQ](/faq/)

## Start Converting Today

Get started in minutes with our comprehensive documentation and code examples. No credit card required for the free tier.

[Create your free account](/register/)

---

**Support**: Available for all plans with response times based on your subscription level.

**Privacy**: GDPR compliant. By default, we don't store your documents or requests.

**Reliability**: 99.99% uptime with multiple redundancies.
