AVIF compressor
Compress to AVIF.
This runs in your browser. Nothing is uploaded.
About AVIF compressor
Encodes your image as AVIF at a quality you set, in your browser, producing the smallest files any current browser can display — at the cost of a slower encode.
When image weight is the thing standing between a site and a decent loading score, AVIF is the strongest option available. It routinely lands 20 to 50 percent below an equivalent WebP and a long way below JPEG, and it holds gradients — skies, studio backdrops, subtle vignettes — without the banding that gives a cheap JPEG away.
AVIF borrows its compression from the AV1 video codec, which searches much harder for redundancy than a still-image codec traditionally does. That search is where the small file comes from, and also where the time goes: the encoder is doing real work on your CPU, in your tab, not on a rack of servers somewhere. A large photograph can take several seconds. Nothing is uploading during that pause.
If the AVIF encoder cannot load in your browser, the tool falls back to WebP rather than failing outright — check the extension on the file you downloaded to see which one you got. Treat AVIF as a delivery format for the web rather than an archive format. Support outside browsers is still thin, and you will want the original if you ever need a different format.
How to use AVIF compressor
- 1Drop a PNG, JPEG or other image onto the panel, or click to browse.
- 2Set the quality. AVIF stays clean at values that would visibly hurt a JPEG, so try lower than you think.
- 3Click Compress & download and give the encoder a few seconds on a large image.
What it won't do
- Noticeably slower than JPEG or WebP, especially on large images and older hardware.
- Falls back to WebP without a warning if the AVIF encoder is unavailable.
- Poorly supported outside browsers, so keep your original for anything else.
Common questions
Is AVIF worth using instead of WebP?
For images you serve on a website, usually yes — expect another 20 to 30 percent off a matched-quality WebP, with visibly better gradients. Against that, encoding takes noticeably longer and support outside browsers lags. When you encode once and serve many times, AVIF wins the arithmetic. For a one-off file going to a colleague, WebP is less trouble.
Why is AVIF compression so slow?
Because the encoder is genuinely expensive to run, and here it runs on your own processor rather than a server. AV1-derived encoding explores a far larger space of possible encodings than JPEG does, which is precisely why the files come out smaller. Several seconds on a 12-megapixel photo is normal, and an older phone will take longer.
Why did I get a .webp file instead of .avif?
Your browser could not load the AVIF encoder, so the tool fell back to WebP instead of erroring out. What you have is a valid, well-compressed WebP rather than an AVIF. Trying again in a current version of Chrome, Firefox or Edge normally gets you the AVIF encoder.
Can I compress a transparent image as AVIF?
Yes, with a full alpha channel, so a transparent PNG keeps its transparency through the conversion. The format also supports higher bit depths and wider colour gamuts than JPEG, though this tool encodes ordinary 8-bit output. For a transparent graphic headed to the web, AVIF is usually the smallest thing you can serve.
Related tools
Why this one doesn't upload your file
There is no server to upload to. This page is a static file, and the work happens in your browser using the same graphics and WebAssembly code that renders every other site you visit. Your file is read from disk into memory, processed, and handed back as a download. Once the page has loaded you can disconnect from the network entirely and it keeps working. The longer explanation