Skip to content

Ads may be personalised. Do you also accept cookies to measure visits? Privacy and cookies

Which browsers open JPEG XL and how to use it on your website

Safari has displayed JPEG XL since version 17, on iPhone, iPad and Mac. Chrome started displaying it in version 155, with a decoder in Rust, and Firefox in version 158. Old browsers and some others still do not display it. To use it on your website without breaking anything, publish the .jxl inside the picture tag with a JPG or WebP fallback.

Step by step

  1. Convert the image to JPEG XL and also to WebP or JPG.
  2. In the HTML, use the picture tag: first a source with type="image/jxl" pointing to the .jxl.
  3. Then the img tag with the JPG or WebP fallback, with width, height and alt text.
  4. Check that the server sends the .jxl with the image/jxl type.
  5. Test the page in a browser with support and in another without support.

Convert to JPEG XLSee the step by step as a Web Story

Advertisement

Browser support

BrowserJPEG XL
Safari (iPhone, iPad, Mac)Since version 17
Chrome (computer and Android)Since version 155
FirefoxSince version 158
Chrome 110 to 154Does not display it (support was removed in 110)
Other browsersCheck the version you use

Things to watch

  • The browser downloads only one file from the picture tag: a browser that cannot read JPEG XL never downloads the .jxl.
  • On an Apache or LiteSpeed server, the line AddType image/jxl .jxl in .htaccess sets the file type.
  • The ZiggWeb converter shows on the page whether the browser you are using displays JPEG XL.

Frequently asked questions

Does Chrome open JPEG XL?

Yes, from version 155 on, on computer and Android. Before that, Chrome had a test option and removed support in version 110.

Does Safari open JPEG XL?

Yes, since Safari 17, on iOS 17, iPadOS 17 and macOS. Safari also displays the image progressively.

Do I need JavaScript to use JPEG XL on my website?

No. The picture tag with an image/jxl source and a fallback image does it without any script.

Does using JPEG XL on a website make it faster?

For people with support, the image weighs less and loads faster. People without support get the fallback, as before.

Tools in this guide

Written and maintained by the ZiggWeb team.

Advertisement