# XZ Utils

> A complete C99 implementation of the .xz file format

Source: https://talira.ai/catalog/xz-utils-g2ym9dzd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / compression](https://talira.ai/categories/libraries/compression)
- Platforms: linux, macos, windows[^2]
- Licence: 0BSD[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Tukaani Project](https://talira.ai/orgs/tukaani-project.md)

XZ Utils is the reference implementation of the .xz compression format, in C99: liblzma, a compression library with an API like zlib's, the xz command line tool with gzip-like syntax, the smaller decompress-only xzdec, and scripts (xzgrep, xzdiff, xzless, xzmore) for working with compressed files. Its compression is based on the LZMA SDK and gives a high compression ratio. It runs on Linux, the BSDs, macOS, Windows and many other systems. Releases 5.6.0 and 5.6.1 (February and March 2024) contained a backdoor inserted by a malicious co-maintainer (CVE-2024-3094), and the project documents it on its site.

## Links

- Website: https://tukaani.org/xz/
- GitHub: https://github.com/tukaani-project/xz
- Docs: https://tukaani.org/xz/

## Problems it solves

- compress files smaller than gzip does
- decompress a .tar.xz archive
- add xz or LZMA compression to a C program
- grep inside compressed log files

## Features

- liblzma compression library with a zlib-like API
- xz command line tool with gzip-like syntax
- high compression ratio .xz and legacy .lzma files
- multithreaded compression and decompression
- decompress-only xzdec
- xzgrep, xzdiff, xzless and xzmore scripts

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 0.99, adoption 0.65, momentum 0.47, community 0.75, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 59 commits in the last 90 days
- latest release v5.8.4 2 months ago
- 1.7k GitHub stars
- 73 contributors
- accepts sponsorship (Liberapay)
- backed by Tukaani Project

## Alternatives

- [Zstandard](https://talira.ai/catalog/zstandard-3b91e4t3.md): Real-time data compression algorithm
- [Brotli](https://talira.ai/catalog/brotli-1n6pby6e.md): Google's lossless compression format and reference library, with dense compression at deflate-like speed
- [LZ4](https://talira.ai/catalog/lz4-7s0mpjzk.md): Extremely fast lossless compression, with decoding at RAM speed

## Sources

[^1]: https://github.com/tukaani-project/xz/blob/master/COPYING (checked 25 Nov 2026)
[^2]: https://tukaani.org/xz/ (checked 25 Nov 2026)
