SquishPixel Blog · Image formats · Image optimisation · Web performance

AVIF files came out 51% smaller than JPEG in a same-width photo test

A benchmark posted on DEV Community compared AVIF, WebP and JPEG, three image file formats, using one photo. The source was a 9.8 MB camera image measuring 4964 by 2782 pixels. The authors resized it to 1920 by 1076 pixels and encoded it with the same engine at Auto quality.

According to the post, AVIF came out 51% smaller than JPEG at that width. WebP was 39% smaller. The authors say browser support is no longer a good reason to hold back. They cite caniuse data from August 2026 putting AVIF support at 95.35% of users and WebP at 96.74%.

The post points to a gap between support and real use. It cites the 2025 Web Almanac, which found only 0.7% of LCP images in AVIF. LCP, or Largest Contentful Paint, measures how long the biggest visible element takes to appear. The authors say the gap is mostly down to build tooling.

The authors list three common traps. First, quality numbers do not carry across formats. On one test image, AVIF at q80 weighed 159.5 KB, while JPEG at q80 weighed 82.1 KB, so each format needs tuning on its own scale. Second, the order inside a picture element matters, because the browser picks the first type it supports, not the smallest file. AVIF should come first. Third, the test measured file size, not decode time. The authors note that AVIF costs more CPU to decode, which can add to render delay in LCP, and they suggest testing on a cheap phone.

Why it matters

Image bytes are often a large part of page weight, and the hero image is often the LCP element. A format that cuts a photo's size by around half in a test like this is worth a look, especially now that the post reports support above 95%.

The caveats count as much as the headline figure. This is one photo from one test, so your own results will differ. Smaller files can also cost more to decode on slow devices. Check your own images and test on modest hardware before switching everything.

Source: DEV Community. This brief summarises their reporting; read the original for the full detail.