AVIF vs WebP vs JPEG XL: choosing a modern image format
JPEG and PNG still work everywhere, but three newer formats promise smaller files at similar quality. They are not interchangeable: each has different strengths and a different level of support.
- Published
- CategoryImages & File Formats
- Reading time2 min read

The short version
- WebP is the safe modern choice: supported by all current major browsers for years, and much smaller than JPEG or PNG in most cases.
- AVIF often compresses photos further than WebP, especially at low file sizes, and is supported by current major browsers, but encoding is slower.
- JPEG XL excels at high-quality and lossless images and can repackage existing JPEGs without loss, but browser support only recently widened, with Chrome adding it in version 155.
For sharing files with people rather than serving them on a website, JPG and PNG remain the most compatible; see the JPG, PNG and WebP guide.
Side by side
| WebP | AVIF | JPEG XL | |
|---|---|---|---|
| Origin | Google, 2010 | Based on the AV1 video codec, 2019 | JPEG committee, ISO/IEC 18181 |
| Lossy and lossless | Both | Both | Both |
| Transparency | Yes | Yes | Yes |
| Animation | Yes | Yes | Yes |
| HDR and high bit depth | Limited (8-bit) | Yes | Yes |
| Progressive loading | No | Limited | Yes |
| Lossless JPEG repackaging | No | No | Yes |
| Encoding speed | Fast | Slow at high effort | Moderate |
| Browser support | All current major browsers | All current major browsers | Safari, and Chrome from version 155; check others |
Support changes over time, so check a current compatibility table before relying on any new format.
Compression: what the numbers mean
You will see claims such as "AVIF is 50% smaller than JPEG" or "JPEG XL is 30–50% better than JPEG". These come from tests with particular images, quality metrics and settings. Real results vary:
- At low file sizes, AVIF tends to hide artefacts well, which suits thumbnails and web hero images.
- At high quality, JPEG XL tends to keep fine detail and texture, which suits photography.
- WebP usually sits between JPEG and the newer formats, with very fast encoding and decoding.
The honest test is your own images: export the same photo in each format at a similar file size and compare them at the size people will see them. Our explainer on lossy vs lossless compression covers why quality settings matter more than format names.
Which to use
- Website images: serve AVIF or WebP with a JPEG fallback using the HTML
<picture>element. Add JPEG XL as an extra source if your pipeline supports it; see JPEG XL in Chrome 155. - Social media and messaging: upload JPG or PNG; platforms re-encode images anyway.
- Archiving photos: keep camera originals. JPEG XL's lossless JPEG repackaging is attractive, but only once your backup and editing tools support it.
- Graphics with transparency: WebP or PNG; for logos and icons, consider SVG instead.
What Convertios supports
The Image Converter converts to JPG, PNG, WEBP, BMP and GIF in your browser, and the Image Compressor can produce smaller JPG, PNG or WEBP files, including to a target size. Convertios does not currently create AVIF or JPEG XL files. WebP is therefore the modern format you can produce here.
Published by Convertios.


