"JPG for photos, PNG for logos" is mostly right. But if you follow the rule without knowing the reason, the exceptions will cost you. To see where the rule holds, the same images were saved in both formats and their file sizes compared.
The key differences
| PNG | JPG | |
|---|---|---|
| Compression | Lossless (pixels stay exactly the same when saved) | Lossy (drops less important information) |
| Transparent background | Yes | No |
| Re-saving | Same no matter how many times | Loses a little quality each time |
| Best for | Flat colors, text, lines, logos, screenshots | Photos where colors change continuously |
Measured file sizes
Photos first. Two photos (a chicken dish and a dog, 1280px on the long side) were saved in both formats with this site's converter. The photos and the method are described in How the measurements on this site were made.
| Photo | PNG | JPG quality 95 | JPG quality 90 | JPG quality 80 |
|---|---|---|---|---|
| Chicken | 2.6MB | 497KB | 343KB | 226KB |
| Dog | 2.3MB | 410KB | 272KB | 175KB |
PNG came out at roughly eight to nine times the size of JPG at quality 90. A photo whose colors blend smoothly gives lossless compression very little to work with.
Next, a screenshot or UI-style image: a 1280×720 settings screen drawn for this guide, with a flat-color background, small text and thin lines. It was saved with the same converter.
| Format | File size |
|---|---|
| PNG | 88.0KB |
| JPG quality 95 | 62.7KB |
| JPG quality 80 | 39.9KB |
| JPG quality 60 | 30.9KB |
| WebP quality 90 | 24.7KB |
Here JPG beat PNG even at quality 95. A smaller file means something was thrown away, though, so the picture below shows a 180×56px patch around some text, enlarged 3×.

JPG 95 and 80 are hard to tell apart. At JPG 60, the edges of the small text look smeared and speckled. Images full of text and thin lines show this damage first when you lower the quality. WebP 90 was the smallest of the five and showed no obvious smearing.
One caveat: PNGs written by a browser tend to be larger than PNGs from an optimizing tool. The original of this image was 52.0KB as an optimized PNG, while the PNG this site saved through the browser was 88.0KB. Which format wins depends on the image and on the tool that saves it, so read these figures as the result for this one image.
How to choose
- Photos and images with many gradients: JPG. Start at quality 80 to 90. If file size matters, WebP is worth a look too.
- Logos, icons, UI, screenshots and text-heavy images: PNG. If you need a transparent background, PNG is the only choice of the two.
- Originals you'll edit several times: keep them as PNG and export only the final result as JPG. Re-saving a JPG over and over piles up degradation.
- Email or upload size limits: converting a photo to JPG shrinks it a lot. If the PNG has transparency, choose a background color first.
Try it now
The result screen shows the size before and after conversion, so you can see which format is smaller for your own image.
Convert PNG to JPG Convert JPG to PNGSummaries of both are under PNG and JPG on the Image formats compared page.