AVIF

noun

say it: “AY-VEE-EYE-EF” /ˌeɪˌviˌaɪˈɛf/ or “AY-vif” /ˈeɪvɪf/

A newer image format that usually makes photos even smaller than WebP; older browsers can't show it, so pages offer it with a JPEG fallback.

What is AVIF?

AVIF — A newer image format that usually makes a photo even smaller than WebP at the same quality. Every current browser shows it, but older ones don't, so a page offers it in a <picture> element with a JPEG for the browsers that can't.

<picture>
  <source srcset="images/lighthouse-960.avif" type="image/avif">
  <img src="images/lighthouse-960.jpg" alt="The white lighthouse with its red lantern room" width="960" height="720">
</picture>

In a sentence

  • “The browser picked the AVIF file, and the hero photo dropped to 90 KB.”

Level: Apprentice · More Web Development terms at this level

Updated