AVIF vs WebP: which should you use?
AVIF vs WebP at a glance
| AVIF | WebP | |
|---|---|---|
| Full name | AV1 Image File Format | WebP |
| File extension | .avif | .webp |
| Introduced | 2019 | 2010 |
| Created by | Alliance for Open Media | |
| Compression | Lossy or lossless | Lossy or lossless |
| Transparency | Yes | Yes |
| Animation | Yes | Yes |
| Support | Chrome, Edge, Firefox and Safari 16+; limited in desktop apps | All modern browsers; some older desktop apps can’t open it |
When to use AVIF
AVIF is a next-generation image format based on the AV1 video codec. It often beats WebP on file size, especially at low quality settings, and supports HDR and wide colour.
- Smallest possible web images
- HDR and wide-gamut photos
When to use WebP
WebP is a modern image format from Google that produces files 25–34% smaller than JPG at similar quality (according to Google’s WebP study), while also supporting transparency and animation.
- Website images
- Replacing both JPG and PNG on the web
- Animated images smaller than GIF