JPEG vs PNG vs WebP: which one to use
Updated
Use JPEG for photos, PNG for screenshots, text and flat graphics, and WebP for either wherever it's accepted, because it's usually the smallest. Anything with see-through parts needs PNG or WebP: JPEG has no transparency. If you'd rather not choose, let each image decide: PicPinch tries the formats on every image and keeps the smallest file that still looks the same.
The short version
| JPEG | PNG | WebP | |
|---|---|---|---|
| How it compresses | Lossy | Lossless | Lossy or lossless |
| Transparency | No | Yes | Yes |
| Best for | Photos | Screenshots, text, logos, icons, diagrams | Both, where it's accepted |
| Watch out for | Soft halos around sharp text and edges; every re-save loses a little more | Photos saved as PNG are many times bigger than they need to be | Some upload forms and older software accept only JPEG or PNG |
Photos: JPEG
A photo is full of fine grain and smooth changes of colour. PNG is lossless, so it stores every one of those pixels exactly, and a photo saved as PNG ends up huge. JPEG keeps what the eye notices and drops the rest, which is why it has been the format for photos for decades.
Photos saved as PNG are where the biggest savings hide. In our tests, 32 photos that had been saved as PNG came out at about 13% of their original size with PNG and JPEG only, almost all of it from turning them into JPEG, and at 11.8% with WebP allowed.
Screenshots and graphics: PNG
Screenshots, diagrams and logos have large areas of one colour and hard edges around text. JPEG blurs those edges, leaving faint smudges around letters. PNG keeps them crisp. A screenshot rarely needs millions of colours either, so a PNG with a smaller palette is often far smaller than the original and looks identical.
In our tests, 24 app and website screenshots came out at 22.5% of their original size with WebP allowed. The winning format was lossless WebP for 13 of them, PNG for 9 and lossy WebP for 2.
Where WebP fits
WebP can be lossy like JPEG or lossless like PNG, and it supports transparency, so it can replace either. It's usually the smallest of the three: across our 204 test images at our default quality, the files came to 35.6% of the originals' total size with PNG and JPEG only, and 26.6% with WebP allowed. With WebP allowed, lossy WebP won for 30 of 32 photos and lossless WebP for 29 of 30 icons.
All current major browsers show WebP (browser support on Can I use), so it's a safe choice for your own website. The catch is everywhere else: visa and job application forms, some shops and older software still take only JPEG or PNG. For those, stick with the two classics.
See-through parts
JPEG can't store transparency, so product cut-outs, logos on a clear background and icons need PNG or WebP. This is also where WebP helps most: in our tests, 28 photos with transparent backgrounds came out at 9.4% of their original size with WebP allowed, because PNG has to keep every edge pixel exactly or fall back to a limited palette.
What PicPinch does for you
You pick how adventurous to be, and the engine does the rest for each image on its own:
- Most compatible: PNG and JPEG only, for files you'll email or upload to forms.
- Smallest: also tries WebP, for your own website.
- Keep original type: a PNG stays a PNG and a JPEG stays a JPEG.
Every allowed format is compressed to the same quality score, and the smallest one that reaches it wins. If nothing comes out smaller while still looking the same, you get your original back. When the format changes, the result says so, and one click keeps the original format instead. How it works has the details.
Questions
- Is WebP lower quality than JPEG?
- No. Quality depends on how hard a file is compressed, not on the format's name. PicPinch compresses every format to the same quality score, so a WebP and a JPEG of the same image look the same; the WebP is just usually smaller.
- Should I convert all my images to WebP?
- For your own website, usually yes. For files you'll send to other people or upload to forms, JPEG and PNG are safer, because not every form or program accepts WebP.
- Why did my PNG photo become a JPEG?
- Because a JPEG was the smallest file that still looked the same. If you need PNG, choose Keep original type, or keep PNG for that one image from its menu.
- What about AVIF?
- AVIF can be smaller still, but PicPinch doesn't make AVIF files yet. It does read them, in browsers that can open AVIF.
Try it on your own images: compress images, or convert with PNG to WebP, JPG to WebP and WebP to JPG.