Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/glossary/brotli_compression/index.md
6578 views
---
title: Brotli slug: Glossary/Brotli_compression page-type: glossary-definition
---

Brotli is a general-purpose lossless compression algorithm.

It compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding, and second-order context modeling, providing a compression ratio comparable to the best currently available general-purpose compression methods. Brotli provides better compression ratios than {{glossary("GZip_compression", "gzip")}} and deflate speeds are comparable, but brotli compressing is a slower process than Gzip compression, so gzip may be a better option for the compression of non-{{glossary("Cache", "cacheable")}} content.

Brotli is compatible with most modern browsers, but you may want to consider a fallback.

See also