PNG vs JPG: which format should you use?
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
| Image | PNG | JPG (quality 75) | Winner |
|---|---|---|---|
| Coffee photo, 600×400 | 429.6 KB | 32.4 KB | JPG, 93% smaller |
| Astronaut photo, 512×512 | 410.7 KB | 32.2 KB | JPG, 92% smaller |
| Website screenshot, 1280×800 | 114.1 KB | 47.7 KB | Depends: 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
| PNG | JPG | |
|---|---|---|
| Compression | Lossless: every pixel kept | Lossy: detail you’re unlikely to notice is discarded |
| Transparency | Yes | No (becomes white) |
| Best for | Logos, icons, screenshots, diagrams, editing | Photos, scans of photos, email attachments |
| Re-saving | No quality loss | Loses a little each time |
| Compatibility | Universal | Universal |
Common mistakes
- Saving photos as PNG. Screenshotting a photo, or exporting from design tools, often produces a PNG 10–15 times bigger than necessary. Convert with PNG to JPG.
- Saving logos as JPG. You lose the transparent background and get fuzzy edges. Keep logos as PNG or SVG.
- Converting JPG to PNG to “improve quality”. It only makes the file bigger: our 86 KB JPG became a 384 KB PNG with exactly the same picture.
Not sure? Drop the image into the compressor, try both formats, and compare sizes and quality with the slider.
More guides
How to reduce image file size: 5 methods, testedResize, lower the quality, change format, strip metadata or set a target size: we measured how much each method shrinks a real photo.How to digitise film negatives with your phonePhotograph film negatives with a smartphone and turn them into natural-looking photos: lighting, setup, camera settings and colour correction.HEIC vs JPG: which photo format should you use?HEIC files are smaller than JPG at the same quality, but not everything can open them. Here’s how the formats compare and how to convert between them.