Urgent.News

What's breaking now, across thousands of outlets.

Tech

JPEG XL vs. AVIF for web use-cases

Article URL: https://jakearchibald.com/2026/jpeg-xl-vs-avif/ Comments URL: https://news.ycombinator.com/item?id=50120224 Points: 249 # Comments: 174

JPEG XL is now supported in all major web browsers, so this report compares its performance against other formats such as AVIF. In general, AVIF typically creates smaller files for lossy photos, with the gap typically between 15-25% at default settings and narrowing to 6-20% at maximum effort. However, there are exceptions where JPEG XL can match or even surpass AVIF in quality.

The encoder used plays a significant role; newer versions of JPEG XL tend to produce smaller files than older ones, with one notable exception being images with detailed transparency. For screenshots and illustrations, AVIF generally performs better than JPEG XL, producing files that are 30-90% smaller at default settings. For images with transparency, AVIF also tends to outperform JPEG XL, with the former being 31-44% smaller at default settings and up to 70% smaller at maximum effort.

AVIF is also faster to encode and decode, uses less memory, and is currently more feature-rich with progressive rendering support. JPEG XL has some advantages, such as supporting lossless compression and being able to reduce existing JPEG files by 9-20% without further loss. It also outperforms AVIF in lossless compression. However, JPEG XL can be slower to decode, especially at medium qualities, and higher effort settings may result in larger files.

AVIF's 4:2:0 mode is typically not recommended as a default choice since it doesn't usually reduce file size and can make reaching higher qualities more challenging. Currently, AVIF 4:4:4 is recommended for web use-cases, but JPEG XL via jixel could be considered if AVIF files are excessively large. Both formats have shown significant improvements recently, so the recommendation could change in the future.

The author has provided a benchmarking script to analyze various images encoded with different codecs at various settings to help make informed decisions.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at jakearchibald.com →

More in Tech

Managed Metrics API vs Self-Hosted Dashboard — Choose Attributable Incident Evidence

Choice Best fit Main burden Cost attribution Managed metrics API One person shipping weekly, with no appetite for operating the metrics path Provider evaluation, retention policy, and export testing…

  • Managed metrics API recommended as default for fintech SaaS incident evidence
  • Preserve necessary labels to attribute incidents by tenant and region
  • Dashboard focuses on operational feedback, not incident reconstruction

The MacRumors Show: Was HomeView Worth the Wait?

Apple this week finally announced the HomePod mini 2 , a new Apple TV 4K, and its "HomeView" smart home hub. On this week's episode of The MacRumors Show , we talk through our reactions to the…

  • HomeView combines 7-inch display with Siri AI and smart home controls.
  • Critics argue cheaper alternatives like Echo Show or Nest Hub offer similar functionality.
  • HomePod mini 2 adds S10 chip and Sound Glow lighting for $149.

More from Friday 16 October →