PNG vs JPG for PDF pages: which should you pick?

Updated 2026-08-19 · 5 min read

Short answer: Choose PNG when the page contains text, tables, line art or screenshots, or when you need a transparent background: it is lossless and keeps letter edges perfectly sharp. Choose JPG when the page is dominated by photographs, where it produces a file roughly three times smaller with no visible difference.

The two formats were designed for different pictures. JPEG was built in 1992 for photographs, where smooth gradients hide the detail it discards. PNG arrived in 1996 for the opposite kind of image: flat colour, hard edges, screenshots, logos and diagrams. A PDF page can be either of those things, which is why there is no single right answer.

The comparison in one table

PNGJPG
CompressionLossless (DEFLATE)Lossy (discrete cosine transform)
Text and line edgesPixel-exact, no artefactsGrey halo and blocking, worse at low quality
PhotographsFaithful but very largeExcellent, tiny for the quality
TransparencyYes, full 8-bit alpha channelNone, transparent areas become white or black
Typical A4 text page at 144 DPIAbout 380 KBAbout 160 KB at quality 90
Typical A4 photo page at 144 DPIAbout 3.2 MBAbout 420 KB at quality 90
Re-saving repeatedlyNo degradation everDegrades a little each save
Colour depthUp to 16 bits per channel8 bits per channel
Universal supportYesYes

PNG and JPG compared for PDF page exports.

Text sharpness is the deciding factor

JPEG works on 8 × 8 pixel blocks and throws away the high-frequency information inside each one. High frequency is exactly what a letterform is: a hard black-to-white transition in the space of one or two pixels. The encoder cannot represent that cheaply, so it approximates, and the approximation shows up as a faint grey shimmer around every character. On a photograph of a beach, the same behaviour is completely invisible.

This gets worse as the resolution drops. A 300 DPI JPG of a page of body text looks fine because each letter is 30 or 40 pixels tall. The same page at 72 DPI, where a letter is 8 pixels tall, is a mess in JPG and still perfectly legible in PNG.

Tip: A simple rule that almost always works: if you would call the page a document, use PNG. If you would call it a photo, use JPG. Mixed pages follow whichever dominates the area.

Transparency

JPEG has no alpha channel at all, so a transparent background gets composited onto something opaque, usually white, occasionally black, during export. PNG stores a full 8-bit alpha channel, meaning each pixel can be anywhere from fully opaque to fully clear, with soft anti-aliased edges in between.

This matters for the specific job people search for: getting a PDF page out with a transparent background, so a logo or a stamp can sit on top of something else. Two things to know before you try it.

  1. Render as PNG Open the file in the PDF to JPG tool, choose PNG, and turn on the transparent background option if the page has no painted background of its own.
  2. Check the corners Open the result in any image viewer that shows a checkerboard for transparency. Solid white corners mean the PDF painted a background, and no export setting will change that.
  3. Remove the white if you have to In GIMP use Colors → Color to Alpha with white as the target. In Photoshop, use the Channels panel or Select → Color Range. Both leave a slight fringe on anti-aliased text.
  4. Save as PNG-24 PNG-8 only supports one fully transparent index colour, which produces hard jagged edges. PNG-24 with alpha keeps the soft edges intact.

Screenshots and scans

Screenshots are the strongest case for PNG. A user interface is flat colour, thin one-pixel borders and small text, everything JPEG handles badly. A PNG screenshot is often *smaller* than the JPG, because large areas of identical colour compress extremely well under DEFLATE.

Scans go the other way. A scanned page is photographic in nature: paper texture, scanner noise and slight tonal variation everywhere. PNG has to store all of that noise faithfully, so a 300 DPI PNG scan can hit 8 MB per page while a quality-85 JPG of the same scan is 400 KB and looks the same. Scanned archives use JPEG for exactly this reason. If your scans are going into a document, compressing the PDF usually just means re-encoding those images.

What about WebP?

WebP does both jobs: lossless mode for graphics, lossy mode for photos, and an alpha channel in both. It typically lands 25 to 35 percent smaller than the equivalent PNG or JPG. Every current browser supports it. The catch is everything that is not a browser, older printing workflows, some office suites and a few document management systems still reject it, so use WebP when the destination is the web and PNG or JPG when the destination is anything else.

Quick decision guide

Your page is…Export as
Body text, a table or a contractPNG
A screenshot of an app or a websitePNG
A logo or a signature that needs a clear backgroundPNG with alpha
A chart, a diagram or line artPNG
A photograph, or a page that is mostly one photoJPG, quality 85 to 90
A scanned page of a book or a formJPG, quality 85
Anything going straight onto a web pageWebP, PNG or JPG as a fallback
Anything going to a print shopPNG or TIFF at 300 DPI

Export any PDF page as PNG or JPG, at the resolution you choose, entirely in your browser.

Note: Whichever you pick, remember that an exported page image is no longer searchable text, it is pixels. If you need the words back, run the image through OCR or keep the original PDF alongside the image.

Frequently asked questions

Is PNG or JPG better for a PDF page?

PNG for pages of text, tables, diagrams or screenshots, because it keeps edges pixel-exact. JPG for pages that are mostly photographs, because it is around three times smaller with no visible difference on continuous-tone images.

Can I export a PDF page with a transparent background?

Only if the page does not paint its own background. Most documents draw a white rectangle first, so the export is white regardless of the setting. Logos and single-object PDFs usually do render with transparency.

Why does my JPG text look fuzzy?

JPEG discards high-frequency detail in 8 × 8 blocks, and the hard edges of letters are exactly that detail. The result is a grey halo around characters. Export as PNG, or raise both the quality setting and the resolution.

Does PNG lose quality when I save it again?

No. PNG compression is lossless, so you can open and re-save a PNG any number of times and the pixels stay identical. JPG loses a little detail on every save, which compounds over several rounds.

Should I use WebP instead?

Use WebP when the image is going onto a web page, it is typically 25 to 35 percent smaller than PNG or JPG with an alpha channel in both modes. Stick with PNG or JPG for print shops, office documents and older software.

Tools

Keep reading