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

WebPAVIFJPEG XL
OriginGoogle, 2010Based on the AV1 video codec, 2019JPEG committee, ISO/IEC 18181
Lossy and losslessBothBothBoth
TransparencyYesYesYes
AnimationYesYesYes
HDR and high bit depthLimited (8-bit)YesYes
Progressive loadingNoLimitedYes
Lossless JPEG repackagingNoNoYes
Encoding speedFastSlow at high effortModerate
Browser supportAll current major browsersAll current major browsersSafari, 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.