
The Image Format Clash: Why JPEG XL and AVIF Split the Web Differently
You've probably heard loud debates claiming JPEG XL will soon bury AVIF, or the opposite: that the format wars ended with AV1 winning. Once you hit real production workloads, those black-and-white slogans fall apart.
Engineer Jake Archibald ran a detailed comparison of both formats on real web pages using the perceptual SSIMULACRA 2 metric. The results are far more nuanced than marketing promises. AVIF consistently wins on screenshots, illustrations, and low-resolution photos thanks to aggressive compression. Meanwhile, JPEG XL preserves sharp micro-textures on heavy photos without a plastic look and shrinks existing terabytes of JPEG files by 20% with zero loss. We looked under the hood of both encoders to see how to split image delivery smartly without blind fanfare.