Compress AVIF images in your browser
Already smaller than JPEG and WebP at matching quality. Squeeze it further with the controls below, running on this device.
or browse your device. Everything is processed on this device
No AVIF to hand?
How to compress an AVIF
One or a hundred. Nothing is uploaded at any point.
60 is a strong default. Drag the divider to check the result.
Files are written straight from memory to your downloads, still as AVIF.
What is an AVIF file?
AVIF is a still-image format built on the AV1 video codec. Alliance for Open Media published it to beat JPEG and WebP on size at matching quality, and on photographs it usually does: 20 to 50% below WebP is common, more against JPEG.
Every current Chrome, Firefox and Safari reads it. Support in image editors and social networks is still catching up, which is why a WebP or JPEG remains the safer hand-off when the file has to open in older software.
Compressing an AVIF here re-encodes it with libavif in this tab. The format stays AVIF. If you need something every device from the last decade will open, convert it rather than compress it.
AVIF compression FAQ
Why is AVIF smaller than WebP?
AV1 predicts and codes detail more efficiently than VP8, which is what WebP is built on. On photographs the gap is real; on flat graphics it is smaller.
Do all browsers support AVIF?
Every current Chrome, Firefox and Safari does. A handful of older corporate browsers still do not, which is when WebP or JPEG is the safer choice.
Why did my AVIF come back unchanged?
The re-encode came out larger than the file you dropped in, so the original was kept. That is common on files that were already encoded carefully (for example by libaom at a high effort). Lower the quality, cap the width, pick Smallest, or set a target size if you still need it smaller.
Will transparency survive?
Not on this path. Re-encoding runs through a canvas that flattens onto white, so transparent areas become white. Keep the original if you need the alpha channel.
Should I use AVIF or WebP?
AVIF when every visitor is on a current browser and size matters most. WebP when you need broader support or when a CDN or CMS still refuses AVIF.
Do my images get uploaded anywhere?
No. Decoding and encoding both run in this tab. There is no upload endpoint in the code.
Related
Same format joins the queue. Anything else re-routes to its own tool.