WebP vs PNG vs JPG: Tested Sizes & Guide
We saved the same photo, screenshot and graphic as JPG, PNG and WebP. See the measured sizes, where each format fails, and a decision table for everyday use.
JPG (also written JPEG), PNG and WebP are the three image formats you meet most often online. They are not interchangeable: the wrong choice gives you a bloated screenshot, a blurry logo or a white box where a transparent background should be.
Format guides usually stop at "JPG for photos, PNG for graphics". To show how big the differences really are, we saved the same three images in all three formats with the encoders this site uses — mozjpeg for JPG, oxipng for PNG and libwebp for WebP — and measured the results.
Quick comparison
Choose JPEG for most photos. It usually produces smaller files. Choose PNG when you need a transparent background or want to keep fine details such as text and screenshot edges sharp.
| JPG | PNG | WebP | |
|---|---|---|---|
| Compression | Lossy | Lossless | Lossy or lossless (this site exports lossy) |
| Transparency | No | Yes | Yes |
| Animation | No | No (APNG is separate) | Yes (this site exports static images) |
| Best for | Photos | Screenshots that must stay exact, logos, editing | Web images |
| Opens everywhere | Yes | Yes | Modern browsers and most current apps; some older software cannot |
Measured: one image, three formats
All files were encoded from the same uncompressed source. JPG and WebP used Quality 80. SSIM (structural similarity) compares each result with the source: 1.000 is identical, and values above roughly 0.95 are usually hard to tell apart at normal viewing size.
| Image | PNG (lossless) | JPG, Quality 80 | WebP, Quality 80 |
|---|---|---|---|
| Photo, 768 × 512 (Kodak test image) | 469 KB | 45 KB · SSIM 0.962 | 31 KB · SSIM 0.965 |
| Web page screenshot, 2880 × 1800 | 428 KB | 230 KB · SSIM 0.996 | 151 KB · SSIM 0.998 |
| Flat graphic with text, 1200 × 630 | 244 KB | 51 KB · SSIM 0.965 | 28 KB · SSIM 0.966 |
What the numbers show:
- PNG is the wrong container for photos. The photo was more than 10 times larger as PNG than as JPG, with no visible benefit at normal size.
- WebP was the smallest in every test and matched or beat JPG's similarity score. On these images it was 31–45% smaller than JPG at the same Quality setting.
- Screenshots compress better than you might expect as JPG or WebP, because large flat areas are cheap to encode. Zoomed in 3×, the text in our Retina screenshot was practically unchanged at Quality 80; artifacts only became obvious around Quality 30. Low-resolution screenshots with small text show damage sooner, so keep PNG when a screenshot will be edited or must stay exact.
- The flat graphic was almost nine times smaller as WebP than PNG, but lossy formats can blur thin edges and fill colors. For a logo that will be placed on many backgrounds, PNG (or SVG) remains the safer master copy.
Your own results will differ with image content, dimensions and settings. Treat these numbers as a guide and compare actual exports.
JPG: best for photos
JPG uses lossy compression: the encoder discards detail that is hard to see, such as fine texture and subtle color variation, to produce much smaller files.
Use JPG for: camera and phone photos, product images, email attachments and any upload form that may not accept WebP.
Avoid JPG for: images that need transparency (transparent areas become a solid color — white in this site's converters), screenshots that must stay sharp, logos and line art.
Does re-saving a JPG keep losing quality?
Not always in the way people expect. In our tests with mozjpeg:
- Re-saving a photo ten times at the same Quality 80 left it essentially unchanged (SSIM 0.948 → 0.947).
- Alternating between Quality 85 and 75, as can happen when different apps save the same file, dropped SSIM from 0.960 to about 0.92 after the second save, then held near that level.
Each time the quality goes down, more is lost — and that loss cannot be undone. We did not test edits such as crops or filters between saves, which change the pixels and can add further loss. If you edit an image repeatedly, keep a lossless master (PNG or the original camera file) and export to JPG once at the end.
PNG: best for exact pixels and transparency
PNG uses lossless compression of the decoded pixels. Converting to PNG does not restore detail that a JPG already discarded; it only stops further loss. PNG supports full alpha transparency.
Use PNG for: logos and icons (or SVG when you have the vector file), screenshots that will be edited or annotated, images with fine text or line art, and working copies you will edit again.
Avoid PNG for: photos you plan to share or put on a web page. As the table shows, the size penalty is large. See how to convert PNG to JPG when you need a smaller photo.
WebP: the modern default for the web
WebP supports lossy and lossless encoding, transparency and animation. The converters on this site export static, lossy WebP, which is the variant measured above.
Use WebP for: images on your own website, blog images, product galleries and screenshots you want to keep readable at a smaller size.
Avoid WebP for: files you send to people or services that may use older software, print shops and upload forms that only list JPG and PNG. If someone cannot open a WebP file, convert it with WebP to JPG or WebP to PNG.
Decision table
| Situation | Use |
|---|---|
| Photo from a camera or phone, to share or upload | JPG |
| Photo or graphic on your own website | WebP |
| Screenshot to read, annotate or edit | PNG |
| Screenshot for a web page | WebP |
| Logo or icon | SVG if available, otherwise PNG |
| Graphic with a transparent background | PNG, or WebP for the web |
| Image you will edit again | PNG (keep the original as the master) |
| Upload form that only lists JPG and PNG | JPG for photos, PNG for graphics |
Converting between formats
All conversions run in your browser without uploading the image:
- JPG to PNG — a lossless working copy for editing; it will not restore lost detail
- PNG to JPG — much smaller photos; transparency becomes white
- JPG to WebP and PNG to WebP — smaller web images; PNG transparency is kept
- WebP to JPG and WebP to PNG — for apps that cannot open WebP
To shrink a file without changing its format, see our tested image compression settings.
Frequently asked questions
Does converting PNG to JPG lose quality? Yes, JPG is lossy. For photos the change is usually hard to see at Quality 80. For screenshots, logos and text, edges can show artifacts, so check the result zoomed in.
Can I restore a JPG's quality by saving it as PNG? No. The PNG is a lossless copy of the already-compressed image, and it will be much larger.
Is PNG always better quality than JPG? PNG keeps every decoded pixel, but that does not make it the better choice for a photo you only need to view. Compare both at the size people will see.
Should I convert all my images to WebP? For your own website, it is usually worthwhile. For files you share with other people, JPG and PNG are still the most compatible.
Sources and maintenance
Measurements taken on 2026-11-26 with the @jsquash mozjpeg, oxipng and libwebp builds used by this site. Codec updates can change exact sizes.