What Is AVIF? Tested vs JPG & WebP Sizes
AVIF is an AV1-based image format. We compared AVIF, WebP and JPG on photos, a screenshot and a graphic to show real size savings, encoding time and the compatibility checks to make.
AVIF (AV1 Image File Format) stores still images using the AV1 video codec from the Alliance for Open Media, whose members include Google, Apple, Mozilla, Netflix and Amazon. It is often described as "half the size of JPEG", but the real saving depends heavily on what you compare it with.
To give concrete numbers, we encoded the same images as AVIF, WebP and JPG with the encoders behind ConverterTo's converters (libavif via @jsquash, libwebp and mozjpeg) and measured size, similarity to the source and encoding time.
What AVIF supports
| JPG | WebP | AVIF | |
|---|---|---|---|
| Lossy compression | Yes | Yes | Yes |
| Lossless compression | No | Yes | Yes (this site exports lossy) |
| Transparency | No | Yes | Yes |
| HDR and wide color | No | No | Yes in the format; viewer support varies |
| Animation | No | Yes | Yes in the format (this site exports still images) |
Measured: AVIF vs WebP vs JPG
Test images: five photos from the Kodak Lossless True Color Image Suite (768 × 512), a 2880 × 1800 web page screenshot and a 1200 × 630 flat graphic with text. SSIM compares each result with the source: 1.000 is identical, and above roughly 0.95 is usually hard to tell apart at normal size.
At each converter's default setting
The tools on this site use different defaults per format: JPG 92, WebP 90, AVIF 50.
| Photos (average of 5) | Size | SSIM |
|---|---|---|
| JPG, Quality 92 | 129 KB | 0.980 |
| WebP, Quality 90 | 91 KB | 0.984 |
| AVIF, Quality 50 | 32 KB | 0.948 |
The AVIF files were a quarter of the JPG size — but zoomed in 2× on a brick wall, AVIF at 50 had smoothed away fine speckles in the stone that JPG at 92 kept. Quality numbers do not mean the same thing across formats, so comparing defaults overstates AVIF's advantage.
At similar visual quality
| Photos (average of 5) | Size | SSIM |
|---|---|---|
| JPG, Quality 80 | 66 KB | 0.958 |
| WebP, Quality 80 | 57 KB | 0.968 |
| AVIF, Quality 65 | 53 KB | 0.972 |
When the similarity scores are close, AVIF was about a fifth smaller than JPG and only slightly smaller than WebP on these photos — while still scoring the highest quality.
Screenshots and flat graphics
| Image | JPG 80 | WebP 80 | AVIF 50 |
|---|---|---|---|
| Screenshot, 2880 × 1800 | 230 KB · 0.996 | 151 KB · 0.998 | 60 KB · 0.998 |
| Graphic, 1200 × 630 | 51 KB · 0.965 | 28 KB · 0.966 | 14 KB · 0.963 |
This is where AVIF shines. With the same or better similarity, the screenshot was 60% smaller than WebP and the graphic half the size. Large flat areas and sharp edges suit AV1's coding tools well.
Encoding is much slower
| Image | JPG 80 | WebP 80 | AVIF 50 |
|---|---|---|---|
| Photo, 768 × 512 (average) | 58 ms | 58 ms | 373 ms |
| Screenshot, 2880 × 1800 | 414 ms | 435 ms | 8.2 s |
Timings are single-threaded on a desktop computer. Browsers that allow multithreaded WebAssembly may be faster, and phones will be slower. Converting a batch of large images to AVIF can take minutes.
Transparency
A 600 × 300 logo with a transparent background kept its transparency as AVIF, including soft anti-aliased edges, and was 3 KB versus 9 KB as PNG.
Compatibility: check before you switch
Current versions of the major browsers display still AVIF images, but support outside browsers is less consistent: some image viewers, office suites, messaging apps, email clients and upload forms do not accept .avif files. Test the actual destination, and keep a fallback when publishing on the web:
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="...">
</picture>
Support for still images does not mean every HDR or animated variant works.
When to use AVIF
Use AVIF when:
- You publish screenshots, illustrations or UI graphics on a website — the savings in our tests were large.
- Your build pipeline or CDN can generate AVIF automatically with a fallback.
- Image weight noticeably affects page load, such as hero images and product galleries.
Stick with WebP or JPG when:
- You send images to people, apps or services that may not open AVIF.
- You convert many large images in the browser and speed matters.
- You need predictable quality across formats with little testing; WebP was nearly as small for photos in our tests.
Converting to and from AVIF
All conversions run in your browser without uploading the image:
- JPG to AVIF — default Quality 50; try 60–70 for photos where fine texture matters
- PNG to AVIF — create a lossy static AVIF; decoded pixels may change. Keep PNG when pixel accuracy matters.
- AVIF to JPG — for maximum compatibility; transparency becomes white
- AVIF to PNG — keeps transparency
- AVIF to WebP — for sites or apps that support WebP but not AVIF
For a broader comparison of everyday formats, see WebP vs PNG vs JPG.
Sources and maintenance
Measurements taken on 2026-11-26 with the @jsquash libavif, libwebp and mozjpeg builds used by this site. Codec updates can change exact sizes and timings.