AVIF, WebP or JPEG XL.
All three weigh less than JPEG, but not by the same amount, nor everywhere. We measured them at the same perceived quality.
Published on
How we measured
Comparing formats “at quality 80” is meaningless: AVIF's 80 isn't JPEG's 80. The fair way is to match what you see. For that we use SSIMULACRA 2, a perceived-quality metric: at 80 you can't tell the image apart from the original side by side, and at 90 not even up close.
For each photo and each format, Apolo finds the lowest quality that reaches that score, and we compare the sizes.
If you can't tell side by side (score 80)
If you can't tell even up close (score 90)
At high quality, JPEG XL pulls ahead (41% less than JPEG) with AVIF close behind (36%). At tighter quality, AVIF is the lightest (25%). WebP sits in between, and its advantage grows with quality.
Where each one opens
WebP
In every current browser and almost any app. The safest.
AVIF
In current browsers (Chrome, Edge, Firefox, and Safari for years now) and in more and more apps.
JPEG XL
Safari opens it; other browsers are getting there. Before serving it alone, check caniuse.com.
JPEG
Everywhere, including email, printers and old software.
Which to choose
For a website
AVIF, with WebP or JPEG as a fallback in a <picture> for whatever can't open it.
To share without thinking
WebP, or JPEG if it goes somewhere old.
To archive at high quality
JPEG XL. It also recompresses the JPEGs you already have without losing anything.
Screenshots, logos and graphics
Lossless WebP or optimized PNG.
Optimize images for the web →Compress without losing quality →
Try it with your photos
The same, with your images: Apolo converts to all four formats and keeps the lightest for each photo.
apolo lote photos/ --formato avif,jxl,webp,jpeg --objetivo 80 --mas-ligero
Keep reading
- Compress without losing qualityLossless or with a loss you can't see: what each path saves and how to know it doesn't show.
- Optimize images for the webSize, format, quality and the HTML to serve them: what really makes a website load fast.
- Convert images to WebPOne photo or a whole folder, with the app or the terminal, and how much you really save.