TL;DR
Get bike and ride gear delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
A 2026 comparison of current image encoders finds AVIF is generally the stronger choice for lossy web images, especially screenshots, illustrations and images with transparency. JPEG XL stands out for lossless compression and converting existing JPEGs without additional loss; results vary by image and encoder, so testing representative assets remains useful.
A 2026 comparison of JPEG XL and AVIF encoders finds that AVIF usually produces smaller lossy images for web use, while JPEG XL has advantages in lossless compression and in some image-specific tests. The findings offer practical guidance for developers choosing formats, but reflect particular encoders, settings and test images—not a guarantee that one format will win on every site.
For lossy photographs, the report says the best JPEG XL result was typically 15% to 25% larger than AVIF at default effort settings. At maximum effort, the difference narrowed to 6% to 20%. Some images were exceptions: JPEG XL came close to or beat AVIF in individual comparisons, so the author advises testing both when file size on a particular image matters.
The gap was wider for screenshots, illustrations and images with transparency. The tested JPEG XL files for screenshots and illustrations were generally 30% to 90% larger at default effort, or 20% to 70% larger at maximum effort. For transparency, the report found libjxl files 31% to 44% larger than AVIF at default effort and 61% to 70% larger at maximum effort. The newer jixel encoder handles transparency losslessly and produced files two to three times AVIF’s size in the tests.
Results also depended on the JPEG XL encoder. The report says jixel usually produced smaller files than libjxl, except for images with detailed transparency. AVIF decoded faster in most comparisons, while JPEG XL decoding generally took two to three times as long at medium quality; at very high quality, the difference narrowed and Chrome sometimes decoded JPEG XL faster. The author recommends AVIF in 4:4:4 mode as a starting point, with JPEG XL via jixel worth checking if an AVIF file is unusually large.
Choosing Formats for Web Images
Image files affect page weight, loading time and browser work, so format decisions can matter across a large site. The reported results suggest that teams seeking compact lossy images should start by testing AVIF, particularly for screenshots, illustrations and transparent assets. That is a practical recommendation from this benchmark, not a universal rule: the best result can change with the source image and encoder.
The comparison also cautions against choosing a format based only on a headline compression claim. Encoder speed, memory use and decode time matter alongside file size. In the report, AVIF generally decoded faster, while jixel could encode faster and use less memory but often made larger files. Developers evaluating a real delivery pipeline may need to weigh transfer size against the cost of generating and displaying images.
Popular right now

Bose QuietComfort Wireless Noise-Cancelling Headphones, Cypress Green

Ninja Foodi Smart 6-in-1 Indoor Grill and Air Fryer, 4 Qt, Black/Silver, FG551

Samsung 75-Inch The Frame Pro 4K Neo QLED Smart TV (QN75LS03FW)
As an affiliate, we earn on qualifying purchases.
The Encoders Behind the Comparison
The report compares released encoder versions available at publication: avifenc 1.4.2, libjxl 0.12.0 using cjxl, jixel 0.4.2, and cwebp 1.6.0 for a later lossless WebP comparison. The author used a script to encode a selection of images at different settings and record results. Most test images were resized to 1,598 pixels wide, described as twice the maximum width used on the author’s blog, to represent sharp display on high-density screens.
JPEG XL has several distinct strengths in the report. It can recompress existing JPEGs to files 9% to 20% smaller without further loss, and it led the reported lossless comparisons: lossless WebP was 9% to 17% larger for photos, while lossless AVIF was 30% to 120% larger. The author also notes that lossless images are rarely the right default for web delivery. For HDR, the report identifies a limitation: browser decoders do not support JPEG XL gain maps, and its gain-map encoding process was described as messy or experimental.
Where the Results May Change
The figures describe one benchmark’s test set and software versions. The report’s percentages do not establish how every image, encoder release, browser or production pipeline will perform. The supplied material does not specify enough about the test set to treat it as representative of all websites, and individual examples sometimes reversed the overall result.
Browser support and implementation details also remain relevant. The report says Chrome and Firefox support progressive JPEG XL, while Safari displays the final image rather than progressive previews. Progressive AVIF was described as Chrome-only at the time, with Firefox support in progress. The report further says JPEG XL gain maps are not supported by browser decoders. These details can change as browsers and encoders are updated.
Test Against Your Own Images
For now, the report recommends starting with AVIF 4:4:4 and checking JPEG XL via jixel when AVIF’s result seems unusually large. Its author argues that testing actual site images is more reliable than relying on broad claims about either format. Teams should also compare decoded quality and performance, not file size alone.
The comparison notes that both AVIF and JPEG XL implementations have improved recently, so its recommendation could change as new encoder versions and browser support arrive. The report does not announce a formal standard or browser policy change; the next relevant developments are updated encoders, wider browser support for features such as progressive rendering, and fresh tests against current software.
Key Questions
Which format should I try first for lossy web images?
The report recommends AVIF in 4:4:4 mode as a starting point. Its tests usually found smaller AVIF files, but results depend on the image and encoder, so compare formats for assets where size matters.
Is JPEG XL ever smaller than AVIF?
Yes. The report found individual exceptions, including images where JPEG XL came close to or beat AVIF. It recommends testing both on an image when seeking the smallest result.
Which format performed better for lossless images?
In the report’s lossless tests, JPEG XL produced smaller files than lossless WebP and AVIF. The author cautions that lossless images are rarely the right default for web delivery.
Does the comparison apply to every website?
No. The findings come from a particular selection of images, codec versions and settings. Site-specific testing is needed because content, browser support and encoding choices can affect the outcome.
Source: hn
