PDF to PNG or JPG: which format and DPI to pick

Rendering PDF pages to images: when PNG beats JPG, when JPG wins, how DPI drives file size, and settings for thumbnails, previews and print, with real tradeoffs.

Sharp text suits PNG, while a photo suits JPG

The PDF to Image API offers JPG and PNG, at 36 to 300 DPI. The right pick depends on what is on the page.

JPG for photos and scans

JPG compresses smooth, continuous tones very well. A scanned page, a brochure full of photos, or a slide with gradients is usually 3 to 10 times smaller as JPG than as PNG, with no visible difference at normal size.

JPG's weakness is hard edges. Around text and thin lines it makes faint ripples, called artifacts. At quality 85 and above you rarely notice them; at 60 you do.

PNG for text and line art

PNG is lossless. Text, tables, charts and drawings stay perfectly crisp. For a page that is mostly white with black text, PNG can even be smaller than JPG, because large flat areas compress very well without loss.

PNG's weakness is photos: a full-page photo as PNG is huge.

A quick rule

Page content Format
Scans, photos, brochures JPG, quality 80 to 85
Text documents, invoices, forms PNG
Charts and drawings PNG
Mixed, for small thumbnails JPG, quality 70

DPI drives size more than format

Pixel count grows with the square of the DPI. Going from 150 to 300 DPI makes four times the pixels and roughly four times the file. Choose the DPI from the display size first, then the format.

Use DPI
Thumbnails in a list 36 to 72
Preview on screen 96 to 150
Zoomable detail, OCR input 200 to 300
Print 300

Transparency

Rendered pages have a white background, as on paper, in both formats. If you need a transparent background, PDF to image is not the right tool; export the artwork from its source instead.

Try both formats on one of your files with the free PDF to JPG tool, and compare the sizes it reports.