and AVIF are modern image formats developed for the web. At comparable visual quality, they produce significantly smaller file sizes than older formats such as JPEG or PNG. Smaller images mean shorter loading times and are often a key lever for improving , since images are frequently the largest element on a page.

In practice, using these formats means:

  • serving large hero and product images as WebP or AVIF instead of uncompressed PNG,
  • also sizing and compressing images appropriately,
  • combining WebP/AVIF with (srcset).

A typical mistake is serving a large, uncompressed PNG as the most important image. Converting it to WebP or AVIF often reduces the weight considerably without harming perceived quality. Even with modern formats, it remains important to use sensible image dimensions and .