Images
WebP vs JPG vs PNG (and AVIF): Measured File Sizes
Which image format to use for photos, screenshots and logos, with file sizes measured on the same images, compatibility problems outside the browser and why browsers cannot create AVIF.
By TooleemPublished Facts checked
Short answer
For photos, WebP at the same quality setting is usually about a quarter smaller than JPG: in our test a 1600-pixel photo was 306 KB as JPG and 222 KB as WebP (−27%). For screenshots, logos and anything with text or flat colour, use PNG or lossless WebP, never low-quality JPG; lossless WebP was 42% smaller than an optimised PNG. AVIF is smaller still, but Chrome’s engine cannot create it from a web page, so in-browser converters there fall back to another format. Keep JPG when the file must open everywhere, including old editors, email clients and upload forms.
Do the calculation
WebP to JPG Converter
Convert a WebP image to JPG in your browser, pick the quality, and download a file that opens everywhere.
On this page
Which format for which image
| Image | Best choice | Why |
|---|---|---|
| Photo on a website | WebP (lossy), or AVIF with a fallback | Smallest files at the same visual quality; all current browsers display both |
| Photo to email, print or upload anywhere | JPG | Opens in every app, camera, printer and form |
| Screenshot, chart, text, UI | PNG or lossless WebP | Sharp edges stay sharp; JPG adds blur and halos around text |
| Logo or icon with transparency | SVG if vector; otherwise PNG or WebP | JPG has no transparency at all |
| Animation | WebP or AVIF instead of GIF | Much smaller than GIF for the same frames |
Measured: one photo in each format
| Format and setting | File size | Compared with JPG quality 80 |
|---|---|---|
| PNG | 3.75 MB | 12.5 times larger |
| JPG, quality 92 | 503 KB | +64% |
| JPG, quality 80 | 306 KB | reference |
| WebP, quality 92 | 423 KB | +38% |
| WebP, quality 80 | 222 KB | −27% |
With a dedicated encoder the gap grows: AVIF at quality 65 came out at 218 KB against 455 KB for JPG at quality 90, with almost the same measured error (PSNR 39.1 dB against 39.4 dB), so about half the size. Google reports WebP lossy files 25% to 34% smaller than comparable JPGs; our −27% sits inside that range.
Measured: a screenshot
| Format and setting | File size | Lossless? |
|---|---|---|
| PNG from the browser (fast compression) | 117 KB | yes |
| PNG, optimised (maximum compression) | 61 KB | yes |
| WebP lossless | 35 KB | yes |
| JPG, quality 80 (browser) | 56 KB | no, text edges blur |
| WebP, quality 80 (browser) | 27 KB | no |
| AVIF, quality 50 | 15 KB | no |
Measured: a logo with transparency
| Format and setting | File size | Transparency |
|---|---|---|
| PNG, optimised | 110 KB | yes |
| WebP lossless | 60 KB | yes |
| WebP, quality 80 | 24 KB | yes |
| AVIF, quality 50 | 8.6 KB | yes |
| JPG, quality 80 (white background) | 18 KB | no, the background turns white |
Compatibility: where WebP still causes trouble
- Chrome, Edge, Firefox, Opera and Safari all display WebP and AVIF, according to MDN’s image format guide.
- Problems usually come from outside the browser: older photo editors, some office software, email clients, and upload forms that accept only JPG or PNG.
- Displaying AVIF is not the same as creating it. Asked for AVIF, the canvas encoder in Chromium 148 (the engine of Chrome and Edge) returned a PNG in our test, so an in-browser converter cannot promise AVIF output.
- Converting a lossy WebP to PNG does not bring back detail; it only makes the file bigger. Convert to PNG only when an app needs a lossless format.
Practical settings
- Resize first. A 4000-pixel photo shown at 1200 pixels wastes most of its bytes; resize it before you choose a format.
- For photos, start at quality 75 to 85 and look at the result at 100% zoom.
- For screenshots, choose PNG or lossless WebP and let an optimiser shrink it.
- To make WebP files for a website, use the image to WebP converter; to send one to someone whose app will not open it, convert it back to JPG.
Note
How we measured
Browser sizes come from Chromium 148’s canvas encoders, the same route in-browser converters use. Optimised PNG, lossless WebP and AVIF were made with libvips 8.17 (sharp 0.34.5). Error is PSNR against the resized original. Your results will vary with the image: noisy photos compress less, flat graphics more.
Do the calculation
WebP to JPG Converter
Convert a WebP image to JPG in your browser, pick the quality, and download a file that opens everywhere.
Tools used in this guide
Sources
The figures and rules in this guide come from these documents.
- An image format for the Web (WebP)Google for DevelopersWebP lossless 26% smaller than PNG; lossy 25% to 34% smaller than comparable JPG.
- Image file type and format guideMDN Web DocsBrowser support and recommended uses of WebP, AVIF, PNG and JPG.
- KSC-2009-3194: aerial view of the Rocket GardenNASA Image and Video LibraryTest photo used for the measurements (photo credit: NASA/Kim Shiflett).
Facts checked

