Compress XZ

Compress files to XZ format with high LZMA2 compression ratio.

or drop files here

Maximum file size: 500MB per file

Related Tools

Learn more about this tool

About XZ Compression

XZ is a modern compression format using the LZMA2 algorithm, offering some of the best compression ratios available. It is widely used in Linux package distribution (`.tar.xz`), software source archives, and large data transfers. Our tool uses WebAssembly for efficient browser-based compression.

Frequently Asked Questions

What is XZ compression?

XZ is a compression format using the LZMA2 algorithm. It typically achieves the best compression ratios among common formats, making it ideal for distributing large files.

XZ vs GZIP vs BZ2 — which should I use?

XZ achieves the best compression but is the slowest. GZIP is the fastest but compresses less. BZ2 is in between. Choose XZ for maximum compression, GZIP for speed.

How much compression can I expect?

Text files can compress by 70-95% with XZ, typically 5-15% better than BZ2 and 15-30% better than GZIP.

Is this XZ compressor free?

Yes, completely free with no limits. Compress as many files as you need.

{-- * External Resources Component(#15 内容佐证工程升级) * 显示外部权威链接资源,提升 SEO/GEO 权威性。 * * 2026-09-28 升级: * - 接受 :slug 属性 → 经 config/tool-sources.php 家族矩阵渲染「该工具格式」的权威引用 * (RFC / W3C / ECMA / 官方规范站 / Wikipedia,URL 均实测可用) * - -to-{N}kb/mb 子工具 slug 自动剥离尺寸后缀回退到父工具解析(显式映射已全量覆盖,此为保险) * - 无 slug 或 slug 未命中映射时,回退到原有全站通用资源(common.resources.links) * - 链接保持 dofollow(rel="noopener noreferrer") * * @param string|null $slug --}}

References & Resources

Authoritative specifications and references for the file formats this tool works with.