# LZ4

> Extremely fast lossless compression, with decoding at RAM speed

Source: https://talira.ai/catalog/lz4-7s0mpjzk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / compression](https://talira.ai/categories/libraries/compression)
- Licence: BSD-2-Clause AND GPL-2.0-or-later[^3][^4]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Backed by: [LZ4](https://talira.ai/orgs/lz4-project.md)

LZ4 is a lossless compression algorithm and C library built for speed: compression above 500 MB/s per core, scaling across cores, and decompression at several GB/s per core, often at RAM speed limits. An acceleration factor trades ratio for more speed, and the LZ4_HC variant trades CPU time for a better ratio with the same decompression speed. It supports dictionary compression in the API and the `lz4` command-line tool, which combines well with [Zstandard](https://talira.ai/catalog/zstandard-3b91e4t3.md)'s dictionary builder for small files.

## Links

- Website: https://lz4.github.io/lz4/
- GitHub: https://github.com/lz4/lz4

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/lz4>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/lz4>[^2]

## Problems it solves

- compress data as fast as possible in my C application
- fast compression for logs or network traffic
- decompress data at RAM speed

## Features

- compression above 500 MB/s per core
- decompression at multiple GB/s per core
- LZ4_HC high-compression mode
- dictionary compression
- lz4 command-line tool

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.82, momentum 0.58, community 0.95, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 733 commits in the last 90 days
- latest release v1.11.1 20 days ago
- 12.9k GitHub stars
- 236 contributors
- 6k Homebrew installs in 30 days
- has a company behind it

## 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

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 29 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 29 Nov 2026)
[^3]: https://github.com/lz4/lz4/blob/dev/LICENSE (checked 29 Nov 2026)
[^4]: https://github.com/lz4/lz4/blob/dev/README.md (checked 29 Nov 2026)
