Powerful PDF & Screenshot Generation API

Convert HTML to PDFin Seconds

Generate high-quality PDFs and screenshots from URLs or HTML content. Simple API, powerful features, built for developers.

Full Tailwind CSS Support - Style your HTML with Tailwind classes

Everything you need to generate PDFs

Powerful features designed to make PDF and screenshot generation simple and reliable

PDF Generation
Convert any URL or HTML content into high-quality PDF documents with customizable options
  • Custom page formats (A4, Letter, etc.)
  • Landscape/Portrait orientation
  • Custom margins and headers
  • Full Tailwind CSS support - Use any Tailwind utility classes
Screenshot Capture
Capture beautiful screenshots from any URL or HTML with full control over viewport and format
  • PNG, JPEG, WebP formats
  • Full page or viewport capture
  • Custom viewport sizes
Secure & Reliable
Enterprise-grade security with API key management and usage tracking
  • API key authentication
  • Usage monitoring
  • Rate limiting & quotas
Developer Friendly
Simple REST API with comprehensive documentation and code examples
  • RESTful API design
  • Multiple SDK examples
  • Easy integration
Usage Dashboard
Monitor your API usage, manage keys, and track credits in real-time
  • Real-time analytics
  • API key management
  • Usage logs
Cloudflare Powered
Built on Cloudflare's infrastructure for fast, reliable, and scalable performance
  • Global edge network
  • Low latency
  • High availability

Simple, Transparent Pricing

Choose the plan that fits your needs.

Basic
Perfect for getting started
Free
  • 50 credits per month
  • PDF & Screenshot generation
  • API access
Get Started
Popular
Starter
For growing projects
$23/month
  • 5,000 credits per month
  • PDF & Screenshot generation
  • Priority support
  • Usage analytics
  • Extra credits: $0.0046 per credit
Get Started
Growth
For high-volume usage
$48/month
  • 15,000 credits per month
  • PDF & Screenshot generation
  • Priority support
  • Advanced analytics
  • Extra credits: $0.0032 per credit
Get Started

Simple Integration

Get started in minutes with our straightforward API

Example: Generate PDF from URL
JavaScript (Fetch API)
const response = await fetch('https://web2pdf.com/api/create/pdf', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_ID:YOUR_SECRET_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    url: 'https://example.com',
    pdfOptions: {
      format: 'a4',
      landscape: false
    }
  })
});

const blob = await response.blob();
// Use the PDF blob

Ready to get started?

Start generating PDFs and screenshots today. No credit card required.

Get Started Free