Add up to 30 AVIF images (up to 50 MB each) and recompress them with libavif in your browser. Set the quality (10 to 100, default 85) and the encoding effort: fast, balanced or smallest file. Transparency is kept, the output is 8-bit, and any image that wouldn't get smaller is returned unchanged.
Compress AVIF images privately
This AVIF compressor makes AVIF files smaller without uploading them. Encoding runs on your own device with libavif compiled to WebAssembly.
AVIF (AV1 Image File Format) is based on the AV1 video codec. It usually produces smaller files than JPEG and WebP at similar visual quality. The format can also store HDR, wide color gamuts and up to 12 bits per channel, although this compressor works with standard 8-bit images.
Even AVIF files can often shrink further. Files saved with conservative quality settings or converted from other formats with default encoder settings frequently carry more data than they need. Adjusting the quality lets you match the file size to how the image will be used.
AVIF's main cost is encoding time. AV1 is computationally heavy, so encoding an AVIF takes longer than a JPEG or WebP, especially for large images on slower devices. The effort setting helps: fast finishes sooner, smallest file spends more time to save extra bytes, and balanced sits between them.
When to compress AVIF files
Compress AVIF files when every kilobyte counts: hero images that decide Largest Contentful Paint, large product and portfolio photos, and pages that need to load quickly on mobile connections. AVIF suits photos with natural variation. For flat graphics and text, lossless WebP or PNG may still be the better choice.
Another common job is recompressing AVIF files made by converters that use a safe, high quality setting. Bringing the quality down to what you actually need can shrink them a lot, and on busy sites smaller images also mean lower bandwidth and CDN costs.
AVIF format details
AV1 compresses images with flexible block sizes up to 128 × 128 pixels, many prediction modes, adaptive quantization and several transform types. The quality setting controls how coarsely the encoder quantizes the image. The scale isn't linear: some steps save a lot of space with no visible change, while others at the low end bring visible blur. Start around 70 to 80 and compare.
AVIF supports chroma subsampling, alpha channels compressed separately from the color, and higher bit depths. In this tool, transparency is kept and the output is 8-bit.
Every current major browser supports AVIF, including Chrome, Firefox, Safari and Edge, but older versions don't. On websites, serve AVIF with a WebP or JPEG fallback in a <picture> element.
At low quality, AVIF tends to blur fine textures instead of showing blocks, and it can show ringing around sharp edges and banding in smooth gradients. Many people find this softer kind of artifact less distracting than JPEG blocking.
FAQ: AVIF Compressor
Do you upload my AVIF images?
No. Compression runs in your browser, and your images never leave your device.
Is AVIF better than WebP?
For compression, usually yes: AVIF files are typically smaller than WebP and JPEG at similar quality, and the format can store HDR and wide color. The tradeoffs are slower encoding and less support in older browsers and software.
What quality setting should I use?
Start around 75 and compare with the original. AVIF holds up well at lower settings than JPEG or WebP. Stay higher for faces and fine textures, and go lower for simple scenes.
Will transparency be preserved?
Yes. Transparent areas stay transparent. Very low quality settings can soften the edges around them, so use a moderate setting for logos and cut-outs.
Can I compress multiple AVIF files at once?
Yes. Add up to 30 AVIF files and compress them with the same settings. AVIF encoding is demanding, so large batches take a while on slower devices. Results download one by one or as a ZIP.
Why is AVIF encoding slow?
The AV1 codec searches many ways to predict and compress each part of the image, which takes a lot of computation. That is what makes the files small. The time depends on your device, the image size and the effort setting; choose fast if you're in a hurry.
Does AVIF support HDR and wide color gamut?
The format does, with wide color gamuts such as BT.2020 and up to 12 bits per channel. This compressor works with standard 8-bit images, though, so HDR and high bit depth are not kept in the output. Keep HDR originals if you need them.
What causes AVIF compression artifacts?
Low quality settings. AVIF artifacts show up as blurred fine textures, ringing around sharp edges or banding in smooth gradients. Raise the quality if you see them.
Is there a file size limit?
Each file can be up to 50 MB and 64 megapixels, with up to 30 files per batch. Very large images need a lot of memory and time to encode, so on slower devices compress them a few at a time.
Why do some AVIF images compress better than others?
It depends on the content and on how the file was saved. Photos with soft edges and moderate detail compress very well, while fine textures, noise and sharp edges need higher quality. Files that were already heavily compressed have little left to save.