Big news: JPEG XL has finally landed in two major browsers: Google Chrome and Mozilla Firefox!
Check out Can I use:

Why am I so excited? Oh, it's simple, really…
Here's why:
.png), variable-frame animations (replacing .gif and animated .webp), alpha transparency, and progressive streaming.webp (capped at 8-bit color), JXL supports up to 32 bits per channel, including floating-point HDR data (though browser gain-map support is still catching up). It also supports arbitrary custom channels (depth maps, alpha, thermal, CMYK) and handles 16-bit professional master files without gradient banding.jpg, shrink it by ~20%, and produce a valid .jxl image. This image can then be used to reconstruct the original JPEG bit-for-bit on demand. This lets servers and storage archives shrink petabytes of legacy data without re-encoding or introducing generation losslibjxl is released under the permissive BSD 3-Clause license, with royalty-free RAND-Z patent terms. Commercial vendors, OSS projects, and web platforms can integrate, modify, bundle, or distribute JXL tools without a cent in licensing fees. So, no patent traps, no legal restrictions!*Still on the roadmap. Give it some time, it's very new.
JXL is the future-proof archival format, while AVIF is currently the better web delivery format — but JXL's lossless/transcoding capabilities are unmatched. The only thing holding it back for years was browser standards politics, which is finally resolving.
It's rare for a format to solve photography, archival storage, web delivery, and high-bit-depth precision all at once without compromises in core capability. The math is too good to ignore. Browser adoption is the last domino falling…
So, finally, I can use the <img> tag to embed a .jxl image in a page:
JPEG XL rules! Glory to the architects of libjxl!
Please note that I'm not saying AVIF is obsolete, or hating on it. How could I? It's basically a still frame from AV1 — and I love AV1! AVIF is an excellent format, royalty-free and already supported by most browsers.
Not only is it still relevant, but in recent comparisons it reliably beats JXL in file size for lossy web images. But for lossless, JPEG XL is the clear winner: AVIF lossless is 30–122% larger and slower to decode. Will this stay the case? Let's wait and see!
P.S. If you’re on an older Photoshop version (CS6 through v26.7, pre-June 2025), native support isn’t available by default. You can still import and export .jxl files, though, by installing the free, open-source JXL Photoshop Plugin. And while you’re at it, grab the AVIF plugin too.