# JPEG XL

**JPEG XL** 是一种免版税的静态图像压缩格式，标准化编号为 ISO/IEC 18181，面向网络分发与专业摄影，支持有损与无损编码、动画，以及对现有 JPEG 文件的无损再压缩。<sup>[1](https://jpeg.org/jpegxl/index.html)</sup><sup> • </sup><sup>[2](https://github.com/libjxl/libjxl)</sup> 该格式于 2022 年完成标准化，核心码流在 ISO/IEC 18181-1 中规定，基于盒结构的文件格式在 18181-2 中规定，解码器一致性测试在 18181-3 中规定，参考软件在 18181-4 中规定。<sup>[2](https://github.com/libjxl/libjxl)</sup> 该格式旨在以单一通用编解码器取代 JPEG、PNG、GIF 及其他图像格式。<sup>[3](https://arxiv.org/abs/2506.05987)</sup>

| 关键事实 | 详情 |
|---|---|
| 标准 | ISO/IEC 18181，2022 年标准化；共四部分，分别涵盖码流、文件格式、一致性与参考软件<sup>[2](https://github.com/libjxl/libjxl)</sup> |
| JPEG 过渡 | 现有 JPEG 文件可无损转码为 JPEG XL 并逐比特还原，平均节省 20% 文件大小<sup>[1](https://jpeg.org/jpegxl/index.html)</sup><sup> • </sup><sup>[4](https://webkit.org/blog/14205/news-from-wwdc23-webkit-features-in-safari-17-beta/)</sup> |
| 压缩 | 委员会草案目标为在等效主观质量下相较 JPEG 缩减 60% 大小；典型压缩比 20:1 至 50:1<sup>[5](https://arxiv.org/abs/1908.03565)</sup><sup> • </sup><sup>[1](https://jpeg.org/jpegxl/index.html)</sup> |
| 特性 | 广色域、高动态范围、每通道最高 32 位的位深、动画、alpha 通道、图层、缩略图、渐进式与无损编码<sup>[1](https://jpeg.org/jpegxl/index.html)</sup><sup> • </sup><sup>[6](https://jpegxl.info/resources/faqs.html)</sup> |
| 编码模式 | 两种编码器模式，VarDCT 与 Modular，在 XYB 色彩空间中工作，努力程度设置从 1（快）到 10（慢）<sup>[7](https://fukushimalab.github.io/spcp/PCS2025_fukushima.pdf)</sup> |
| 参考软件 | libjxl，采用三条款 BSD 许可证的 C++ 编码器与解码器，附带 `cjxl` 与 `djxl` 命令行工具<sup>[2](https://github.com/libjxl/libjxl)</sup> |
| 浏览器支持 | Safari 17（2023 年 9 月）；Chrome 155（2026 年 10 月 6 日）；Firefox 158（2026 年 10 月 13 日）<sup>[8](https://webkit.org/blog/14445/webkit-features-in-safari-17-0/)</sup><sup> • </sup><sup>[9](https://developer.chrome.com/blog/jpeg-xl-in-chrome)</sup><sup> • </sup><sup>[6](https://jpegxl.info/resources/faqs.html)</sup> |

## 设计目标与特性

JPEG XL 针对响应式网络环境进行了优化，使内容能在各类设备上良好呈现；其设计目标是在不依赖额外硬件加速的情况下，于软件中实现计算高效的编码与解码，包括在移动设备上。<sup>[1](https://jpeg.org/jpegxl/index.html)</sup> 该编解码器让应用能够在三项标准之间取得平衡：对源图像的保真度、编码或解码速度，以及压缩比。<sup>[1](https://jpeg.org/jpegxl/index.html)</sup>

除网络分发外，该格式还面向专业摄影。它支持广色域、高动态范围和高位深图像，并包含动画、alpha 通道、图层、缩略图以及无损与渐进式编码，适用于照片画廊、电子商务、社交媒体、用户界面和云存储等用途。<sup>[1](https://jpeg.org/jpegxl/index.html)</sup> 有损编码器在内部采用浮点色彩表示而非固定位深模式，社区常见问题将其描述为使该格式适合 HDR、广色域成像和专业编辑工作流。<sup>[6](https://jpegxl.info/resources/faqs.html)</sup> 支持的最大分辨率为 1,073,741,823 × 1,073,741,823 像素。<sup>[6](https://jpegxl.info/resources/faqs.html)</sup>

ISO/IEC 18181-2 定义的文件格式是一种可扩展的基于盒结构的容器，承载 EXIF 和 JUMBF 等元数据，2026 年的第三版增加了 HDR 增益图盒并澄清了 JPEG 比特流重建流程。<sup>[10](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso-iec%3A18181%3A-2%3Aed-3%3Av1%3Aen)</sup> 元数据可选择使用 [Brotli](https://www.edgepedia.org/zh/brotli) 压缩，同时保持完全无损。<sup>[6](https://jpegxl.info/resources/faqs.html)</sup>

## 无损 JPEG 转码

该格式从传统 JPEG 过渡的路径是其最显著的特征。任何经典 JPEG 文件都可无损再压缩为 JPEG XL，平均缩减 20% 大小，且原始 JPEG 比特流可精确还原，保持与基于 JPEG 的应用的向后兼容性；转码与还原均具有计算高效性。<sup>[4](https://webkit.org/blog/14205/news-from-wwdc23-webkit-features-in-safari-17-beta/)</sup><sup> • </sup><sup>[1](https://jpeg.org/jpegxl/index.html)</sup> 因此服务器可以存储单个 JPEG XL 文件，同时服务 JPEG 与 JPEG XL 客户端。<sup>[1](https://jpeg.org/jpegxl/index.html)</sup> 在参考工具中，无损再压缩是 `cjxl` 处理 JPEG 输入时的默认行为，当输出扩展名为 `.jpg` 时 `djxl` 会重建原始 JPEG。<sup>[2](https://github.com/libjxl/libjxl)</sup>

## 压缩性能

该标准的委员会草案声称，在等效主观质量下相较 JPEG 可缩减约 60% 大小，同时具备快速可并行化的解码与编码。<sup>[5](https://arxiv.org/abs/1908.03565)</sup> 图像管理公司 Cloudinary（其首席科学家 Jon Sneyers 是该格式的主要贡献者之一）开展的大规模主观质量评估涉及超过 40,000 名测试对象和 140 万个评分。在与网络相关的质量区间内，该研究发现，在 JPEG XL 编码速度约为 AVIF 三倍的编码器速度设置下，JPEG XL 的压缩效果比 AVIF 好 10% 至 15%，比 WebP 好约 20% 至 25%，比 MozJPEG 好约 30% 至 35%。<sup>[11](https://cloudinary.com/blog/the-case-for-jpeg-xl)</sup> 同一研究指出，在较低质量设置下，JPEG XL 比 AVIF 和 WebP 更为稳定，这意味着在给定编码器设置下，低于可接受质量阈值的图像更少。<sup>[12](https://cloudinary-marketing-res.cloudinary.com/image/upload/v1682076683/CID22.pdf)</sup>

该格式并未针对极低质量压缩级别进行优化；在此类文件大小下，AVIF 等源自视频编解码器的格式因其专门的低码率算法往往能产生更好的结果。<sup>[6](https://jpegxl.info/resources/faqs.html)</sup> 一项涵盖十种编解码器和 310 种编码器配置的 2025 年基准测试将 JPEG XL 列入编码效率最高的先进编码器之列，其使用 XYB 色彩空间和 Butteraugli 调优。<sup>[7](https://fukushimalab.github.io/spcp/PCS2025_fukushima.pdf)</sup>

## 参考软件与生态

参考实现为 **libjxl**，是一个被许多支持 JPEG XL 的应用所使用的 C++ 库，采用三条款 BSD 许可证发布；该格式的初始主要贡献者为 Cloudinary 和 Google。<sup>[2](https://github.com/libjxl/libjxl)</sup> 它附带 `cjxl` 编码器和 `djxl` 解码器，二者还可读写 OpenEXR、GIF、JPEG、NetPBM、Portable FloatMap、PGX、PNG 和 Animated PNG 文件。<sup>[2](https://github.com/libjxl/libjxl)</sup> 一个 [Rust](https://www.edgepedia.org/zh/rust-programming-language) 解码器 jxl-rs 正在开发中，也存在 jxl-oxide 等独立实现。<sup>[13](https://jpeg.org/jpegxl/software.html)</sup> Google 的 jpegli 是 2024 年发布的改进型 JPEG 编码器与解码器，作为 JPEG XL 子项目的一部分开发，支持使用 XYB 色彩空间和 JPEG XL 熵编码进行转码。<sup>[7](https://fukushimalab.github.io/spcp/PCS2025_fukushima.pdf)</sup><sup> • </sup><sup>[2](https://github.com/libjxl/libjxl)</sup>

采用范围已超出网络：DICOM 医学影像标准新增了一项补充，涵盖无损 JPEG 再压缩、无损 JPEG XL 以及通用 JPEG XL 传输语法。<sup>[14](https://dicom.nema.org/medical/dicom/final/sup232_ft_JPEGXL.pdf)</sup>

## 浏览器支持历史

浏览器的采用经历了一条不寻常的路径。Firefox 自版本 90 起便已包含相关代码，但需启用功能开关才能使用，Safari 在 2023 年 6 月 WWDC 上宣布的 Safari 17 中增加了对静态图像的支持，覆盖 macOS、iOS、iPadOS、watchOS 和 visionOS。<sup>[15](https://github.com/ImageMagick/jpeg-xl/blob/main/doc/software_support.md)</sup><sup> • </sup><sup>[8](https://webkit.org/blog/14445/webkit-features-in-safari-17-0/)</sup> Google 于 2022 年从 [Chromium](https://www.edgepedia.org/zh/chromium-web-browser) 中移除了实验性 JPEG XL 支持，随后推翻该决定，于 2026 年 1 月在 Chromium 代码库中恢复了该格式，将 JXLImageDecoder 接入 Chromium 的图像管线，并加入签名嗅探与遥测。<sup>[16](https://www.techradar.com/pro/google-restores-much-missed-jpeg-xl-format-to-chromium-code-base-better-image-compression-and-better-bandwidth-are-on-the-way)</sup>

Chrome 自 2026 年 10 月 6 日的 Chrome 155 起默认提供解码支持。对于该集成，Google 使用了 jxl-rs，这是一个纯 Rust 实现的解码器，选择它是为了从源头消除内存安全风险；团队报告称该实现历史上未发现内存安全漏洞。<sup>[9](https://developer.chrome.com/blog/jpeg-xl-in-chrome)</sup> Chrome 团队引用了网络开发者的一致反馈，包括 JPEG XL 作为互操作流程中的提案所受欢迎的程度，以及参与互操作 2026 JPEG XL 调查以获得跨浏览器测试覆盖。<sup>[9](https://developer.chrome.com/blog/jpeg-xl-in-chrome)</sup> Safari 的支持仍限于静态图像，不支持动画 JXL 或渐进式解码。<sup>[17](https://mochify.app/guides/jpeg-xl-chrome-support)</sup> Chrome 的公告建议同时尝试 AVIF 和 JPEG XL，预计 JPEG XL 对照片图像的高保真或无损压缩以及细粒度渐进式解码最为有用。<sup>[9](https://developer.chrome.com/blog/jpeg-xl-in-chrome)</sup>

## References

1. [JPEG XL Overview, JPEG Committee (jpeg.org)](https://jpeg.org/jpegxl/index.html)
2. [libjxl: JPEG XL image format reference implementation, GitHub](https://github.com/libjxl/libjxl)
3. [Sneyers, J. et al. (2025). The JPEG XL Image Coding System: History, Features, Coding Tools, Design Rationale, and Future. arXiv:2506.05987](https://arxiv.org/abs/2506.05987)
4. [News from WWDC23: WebKit Features in Safari 17 beta, WebKit](https://webkit.org/blog/14205/news-from-wwdc23-webkit-features-in-safari-17-beta/)
5. [Committee Draft of JPEG XL Image Coding System, arXiv:1908.03565](https://arxiv.org/abs/1908.03565)
6. [FAQs, JPEG XL community website (jpegxl.info)](https://jpegxl.info/resources/faqs.html)
7. [Fukushima, N. et al. (2025). Benchmarking JPEG, MozJPEG, Jpegli, JPEG2000, JPEG XR, JPEG XL, WebP, HEIC, and AVIF-AOM/SVT (SPCP)](https://fukushimalab.github.io/spcp/PCS2025_fukushima.pdf)
8. [WebKit Features in Safari 17.0, WebKit](https://webkit.org/blog/14445/webkit-features-in-safari-17-0/)
9. [Shipping JPEG XL in Chrome, Chrome for Developers blog (October 6, 2026)](https://developer.chrome.com/blog/jpeg-xl-in-chrome)
10. [ISO/IEC 18181-2:2026, Part 2: File format, ISO Online Browsing Platform](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso-iec%3A18181%3A-2%3Aed-3%3Av1%3Aen)
11. [The Case for JPEG XL, Cloudinary blog](https://cloudinary.com/blog/the-case-for-jpeg-xl)
12. [Cloudinary Image Dataset '22 (CID22): Large-Scale Subjective Quality Assessment for High Fidelity Image Compression](https://cloudinary-marketing-res.cloudinary.com/image/upload/v1682076683/CID22.pdf)
13. [JPEG XL Software page, JPEG Committee (jpeg.org)](https://jpeg.org/jpegxl/software.html)
14. [DICOM Supplement 232: JPEG XL Transfer Syntaxes, NEMA](https://dicom.nema.org/medical/dicom/final/sup232_ft_JPEGXL.pdf)
15. [JPEG XL software support document, ImageMagick/jpeg-xl GitHub](https://github.com/ImageMagick/jpeg-xl/blob/main/doc/software_support.md)
16. [Google restores much-missed JPEG XL format to Chromium code base, TechRadar (January 2026)](https://www.techradar.com/pro/google-restores-much-missed-jpeg-xl-format-to-chromium-code-base-better-image-compression-and-better-bandwidth-are-on-the-way)
17. [JPEG XL in Chrome, Mochify guide](https://mochify.app/guides/jpeg-xl-chrome-support)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Data formats and serialization › Image and video formats

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/jpeg-xl

English original: https://www.edgepedia.org/jpeg-xl
