AVIF converter and compressor that runs in your browser
Turn PNG, JPG or WebP images into AVIF, the format that often gives the smallest files for photos, or compress AVIF files you already have. Add many images, set the quality and download the results one by one or as a ZIP.
Leave the size empty to keep the original. The ratio is kept and images are never enlarged. Camera data, location and colour profiles are removed.
| Preview | File | Format | Size in px | Original | New | Saving | Status | Actions |
|---|---|---|---|---|---|---|---|---|
How to convert and compress images to AVIF
AVIF is a newer image format based on video compression. At the same visible quality its files are often much smaller than JPG and also smaller than WebP. Encoding takes longer, so this tool works through your images two at a time and shows the progress of each.
- Add your images Drop files onto the box, paste an image or click to choose files. PNG, JPG, WebP and AVIF are accepted, up to 200 files at a time.
- Check the output format and quality AVIF is already selected on this page. The default quality of 60 looks very close to the original for most photos. Raise it for fine detail, lower it for smaller files.
- Choose lossy or lossless Lossy suits photos. Lossless AVIF keeps every pixel but the files are large, so it is rarely the best choice. For graphics, PNG or lossless WebP are usually smaller.
- Resize large images Enter a maximum width or height. Big pictures take much longer to encode, so resizing saves time as well as bytes.
- Check the table and download Read the saving for every file, compare a few in the before and after view and download the files one by one or as a ZIP.
Tips for AVIF
- Start at quality 60 and move in steps of 5. Differences below that are hard to see on screens.
- Resize to the size you actually display. Encoding a 24 megapixel photo can take a long time on a phone.
- Serve AVIF with a WebP or JPG fallback in the picture element if you need to support very old browsers.
- AVIF is excellent for photos and gradients, and less impressive for flat logos. Compare with PNG or WebP for those.
- Keep your originals. Lossy AVIF cannot be turned back into the source image.
Common mistakes
- Setting the quality too low AVIF hides noise well, but very low values smear fine detail such as hair and fabric. Check the before and after view.
- Converting huge images without resizing A very large image is slow to encode and uses a lot of memory. Resize it first or convert in smaller batches.
- Expecting AVIF to win every time For some small or flat images the AVIF file is not smaller. The table shows the real saving, including negative ones.
- Forgetting that some tools cannot open AVIF Many editors, email clients and print services still do not read AVIF. Keep a JPG or PNG for those uses.
Open it pre-filled with a link
Every field accepts a query parameter with the same name, so a link, a script or an AI agent can fill the tool in and run it. Open an example: /tools/avif-converter-compressor/?format=avif&quality=60&maxw=1600
| Parameter | Values | What it does |
|---|---|---|
format | webp · avif · png · jpg (default: avif) | Output format: webp, avif, png or jpg. |
quality | number (default: 60) | Quality from 1 to 100 for lossy output, and for the number of colours in PNG colour reduction. Higher is better and larger. |
mode | lossy · lossless · colors (default: lossy) | lossy or lossless for WebP and AVIF; lossless or colors for PNG (colors reduces the number of colours). JPG is always lossy. |
maxw | number | Maximum width in pixels. Empty keeps the original. Images are never enlarged. |
maxh | number | Maximum height in pixels. Empty keeps the original. Images are never enlarged. |
What this AVIF tool includes
An AVIF encoder and decoder compiled to WebAssembly, so it works in Chrome, Edge, Firefox and Safari and does not depend on what the browser can encode.
- Batch conversion Up to 200 images, processed two at a time in background workers, so the page stays responsive.
- Lossy and lossless AVIF A quality slider from 1 to 100 and an exact lossless mode.
- AVIF decoding in every browser If your browser cannot open an AVIF file itself, a built-in decoder reads it, so you can also convert AVIF to PNG, JPG or WebP.
- Resize while converting A maximum width and height with the ratio kept and no enlarging.
- Results table Formats, pixel size, original and new size and the saving in percent for every file, plus a total.
- Before and after Compare the original with the AVIF result using a draggable divider.
- ZIP download Download all converted files in one archive.
- Private by design All work happens on your device. Nothing is uploaded.
AVIF at a glance
| Lossy AVIF | Lossless AVIF | |
|---|---|---|
| Best for | Photos, gradients and large hero images | Rarely; PNG or lossless WebP are usually smaller |
| Transparency | Yes | Yes |
| Typical size | Often well below JPG and WebP at similar quality | Large |
| Encoding speed | Slow compared with WebP | Slow |
Who uses an AVIF converter
AVIF is worth the extra encoding time wherever images are large and traffic is high.
Performance engineers
Cut the weight of hero images and galleries to improve loading times on mobile networks.
E-commerce teams
Shrink catalogue photos for faster category pages without a visible drop in quality.
Photographers and portfolio owners
Publish sharp, light images for portfolio sites.
Developers
Create AVIF versions of assets for a picture element with fallbacks.
Agencies
Prepare client images in bulk and compare the result before delivery.
AVIF works best as part of a plan: right sizes, a fallback format and lazy loading. We can help with the whole front end; see the related service on this page.
Frequently asked questions
Are my images uploaded to a server?
No. Conversion runs in your browser with WebAssembly code served from this site. Nothing is sent anywhere or stored.
Which browsers can display AVIF?
Current versions of Chrome, Edge, Firefox and Safari display AVIF images. Older browsers and some apps do not, so use a fallback for them.
Is AVIF really smaller than WebP and JPG?
For photos, usually yes, and often by a large margin at similar visible quality. For small or flat images the difference can be small or reversed. The results table shows the real figures for your files.
Why is AVIF encoding slow?
The format is built for strong compression, which takes more computing than WebP or JPG. The tool uses a faster setting for larger images to keep waiting times reasonable.
Does it keep transparency?
Yes. Transparency is kept for AVIF, WebP and PNG output. JPG has none, so transparent areas become white.
Is metadata removed?
Yes. Camera data, location and embedded colour profiles are removed from the result.
Can it convert AVIF to JPG or PNG?
Yes. Add AVIF files and choose PNG or JPG as the output format. If your browser cannot read AVIF itself, a built-in decoder is used.
Is there a size limit?
Up to 200 files at a time, 50 MB per file and 40 megapixels per image. Very large images are slow to encode as AVIF, so resize them first.
Can I open the tool with settings already filled in?
Yes. Add options to the address, for example ?format=avif&quality=60&maxw=1600. The list is in the first tab. You still add the files yourself.
Have a project in mind? Let us talk it through.
Tell us what you want to build or improve. We reply with a clear next step.