1. Home
  2. Glossary
  3. Modern image formats
Performance

Modern image formats (WebP, AVIF)

Image formats that usually give smaller files than JPEG or PNG at similar visual quality. Current browsers support WebP and AVIF widely, and a fallback can be offered with the picture element.

Why it matters

Images are often the heaviest part of a page. WebP and AVIF give similar quality at a smaller size, with a JPEG or PNG fallback where needed.

Example

<picture>
  <source srcset="photo.avif" type="image/avif">
  <img src="photo.jpg" alt="" width="800" height="450">
</picture>

Where you will see it

The free Image alt text & size checker looks at this on a live page and explains what it finds in plain English: find images with missing alt text, heavy files, outdated formats or no width and height.

Related terms

  • Responsive images: The srcset and sizes attributes list several sizes of an image so the browser downloads one that fits the screen.
  • Page weight: The total size of all files a browser downloads to show a page: HTML, CSS, JavaScript, images, fonts and more.
  • Lazy loading: Delaying the loading of images or frames until they are near the visible area, for example with loading="lazy".

Go deeper

  • Page weight explained: What page weight means, which files make pages heavy, how to measure transferred size, and practical ways to shrink images, scripts, fonts and video.

← All 66 glossary terms

↑ ↓ to moveEnter to openEsc to closeAll results