๐Ÿ‹
Menu
.lz4 Archive

LZ4 Compressed

LZ4 is an extremely fast compression algorithm designed for real-time applications. It trades compression ratio for speed, decompressing at multiple gigabytes per second. LZ4 is used in databases, filesystems (ZFS, Btrfs), and any system where latency matters more than size.

MIME Type

application/x-lz4

Type

Binary

Compression

Lossless

Advantages

  • + Decompression speed exceeding 4 GB/s per core
  • + Very fast compression with minimal CPU overhead
  • + Widely used in production systems (ZFS, Btrfs, databases)

Disadvantages

  • โˆ’ Lower compression ratio than gzip, bzip2, or xz
  • โˆ’ Not suitable for archival where size minimization is key
  • โˆ’ Less common as a standalone file format for distribution

When to Use .LZ4

Use LZ4 when decompression speed is critical โ€” real-time data processing, filesystem compression, and database page compression.

Technical Details

LZ4 uses a byte-oriented LZ77 variant with a fixed-size hash table for match finding. The frame format includes content size, checksums, and block independence options for parallel processing.

History

Yann Collet created LZ4 in 2011, optimizing for decompression speed. It was adopted by ZFS, the Linux kernel, and numerous databases. Collet later created Zstandard to bridge the gap between LZ4 speed and gzip ratios.

Convert from .LZ4

Convert to .LZ4

Related Formats