talira

Google's lossless compression format and reference library, with dense compression at deflate-like speed

open sourceMITfree

Brotli is Google's general-purpose lossless compression algorithm and its reference implementation: a modern LZ77 variant with Huffman coding and second-order context modelling, about as fast as deflate but compressing more densely. The format is specified in RFC 7932. The repository provides the C library and command-line tool with bindings, installable from most Linux package managers, Homebrew and vcpkg.

Ways to install

Problems it solves

  • compress web assets better than gzip
  • C library for Brotli compression and decompression
  • command-line tool to compress files with Brotli

Features

  • lossless general-purpose compression
  • denser than deflate at similar speed
  • RFC 7932 format
  • C library and brotli CLI
  • packages for Linux, Homebrew and vcpkg

Limitations

  • The Brotli stream format has no checksums or length metadata, so a decoder won't notice if raw ranges of the stream are changed.3

Alternatives

The same job

These do what Brotli does.

  1. Zstandard Real-time data compression algorithm
  2. XZ Utils A complete C99 implementation of the .xz file format
  3. zlib A general-purpose, patent-free lossless data compression library
  4. LZ4 Extremely fast lossless compression, with decoding at RAM speed
  5. zlib (Haskell) Haskell compression and decompression in the gzip and zlib formats over lazy ByteStrings

Compare Brotli with the top 3