Brotli is a general-purpose lossless compression algorithm developed by Google. It combines LZ77-style dictionary matching, Huffman coding and context modelling to achieve strong compression, particularly for text-based content.
The algorithm is widely associated with web content delivery, where smaller transferred files can reduce bandwidth consumption. However, the reference implementation also provides a command-line compressor and reusable libraries for processing ordinary files and application data.
Brotli allows users to adjust compression quality and window size according to their performance requirements. It is important to distinguish the compressed stream from an archive format: Brotli does not inherently store filenames, original file sizes or checksums.
This is free and open source software.
Key Features
- Uses LZ77 dictionary matching, Huffman coding and second-order context modelling.
- Provides eleven adjustable compression quality levels plus the fastest setting.
- Supports configurable LZ77 window sizes to balance memory requirements and compression density.
- Uses a predefined static dictionary to improve compression of common text sequences.
- Supports external raw dictionaries for compression and decompression.
- Provides streaming encoder and decoder APIs.
- Offers a command-line utility for compressing and decompressing .br files.
- Can process standard input and write compressed or decompressed output to standard output.
- Includes a mode for testing compressed data integrity.
- Supports decoding concatenated Brotli streams when explicitly enabled.
- Allows original files to be retained or removed after processing.
- Defines a standardised compressed data format documented in RFC 7932.
- Provides reusable compression libraries and language bindings.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/google/brotli
Support:
Developer: Google
License: MIT License
Brotli is written in C, C#, and Java. Learn C with our recommended free books and free tutorials. Learn C# with our recommended free books and free tutorials. Learn Java with our recommended free books and free tutorials.
Related Software
| Compression Tools | |
|---|---|
| LZ4 | Focused on compression and decompression speed |
| Zstandard | Fast compression algorithm, providing high compression ratios |
| brotli | Generic-purpose lossless compression algorithm |
| lzop | File compressor favoring speed over compression ratio |
| pigz | Parallel implementation of gzip |
| ouch | CLI tool for compressing and decompressing for various formats |
| pixz | Parallel, indexed xz compressor |
| gzip | Provides the standard GNU file compression utilities |
| BZip3 | Spiritual successor to BZip2 |
| bzip2 | Freely available, patent free, high-quality data compressor |
| PBZIP2 | Parallel implementation of bzip2 |
| lrzip | Achieve very high compression ratios and speed when used with large files |
| lbzip2 | Multi-threaded implementation of bzip2, suited for serial and parallel processing |
| ZXC | High-performance lossless compression library and command-line tool |
| plzip | Massively parallel lossless data compressor |
| p7zip-zstd | p7zip fork with additional codecs and improvements |
| 7-Zip | File archiver with a high compression ratio |
| ncompress | Fast, simple LZW file compressor |
| PXZ | Runs LZMA compression on multiple cores and processors |
| crabz | Like pigz but written in Rust |
| Lzip | Lossless data compressor aimed at Unix-like systems |
| cmix | Optimize compression ratio at the cost of high CPU/memory usage |
| bsc | High-performance block-sorting compressor for large files |
| rapidgzip | Parallelized decompression of gzip files |
| Kanzi | Modular lossless compressor with multithreaded processing |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.