What this tool does
Choose an AVIF, set a quality from 10 to 100 and download a re-encoded AVIF. The page shows the original size, the new size and the saving. Transparency is kept.
How to use it
- Choose a AVIF file, or drop it on the page.
- Set the quality with the slider. It starts at 65%.
- Press Compress AVIF.
- Check the original size, the new size and the saving. If the new file is larger, the page tells you, and you should keep the original.
- Press the download button to save the result.
Where it runs
The work happens in your browser, using the canvas feature that every current browser has. The image is not uploaded and nothing is stored on this site’s server.
AVIF is the exception. Browsers can’t write AVIF from a canvas, so for AVIF output the tool sends your file to this site’s server, which encodes it with PHP’s GD library. That only works when the server’s GD build supports AVIF, and the tool shows an error when it doesn’t. The upload sits in a temporary folder just long enough for you to download the result (the link lasts 15 minutes). The server refuses images over 50 megapixels and allows 15 conversions a minute.
Your browser has to be able to open AVIF to read the file. Current Chrome, Edge, Firefox and Safari 16.4 and later can. If yours can’t, the tool reports that it couldn’t read the image.
Usually you do not need this
AVIF files are already very compact. If one is too large, the most effective fix is usually to make the image smaller in pixels with the Image Resizer, or to re-create the AVIF from the original JPG or PNG at a lower quality. Re-compressing an AVIF stacks a second round of loss on top of the first.
Quality values
AVIF quality numbers don’t match JPEG’s scale. A value in the 50 to 70 range often looks as good as a much higher JPEG setting. The slider starts at 65 and tops out at 95. Check the result at 100% zoom, especially smooth gradients, where banding appears first.
Limits
- Metadata such as EXIF, location and colour profiles is not carried over.
- Animated images become a single still frame.
- Browsers apply EXIF rotation when they open a photo, so it normally comes out the right way up.
- The page states a 20 MB maximum but doesn’t check it in the browser. Very large images depend on your device’s memory.
- Only one image is handled per run.
If the result is larger than the original, keep the original. For wider compatibility, try AVIF to JPG or WebP compression.
Should I compress an AVIF again?
Rarely. It’s better to resize it or re-create it from the original at a lower quality.
What quality is a good value?
Try 50 to 70, then check the image closely.
Why does the tool say AVIF isn’t available?
AVIF is written on this site’s server because browsers can’t do it. If the server’s image library lacks AVIF support, the tool reports that.
Does it keep transparency?
Yes.
Is my AVIF uploaded?
Yes. AVIF output is encoded on the server, so the file is uploaded and kept only until the download link expires or is used.