JPEG XL: the image format everyone was waiting for is finally in browsers

The image format everyone was waiting for is finally in browsers: what JPEG XL is, how much lighter it is than JPEG and what is worth doing on your site today.

Author

Franco Farnedi

Published

17 October 2026

Reading time

5 minutes

Category

Performance

For years JPEG XL was the “best” image format that no browser really wanted. In 2022 Chrome dropped support for it, and the format seemed destined to remain a curiosity for insiders.

Today, in mid-October 2026, the situation has turned around: Chrome 155 supports it by default, Firefox 158 (released on 13 October) is turning it on as well, and Safari has understood it since 2023. One important piece is still missing: Edge.

I have been writing software since 1981 and I have seen GIF, JPEG, PNG, WebP and AVIF arrive. Every time the question is the same: what really changes for someone who publishes a website? Here I try to answer without the hype, with sources at the bottom. It is a more down-to-earth subject than the ones on artificial intelligence that I usually write about, but just as concrete.

In two lines

  • JPEG XL compresses well both with and without loss, and can recompress existing JPEGs saving around 20%, restoring them identical to the original when needed.
  • Today it is read by Chrome 155, Firefox 158 and Safari; for Edge I have not found official confirmation.
  • WordPress does not handle it: today the practical choice is AVIF, for example with CompressX.

What it can do

JPEG XL is not “a smaller JPEG”. It is a format designed to replace JPEG, PNG and GIF in one go. It can compress with or without loss, and it handles transparency, animation, layers and wide-gamut HDR images, reaches very high colour depths and supports enormous images, up to a terapixel.

It also has progressive decoding: the page first shows a blurred version of the image that sharpens as the data arrives, which is useful on slow connections.

Another difference from WebP and AVIF is its origin: those derive from video codecs, while JPEG XL was born for still images. High-quality photographs are where it tends to do best, but the result always depends on the software that encodes it and on the settings.

Converting JPEG ↔ JPEG XL

The part that interests me most, as someone with a site full of old photos, is this: a JPEG can be recompressed to JPEG XL without any loss, and the resulting file is normally about 20% smaller. The step is reversible: from the JPEG XL file you can get back to the original JPEG, bit for bit.

It is not the miracle you read about in some posts (a 68% reduction in weight, for example, only comes if you give something up), but it is a free saving, with no impact on quality.

What about AVIF?

AVIF has been supported by the main browsers for some time, and for many sites it is today’s “modern” choice. The comparison with JPEG XL has no single winner: in general AVIF tends to hold up better at low quality, where bytes matter, while JPEG XL tends to win at high quality, where fidelity matters. But it depends a lot on the encoder and the image.

Here on the blog, the plugin I already use generates WebP and AVIF from my PNGs, which is how the site stays light without me handling it by hand. It is the same reasoning we apply to our customers’ sites when we work on WordPress: the format is a detail, the speed the user perceives is not.

With WordPress it is not that simple yet

