PNG vs JPG: which format should you use?

By Le Roux · Published 30 October 2026 · 5 min read

PNG and JPG are the two formats everything can open, but they are built for different jobs. Picking the wrong one can make a file ten times bigger than it needs to be.

The one-sentence rule

JPG for photos, PNG for graphics. Photos are full of fine, random detail that JPG can simplify without you noticing. Screenshots, logos and diagrams have flat colours and sharp edges that PNG stores perfectly and compactly.

What happened in our tests

ImagePNGJPG (quality 75)Winner
Coffee photo, 600×400429.6 KB32.4 KBJPG, 93% smaller
Astronaut photo, 512×512410.7 KB32.2 KBJPG, 92% smaller
Website screenshot, 1280×800114.1 KB47.7 KBDepends: JPG is smaller but smudges text

PNG sizes are after lossless optimisation. For the screenshot, JPG was smaller, but text edges picked up faint smudges. WebP produced a cleaner result than JPG at only 32.3 KB. That is why we recommend WebP for screenshots on websites.

Side by side

PNGJPG
CompressionLossless: every pixel keptLossy: detail you’re unlikely to notice is discarded
TransparencyYesNo (becomes white)
Best forLogos, icons, screenshots, diagrams, editingPhotos, scans of photos, email attachments
Re-savingNo quality lossLoses a little each time
CompatibilityUniversalUniversal

Common mistakes

Not sure? Drop the image into the compressor, try both formats, and compare sizes and quality with the slider.

More guides