Skip to content
Image Conversion PDF to JPG

PDF to JPG API: High-Resolution Page Thumbnails

Stop wrestling with blurry PDF thumbnails. Convert PDF pages to crisp JPG images programmatically—perfect for previews, galleries, and web display. No manual screenshots, no quality loss.

No credit card required • Free tier available

8,700+ teams use xspdf
Median latency: 420ms
99.95% uptime SLA

PDF to JPG Example

REST API
curl -X POST https://api.xspdf.com/v1/convert/pdf-to-jpg \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/doc.pdf",
    "dpi": 300,
    "pages": "1-3"
  }'

Speed

420ms

Success

99.95%

DPI

300

99.95%

Success Rate

420ms

Avg Response

60M+

Pages Converted

300 DPI

Max Resolution

Why PDF Thumbnails Are Always Blurry

You need to show PDF previews in your web app, but browser-generated thumbnails are pixelated and slow. Manual screenshot tools don't scale, and existing libraries crash on complex PDFs.

Pixelated Previews

Low-resolution thumbnails make your document gallery look unprofessional and hard to navigate.

Slow Client-Side Rendering

Rendering PDFs in the browser tanks performance and crashes on mobile devices.

Manual Screenshot Hell

You're manually creating thumbnails for every PDF upload—wasting hours every week.

Convert PDF Pages to Crisp JPG Thumbnails Instantly

300 DPI High Resolution

Generate pin-sharp JPGs at up to 300 DPI—perfect for print previews and high-quality web galleries.

Convert Specific Pages or All

Extract page 1 for previews, or convert all pages to build image galleries—your choice.

One API Call, Done

Pass a PDF URL, get back an array of JPG URLs in under 500ms. No servers, no dependencies.

Read the FAQs

Python Example

import requests

response = requests.post(
    "https://api.xspdf.com/v1/convert/pdf-to-jpg",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
    json={
        "url": "https://example.com/doc.pdf",
        "dpi": 300,
        "pages": "1"
    }
)

images = response.json()["images"]
print(f"Thumbnails: {images}")

Everything You Need for Production-Grade PDF to JPG

Built for developers who need reliable, fast, and accurate PDF to image conversion at scale.

Custom DPI Settings

Choose from 72, 150, 200, or 300 DPI based on your needs—web thumbnails or print-ready images.

Page Range Selection

Convert specific pages, ranges, or all pages. Perfect for generating cover thumbnails or full galleries.

Quality Control

Adjust JPG compression quality from 1-100 to balance file size and visual quality.

Secure Processing

Files are processed in isolated containers and deleted after 1 hour—zero data retention.

Blazing Fast Processing

Median response time under 500ms per page. Convert 10-page PDFs in under 2 seconds.

Webhook Notifications

Get real-time updates when conversions complete—perfect for async workflows and batch jobs.

FAQ: PDF to JPG Conversion

What resolution should I use for web thumbnails?
Use 72-150 DPI for web thumbnails and 300 DPI for print previews. Higher DPI creates larger files but sharper images.
Can I convert all pages or just specific pages?
Yes. Pass page numbers, ranges (e.g., "1-5"), or leave blank to convert all pages. Perfect for creating cover images or full galleries.
What's the maximum PDF size for conversion?
Up to 100MB and 200 pages per PDF. Most 50-page PDFs convert in under 5 seconds. Contact support for larger files.
How do I control JPG file size?
Adjust the quality parameter (1-100) and DPI setting. Lower quality and DPI create smaller files. 72 DPI at 85 quality is ideal for web.
Are the images stored permanently?
No. All images are deleted after 1 hour. Download and store them in your own S3 bucket or CDN for permanent storage.

Ship Crisp PDF Thumbnails in Production Today

Join 8,700+ teams converting PDF to JPG with zero errors. Start free, scale to millions of conversions.

Related: PDF to PNGPDF to TIFFJPG to PDF