The point is that WordPress, today, has no idea what to do with a JPEG XL file. As far as I could verify, support is not in the core: the request on Trac (ticket #52788) was closed as “maybe later”, because browser support was still too limited. And anyone who tries to upload a .jxl file to the media library has it rejected.

The problem is not just the upload permission. When you upload an image, WordPress does not simply save it: it resizes it and generates thumbnails (thumbnail, medium, large and the other sizes the theme needs) using a server library, GD or Imagick. GD cannot handle JPEG XL; Imagick can, but only if the server is compiled with the right support. Without this step WordPress has no way of creating the intermediate versions, or of showing you the preview in the library.

With AVIF it went differently: WordPress has accepted it since version 6.5, uploads it and generates thumbnails as it would for a JPEG. I verified this by uploading the test image you will find further down. For JPEG XL, on the other hand, I have not found a reliable plugin that handles upload, thumbnails, conversion and fallback format in one go: there are workarounds, but none that I would recommend on a real site.

And with Astro or Next.js?

If the site were built with Astro, Next.js or another modern framework, the story would be different: there I decide the image pipeline, at build time or at request time, and I can choose format, sizes and fallback format without waiting for a CMS to allow it. But that is another story, and I will tell it in another article.

For now the blog runs on WordPress, and with WordPress, for JPEG XL, you have to wait.

What I do today: AVIF with CompressX

The best option, for now, is to rely on a third-party plugin. I use CompressX, which converts images to WebP and AVIF and serves them to browsers that support them, leaving the original as the fallback format. It is the choice I made on this blog: AVIF first, and the original file for those who cannot read it.

The result is tangible. The images in this article are PNGs of about 1.9 MB each: the media library pairs them with a 41-49 KB AVIF version and a 60-70 KB WebP one. They are flat-colour illustrations, so the saving is extreme; with a real photograph it will be less spectacular, but still significant.

To see the differences by eye and by byte, I took one of the images in the article and saved it in the main formats, each with its size shown underneath.

PNG (original)
1,548 KB
JPEG (quality 85)
151 KB
AVIF (quality 60)
51 KB
I cannot show it to you: WordPress does not accept the .jxl file
JPEG XL (quality 85)
103 KB

One image and different settings for each format: it is not a scientific test, and with identical settings the result would change. The JPEG XL was generated here, outside WordPress, because it cannot be uploaded to the blog.

A separate test, on the subject of conversion: I losslessly recompressed the 151 KB JPEG to JPEG XL and the file dropped to about 127 KB, around 16% less, in line with the 20% usually quoted.

How CompressX works

The principle is simple: CompressX does not touch the original. Next to each image in the library it creates a WebP and an AVIF copy, and then chooses which to serve. The conversion happens on your server, without going through external services. In the media library, in list mode, each file shows the original weight, the WebP and AVIF weights, and the percentage saved.

The settings that matter, with what I chose:

  • Output formats: WebP and AVIF, which can be enabled separately. The plugin checks whether the server has the necessary codecs and, if they are missing, disables the format.
  • Conversion library: GD or Imagick. My blog uses GD.
  • Quality: there is a general mode (one fixed quality for all images, 80 for WebP and 60 for AVIF by default, and it is the one I use), a lossless mode (99) and a paid “smart” mode that adapts quality to size.
  • Sizes to process: the original and the thumbnails that WordPress generates (thumbnail, medium, large and the others), to be chosen one by one.
  • Bulk optimisation: scans the library and converts the images already uploaded, in batches.
  • New uploads: processed automatically, with a short configurable delay (1 to 10 minutes) so as not to overload the server.
  • How they reach the visitor: three options. Rewrite rules in the .htaccess file (the default), a compatible variant, or the picture tag. I use the picture tag: the browser picks the best format on its own from those I give it, with the original as the last choice.
  • Extras: removal of EXIF data (I remove it), keeping the original when the converted version turns out larger, excluding whole folders or PNGs from conversion, resizing images that are too large.
  • CDN: integration with Cloudflare and BunnyCDN to clear the cache after conversions.

The plugin itself reports more than 61 MB of optimised images on the blog. It is still extra work compared with a system that handled JPEG XL natively, but it is manageable: you set it up once, and then you stop thinking about it.

Will it become the standard?

It depends on what we mean by “standard”. With Chrome, Firefox and Safari reading it, coverage is now broad, and Edge, being based on Chromium, has good reasons to follow. But as far as I could verify, there is no official confirmation yet: until it arrives, JPEG XL remains a format to serve together with an alternative, using the picture element or server-side negotiation, now that Firefox also declares it in the Accept header.

Then there is the CMS side, and for WordPress that is what weighs most: until the core handles it, JPEG XL stays out of the media library. That is why the images in this article are PNGs, later converted to WebP and AVIF. The idea of uploading them as JPEG XL as an “easter egg” is fun, and when the numbers allow it I will gladly take it up again.

My position, in short: it is worth trying, but not yet worth betting everything on it. Later coverage will grow and it will be a matter of SEO and speed too: we talked about this in SEO is dead, long live SEO.

And you, have you already tried it on your sites? Tell me in the comments or write to me directly.

Sources

Try it yourself: the same image in four formats, with measured weights and an explanation of how I embedded the JPEG XL in this page.

This article was previously published on francamente.tech.

Share the article

Available for work

Stay in touch

Have a new project to start, or just want to know more about what we do? Our team helps you find the solution that best fits your needs.

Contact us