Compress AVIF Files Online

Shrink AVIF files with our free online AVIF compressor. Next-generation image format with superior compression and HDR support. Perfect for cutting-edge web applications. Lossy and lossless compression available.

Also compress: PNG · JPEG · WebP · All Formats

Drop your AVIF images here

or pick them from your device

Uploaded over HTTPSDeleted after processingNo account needed

Three steps, no account

Everything happens after one drop. You can compare before and after before you keep anything.

1

Drop your AVIF files

Up to 5 at a time. PNG, JPEG, WebP and AVIF all work in the same batch.

2

Pick how hard to push

Lossless keeps every pixel. Lossy shrinks more. Custom aims at a size you set.

3

Compare, then keep

Slide between the original and the result. Download one file or all of them.

Why use our AVIF compressor?

Modern

Next-generation compression

AVIF uses the AV1 video codec for still images, achieving better compression than JPEG and WebP at similar quality.

HDR

HDR support

AVIF is the only web format that supports high dynamic range, wide color gamut, and 12-bit color depth.

Small

Maximum compression

For photographs, AVIF usually produces the smallest files. Check the result in the list, because the final file may not match the target exactly.

When AVIF vs JPEG

AVIF

Use AVIF for:

Photographs where maximum compression matters, HDR images, wide color gamut content, modern browser audiences.

JPEG

Use JPEG for:

Older browser support, social media platforms that don't accept AVIF, compatibility with legacy workflows.

A Practical Guide to Compressing AVIF Images

When AVIF is the right choice, and when it is not

AVIF works well for photographs, hero images, product shots and any picture where bandwidth matters and the audience uses a current browser. It handles smooth gradients and fine detail well, and it supports transparency and HDR color, so it can replace both JPEG and PNG in many places on a website.

It is a weaker fit when the file has to open everywhere. Some email clients, office programs, older phones, print workflows and image editors do not read AVIF. Microsoft documents that Outlook does not display AVIF in email bodies. If the image is going to be attached to a message, uploaded to a platform that only accepts JPEG or PNG, or opened in older software, use the JPEG compressor or the PNG compressor instead. For a broader comparison of the three formats, read AVIF vs WebP vs JPEG.

Lossless or lossy for AVIF

Lossless mode keeps every pixel exactly as it was. That makes it the right choice for screenshots, diagrams, UI mockups and files you plan to edit again. The cost is that lossless AVIF files are usually much larger than lossy ones, and for photographs the saving over the original can be small.

Lossy mode discards detail the eye is least likely to notice, and this is where most of the size reduction comes from. It is the better default for photos on web pages. The quality value is a trade-off, not a target: lower numbers give smaller files and more visible artifacts such as smeared texture, blocky skies and soft edges around text. Always look at the before and after view before you publish. If you want to understand what the encoder is doing, how AVIF compression works explains it in more detail, and lossy vs lossless compression helps you pick a mode.

Suggested settings for common uses

These are starting points, not rules. Images differ a lot, so adjust after checking the result.

  • Website photos: use Lossy mode and check the compare view. Resize the image to the largest size it is actually displayed at before uploading.
  • Graphics with transparency: try Lossy first and inspect the edges. If halos or color shifts appear, switch to Lossless.
  • Email and messaging: AVIF is a poor choice here because support is uneven. Convert to JPEG or PNG for sharing.
  • Social media: platforms differ in which formats they accept, so JPEG or PNG is the safer upload.
  • Archiving: keep the original file untouched. If you also want a compact copy, use Lossless mode so nothing is thrown away.

Custom settings

Custom mode shows fields for quality, target size in KB, maximum width and maximum height. Maximum width and height are meant to cap the pixel dimensions of the output, and the target size is meant to steer the final file size. Leave a field empty to leave that setting alone.

Custom settings are not applied reliably at the moment. In our own checks, entering a target size, a quality value or a maximum width did not change the result the way these fields describe. Treat the fields as a request, and compare the original and compressed sizes in the results table before you use the file.

Why an AVIF file may barely shrink

AVIF is already an efficient format, so a file that was exported from a good encoder has little redundancy left to remove. Lossless mode in particular may change the size very little. Running a lossy file through lossy compression again also adds a second round of quality loss, so repeated passes give diminishing returns and make artifacts worse.

If the saving is small, the options that still help are resizing the image in an editor first, or going back to the original source file and compressing that once. Compressing from the original is nearly always better than compressing a copy of a copy. The AVIF optimization guide covers this in more depth.

Serving AVIF with a fallback

AVIF is supported in Chrome 85 and later, Firefox 93 and later, Safari 16.4 and later, and Edge 121 and later. Visitors on older versions will not see an AVIF image, so wrap it in a picture element and list a fallback. The browser uses the first source it understands.

<picture>
            <source srcset="photo.avif" type="image/avif">
            <source srcset="photo.webp" type="image/webp">
            <img src="photo.jpg" alt="Describe the image" width="800" height="600">
            </picture>

You can produce the WebP version with the WebP compressor and the JPEG version with the JPEG compressor. Keep the width and height attributes on the img tag so the page does not jump while images load.

Common problems and fixes

  • The result is bigger than the original: the source was probably already well compressed. Keep the original.
  • Banding in skies or gradients: raise the quality a little. Heavy compression shows up first in smooth areas.
  • Soft or smudged text: screenshots and text are better in Lossless mode or as PNG.
  • The file will not open in an app: the program may not read AVIF. Convert to JPEG or PNG for that use.
  • An animated file looks wrong: animated AVIF is not something this tool is verified for. Check the compare view, and keep the original.

How to compress an AVIF file here

  1. Drop up to 5 files onto the upload area, or press Choose files to compress. PNG, JPEG, WebP and AVIF are accepted.
  2. Pick Lossless, Lossy or Custom. Custom mode has extra fields, but they are not applied reliably yet, so check the result size.
  3. Press Compress AVIF and wait for each row in the results table to finish.
  4. Compare the original and compressed sizes, then open the compare view to check the image by eye.
  5. Download files one at a time, or as a ZIP.

Files are uploaded to our servers over HTTPS and deleted automatically after processing. No registration is needed. If you are working with other formats, the WebP, JPEG and PNG tools work the same way.

Frequently asked questions

Which browsers support AVIF?

Chrome 85 and later, Firefox 93 and later, Safari 16.4 and later, and Edge 121 and later. Keep a WebP or JPEG fallback if you need older browsers.

Can this tool compress animated AVIF?

Animated AVIF is not something this tool is verified for. If you try it, check the result in the before and after view before using the file.

Why is my AVIF file not much smaller?

AVIF files are already efficiently compressed, so lossless mode may change them very little. Resizing the image in an editor before uploading usually saves more than re-encoding it.

Are my AVIF files uploaded?

Yes. Files are uploaded to our servers over HTTPS, compressed, and deleted automatically afterwards.