v155 · multimedia · enabled by default
JPEG XL decoding support (image/jxl) in blink
From Chrome 155, Blink decodes JPEG XL (image/jxl) images, using jxl-rs, a memory-safe pure-Rust decoder. JPEG XL is a modern image format standardized as ISO/IEC 18181 that offers progressive decoding for improved perceived loading performance, support for wide color gamut, HDR, and high bit depth, and support for animation. This entry adds decoding — no new JavaScript API surface; .jxl resources simply work wherever Blink decodes images.
at a glance
| Shipped in | Chrome 155 (desktop, Android, Android WebView, iOS) — filed under “Enabled by default” in the milestone=155 listing (fetched 2026-10-11); per-platform milestones from the ChromeStatus API record. “Will ship enabled for all users” per the Intent |
|---|---|
| Flags | about://flags entry enable-jxl-image-format; Finch feature name JXLImageFormat (both from the Intent to Ship). This is an image-codec feature (blink component Internals>Images>Codecs>JPEG XL); no entry exists for it in Blink’s runtime_enabled_features.json5 (searched 2026-10-11) |
| Specification | ISO/IEC 18181 (JPEG XL) — the ISO standard page linked by the ChromeStatus record (also the edition linked by webstatus.dev; ISO pages are paywalled). Media type: IANA registration image/jxl |
| Decoder | libjxl/jxl-rs — “a memory-safe pure Rust decoder” (ChromeStatus summary). The Intent notes the C++ and Rust decoders “are both tested against the same conformance test corpus” |
| Intent to Ship | blink-dev thread, also archived as mail-archive msg17256 |
| TAG review | w3ctag/design-reviews#633 (issues addressed) |
| Web platform tests | wpt.fyi/results/jpegxl — the Intent notes default WPT runs show failures only because the flag was still disabled there, and links a flag-enabled run with two known failures under investigation |
| ChromeStatus | 5114042131808256 — JPEG XL decoding support (image/jxl) in blink |
what changed
Chromium historically did not decode JPEG XL (an earlier flagged implementation was removed in 2022; the format’s return was one of the most-requested web platform features — the developer-signals issue linked by webstatus.dev carries 515 upvotes). From Chrome 155, Blink decodes image/jxl resources wherever it decodes images; the ChromeStatus record and Intent describe the change at the codec level (“decoding JPEG XL (image/jxl) images in Blink”) rather than enumerating per-surface support. What the format itself brings, per the ChromeStatus summary:
| Capability | What it means for pages |
|---|---|
| Progressive decoding | A partially-downloaded .jxl renders a usable preview, “for improved perceived loading performance” |
| Wide color gamut, HDR, high bit depth | Color fidelity beyond 8-bit sRGB in a single compressed format |
| Animation | Animated images without GIF’s palette and size limits |
| Memory-safe decoder | Chrome’s implementation is jxl-rs, pure Rust — image decoders parse untrusted bytes, so memory safety is a security property here |
Nothing in the sources read records a change to the Accept request header advertising image/jxl; until such server-visible advertising is documented, prefer client-side format selection with <picture> (below) over server-side content negotiation.
syntax
No new API — the surfaces are the existing image-loading ones. The format is selected by MIME type (IANA: image/jxl; conventional extension .jxl):
<!-- Direct use: works in Chrome 155+, Safari 17+; broken image elsewhere -->
<img src="photo.jxl" alt="…">
<!-- Safe deployment: the browser picks the first source it can decode -->
<picture>
<source srcset="photo.jxl" type="image/jxl">
<source srcset="photo.avif" type="image/avif">
<img src="photo.jpg" alt="…">
</picture>
The <picture> selection mechanism is the HTML Standard’s type attribute on <source>: a <source> whose type is a MIME type the user agent does not support is skipped, so browsers without JPEG XL fall through to AVIF or JPEG with no script and no broken images.
source element’s type attribute; IANA media-type registry
examples
Script feature-detection, when markup fallback isn’t enough (e.g. choosing texture URLs): attempt to decode a tiny JPEG XL and see whether it succeeds (snippet gendn-derived; the embedded showcase demo runs exactly this kind of probe live):
// Probe with a real (small) .jxl asset you serve yourself —
// only a successful decode is proof of support.
function supportsJXL(probeUrl = '/img/probe.jxl') {
return new Promise((resolve) => {
const img = new Image();
img.onload = () => resolve(img.naturalWidth > 0);
img.onerror = () => resolve(false);
img.src = probeUrl;
});
}
// createImageBitmap gives a diagnosable error instead of a bare onerror:
async function supportsJXLDiagnosable(probeUrl = '/img/probe.jxl') {
try {
const response = await fetch(probeUrl);
await createImageBitmap(await response.blob());
return true;
} catch {
return false;
}
}
if (await supportsJXL()) {
useTextures('.jxl'); // progressive, HDR-capable
} else {
useTextures('.avif'); // fallback chain
}
image/jxl in the current browser, with honest unsupported states. Sibling concept demos (both 200): format showdown and <picture> fallback.Source: chrome-platform-showcase<picture> fallback per the HTML Standard; snippets gendn-derived (labelled)
browser compatibility
BCD has no JPEG XL key at all (the whole dataset was searched for jxl/jpeg_xl in package data 8.1.5, 2026-10-08 — zero entries; image-format support is tracked by webstatus.dev instead). The table below is from webstatus.dev, the ChromeStatus record, and the Firefox release notes:
| Browser | image/jxl decoding | Notes |
|---|---|---|
| Chrome | 155 | Desktop, Android, Android WebView and iOS all 155 per the ChromeStatus API record; webstatus.dev records availability 2026-10-06 |
| Edge | Unknown | Chromium-based, expected at its 155-based release; no source read records an Edge version |
| Firefox | Nightly only (as of 153) | “The Rust-based JPEG XL image decoder is now enabled by default in Nightly” behind image.jxl.enabled — Firefox 153 release notes, bug 2040074; vendor view “Shipped/Shipping … also migrating to rust version” in the ChromeStatus record |
| Safari | 17 | Since 2023-09-18 per webstatus.dev; “WebKit currently uses the C++ decoder” per the Intent |
Deploy JPEG XL additively: <picture> with type="image/jxl" first and AVIF/WebP/JPEG fallbacks keeps every browser working while the format’s Baseline status is still Limited.
security and privacy
An image decoder is one of the largest attack surfaces a browser exposes to untrusted bytes, which is why the implementation choice is itself the security story here: Chrome’s JPEG XL support ships on jxl-rs, “a memory-safe pure Rust decoder” (ChromeStatus summary), tested against the same conformance corpus as the C++ reference implementation per the Intent. The Intent records “no special risks” for interoperability/compatibility and “new feature, no special risk” for WebView. Decoded images follow the platform’s existing same-origin rules for image data (e.g. canvas origin-cleanliness); the sources read record no JPEG-XL-specific privacy considerations beyond the format-support bit that any new codec adds to passive fingerprinting surface.
Source: ChromeStatus summary; Intent to Ship (Risks sections)specifications
| Specification | Link |
|---|---|
| ISO/IEC 18181 — JPEG XL image coding system | iso.org/standard/85066 (ChromeStatus-linked) · iso.org/standard/85253 (webstatus.dev-linked); ISO text is paywalled — the format is also documented at jpegxl.info |
HTML Standard — <source type> format selection | embedded-content.html#attr-source-type |
IANA — image/jxl media type | iana.org/assignments/media-types/image/jxl |
see also
- MDN: Image file type and format guide — MDN’s cross-format comparison (no dedicated JPEG XL reference page exists; checked 2026-10-11)
- chrome-platform-showcase: JPEG XL demos (three concepts, all routes 200)
- ChromeStatus — JPEG XL decoding support (5114042131808256)
- blink-dev Intent to Ship · TAG review #633
- libjxl/jxl-rs — the Rust decoder · developer-signals #215 (515 upvotes)