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
Package managers
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.
- Zstandard Real-time data compression algorithm
- XZ Utils A complete C99 implementation of the .xz file format
- zlib A general-purpose, patent-free lossless data compression library
- LZ4 Extremely fast lossless compression, with decoding at RAM speed
- zlib (Haskell) Haskell compression and decompression in the gzip and zlib formats over lazy ByteStrings
