Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Brotli

From Wikipedia, the free encyclopedia
Lossless compression algorithm
This article is about the compression algorithm. For Brötli, the Swiss-German bread roll it is named after, seeBread roll § Europe.
Brotli
Original authorsJyrki Alakuijala, Zoltán Szabadka
DevelopersJyrki Alakuijala, Eugene Kliuchnikov, Robert Obryk, Zoltán Szabadka, Lode Vandevenne
Initial release15 October 2013; 12 years ago (2013-10-15)
Stable release
1.2.0[1] Edit this on Wikidata / 27 October 2025; 3 months ago (27 October 2025)
Written inC
Operating systemCross-platform
PlatformPortable
TypeData compression
LicenseMIT License
Websitebrotli.org
Repository

Brotli is alossless data compression algorithm developed by Jyrki Alakuijala and Zoltán Szabadka. It uses a combination of the general-purposeLZ77 lossless compression algorithm,Huffman coding and 2nd-ordercontext modelling. Brotli is primarily used byweb servers andcontent delivery networks tocompress HTTP content, making internet websites load faster. As successor togzip, it is supported by all major web browsers and has become increasingly popular, as it provides better compression than gzip.[2]

Name

[edit]

While Google'szopfli implementation of the deflate compression algorithm is named after Zöpfli, theSwiss German word for a snack-sizedbraided buttery bread,brotli is named after Brötli, the Swiss German word for abread roll.[3]

History

[edit]

Google employeesJyrki Alakuijala and Zoltán Szabadka initially developed Brotli in 2013 to decrease the size of transmissions ofWOFF web font.[4] Alakuijala and Szabadka completed the Brotli specification during 2013–2016. The specification was accompanied with a reference implementation developed by two additional authors, Evgenii Kliuchnikov and Lode Vandevenne, who had previously developed Google'szopfli implementation ofdeflate andgzip compatible compression in 2013.[5]: 1  Unlike zopfli, which was a reimplementation of an existing data format specification, Brotli was a new data format and allowed the authors to improve compression ratios even further.[3]

The Brotli specification was generalized in September 2015 for HTTP stream compression (content-encoding type "br"). This generalized iteration also improved the compression ratio by using a predefined dictionary of frequently used words and phrases. The version of Brotli released in September 2015 by the Google software engineers contained enhancements in genericlossless data compression, with particular emphasis on use forHTTP compression. The encoder was partly rewritten, with the result that the compression ratio improved, both the encoder and the decoder have been sped up, the streaming API was improved, and more compression quality levels have been added. Additionally, the new release shows performance improvements across platforms, with decoding memory reduction.[3]

TheInternet Engineering Task Force approved the Brotli compressed data format specification as an informationalrequest for comment (RFC 7932) in July 2016.[6] The Brotli data format is an integral part of the 2nd iteration of theWeb Open Font Format,[6]: 3  which was recognized in a 2021 Technology & Engineering Emmy Award from theNational Academy of Television Arts & Sciences for font technology standardization at W3C.[7][8]

Brotli support has been added over the years to web browsers, with 96% of worldwide users using a browser that supports the format, as of July 2022.[9]

In 2016Dropbox reimplemented Brotli inRust to fulfill their requirement to be more secure against a malicious client.[10][11]

Algorithm

[edit]

Brotli's new file format allows its authors to improve upon Deflate by several algorithmic and format-level improvements: the use of context models for literals and copy distances, describing copy distances through past distances, use of move-to-front queue in entropy code selection, joint-entropy coding of literal and copy lengths, the use of graph algorithms in block splitting, and a larger backward reference window are example improvements.

Unlike most general-purpose compression algorithms, Brotli uses a predefined dictionary, roughly 120 KiB in size, in addition to the dynamically populated ("sliding window") dictionary. The predefined dictionary contains over 13000 common words, phrases and other substrings derived from a largecorpus of text and HTML documents.[12][5] Using a predefined dictionary has been shown to increase compression where a file mostly contains commonly used words.[13]Brotli's sliding window is limited to 16 MiB. This enables decoding on mobile phones with limited resources, but makes Brotli underperform on compression benchmarks having larger files. The constraints of the small window size can be alleviated by usingLarge Window Brotli, which is not compatible with RFC 7932 (Brotli proper).[14]

Implementations

[edit]

Google's own implementation of the Brotli specification was released under the terms of thepermissive free softwareMIT license in 2016. A formal validation of the Brotli specification was independently implemented byMark Adler,[6]: 126  one of the co-authors of thezlib/gzip compression format and library. Adler's implementation was released under the terms of the similarly permissiveApache License.[15] Other implementations of the specification also exist, including one in the source-to-sourceHaxe language.

Applications

[edit]

Brotli compression is generally used as an alternative to gzip on the web, as Brotli provides better overall compression.[16] Compared to gzip compression, JavaScript files compressed with Brotli are roughly 15% smaller, HTML files are around 20% smaller, and CSS files are around 16% smaller.[17]

The reference implementation does ship a command-line programbrotli similar togzip,[18] but use in the Unix-like world as a simple compressor is scarce.Libarchive developers find the raw stream format of.br files difficult to support, as there is nomagic number to indicate the file format.[19]

Industry support

[edit]

Browsers and other clients

[edit]
  • Mozilla Firefox introduced support for the "br" content-encoding method in version 44 (released on 26 January 2016).[20]
  • Google Chrome has supported the "br" content-encoding method since version 50 (released on 20 April 2016).[21]
  • Opera has supported the "br" content-encoding method since version 38 (released 8 June 2016).[21]
  • Microsoft Edge has supported the "br" content-encoding method since version 15 (released on 5 April 2017).[22]
  • Safari has supported the "br" content-encoding method since version 11 (released on 5 October 2017).
  • cURL has a compile-time option to support the "br" content-encoding method using libbrotli as of version 7.57, released on 29 November 2017.[23]
  • 7zip is available extended with Brotli by 7zip-zstd.[24]
  • PeaZip supports Brotli .BR format for compression and extraction[25]

Web servers

[edit]
  • ForApache HTTP Server, the "br" content-encoding method has been supported by themod_brotli module since version 2.4.26.[26]
  • Microsoft IIS has a supported extension since May 2018 that adds support for the "br" content-encoding method.[27]
  • Microsoft Azure Front Door can dynamically compress content on the edge using Brotli[28] since its launch on April 17, 2019.[29]
  • nginx has angx_brotli module provided by Google since December 2016.
  • Node.js features a built-in native en- and decoder since version 11.7.0, which can be used to support the "br" content-encoding.
  • Amazon CloudFront can automatically compress cacheable responses at the edge using Brotli, as of September 2020.[30]
  • LiteSpeed Web Server has included the "br" content-encoding method for static files only since version 5.2 in July 2017.
  • Cloudflare CDN offers a brotli option to compress data between its edge node and the user.[31]
  • NaviServeradded support in version 4.99.17b1
  • Caddy serves statically compressed .br files since version 0.9.4 from December 21, 2016.
  • lighttpd mod_deflate supports .br since 1.4.56[32] from November 2020.

References

[edit]
  1. ^google."Release v1.2.0 · google/brotli". Retrieved27 October 2025.{{cite web}}:|author= has generic name (help)
  2. ^Calvano, Paul (2024-03-19)."Choosing Between gzip, Brotli and zStandard Compression". Retrieved2025-06-23.
  3. ^abcSzabadka, Zoltan (September 22, 2015),"Introducing Brotli: a new compression algorithm for the internet",Google Open Source Blog, Mountain View, CA: opensource.googleblog.com.
  4. ^Sheeter, Rod (February 18, 2015),"Smaller Fonts with WOFF 2.0 and unicode-range",Google Open Source Blog, Mountain View, CA: opensource.googleblog.com.
  5. ^abAlakuijala, Jyrki; Kliuchnikov, Evgenii; Szabadka, Zoltan; Vandevenne, Lode (22 September 2015),"Comparison of Brotli, Deflate, Zopfli, LZMA, LZHAM and Bzip2 Compression Algorithms"(PDF),The Comprehensive R Archive Network, r-project.org.
  6. ^abcAlakuijala, Jyrki; Szabadka, Zoltan (2016),RFC 7932: Brotli Compressed Data Format, Internet Engineering Task Force Request for Comments, Fremont, CA: IETF Trust.
  7. ^"W3C Receives Emmy Award for Standardizing Font Technology". 2022-06-01.
  8. ^"Changing the face of the web: W3C Web Fonts Working Group and MPEG recognized with a Technology & Engineering Emmy Award". 2022-06-01.
  9. ^"Can I use... - Brotli". 2022-06-28.
  10. ^Lossless compression with Brotli in Rust for a bit of Pied Piper on the backend, Daniel Reiter Horn and Mehant Baid, 2016-06-29.
  11. ^[1], Rishabh Jain and Daniel Reiter Horn, 2020-08-04
  12. ^Chirgwin, Richard (September 23, 2015),"Google's new squeeze: Brotli compression open-sourced",The Register, theregister.co.uk.
  13. ^Larkin, Henry (2007). "Word Indexing for Mobile Device Data Representations".7th IEEE International Conference on Computer and Information Technology (CIT 2007). pp. 399–404.doi:10.1109/CIT.2007.22.ISBN 978-0-7695-2983-7.S2CID 8707991..
  14. ^Kliuchnikov, Eugene."How to use large window sizes? · Issue #639 · google/brotli".GitHub.Currently we are testing "Large Window Brotli" extension that will allow up to 1GiB window. [...] "Large Window Brotli" is landed.
  15. ^Adler, Mark (Jan 26, 2015),"Brotli specification review and verification",Adler brotli, San Francisco: GitHub.
  16. ^Calvano, Paul (2018-07-25)."Brotli Compression: How Much Will It Reduce Your Content?". Retrieved2021-03-07.
  17. ^Pandjarov, Hristo (2021-01-13)."More Site Speed Gains with Brotli Compression Algorithm".SiteGround. Retrieved2021-03-07.
  18. ^"brotli(1) manual page".manned.org.
  19. ^"Brotli support · Issue #1238 · libarchive/libarchive".GitHub.Without a magic signature, libarchive cannot automatically recognize the file type, so it cannot automatically decompress. (Libarchive does not consider the file name, only the contents.)
  20. ^Goodger, Ben; et al. (26 January 2016),"Firefox 44 release notes",Mozilla Firefox, Mozilla Foundation.
  21. ^abBaheux, Kenji (15 January 2016),"Accept-encoding: br on HTTPS connection",Chrome Platform Status, chromestatus.com.
  22. ^Trace, Rob (December 20, 2016),"Introducing Brotli compression in Microsoft Edge",Microft Edge Developer, blogs.windows.com
  23. ^Stenberg, Daniel; et al."curl - Changes".curl.haxx.se. Retrieved14 January 2018.
  24. ^"README".GitHub. 15 October 2021.
  25. ^"Google Brotli: How to compress, open, extract BR files".
  26. ^"Changes with Apache 2.4.26",Apache HTTPD repository, svn.apache.org.
  27. ^"Higher Compression Ratio with Brotli compression". 6 Oct 2023.
  28. ^"Caching with Azure Front Door".docs.microsoft.com. 15 June 2023.
  29. ^"Azure Front Door Service is now available".azure.microsoft.com.
  30. ^"Amazon CloudFront announces support for Brotli compression".aws.amazon.com.
  31. ^"What will Cloudflare compress?".support.cloudflare.com.
  32. ^"lighttpd 1.4.56 release info".redmine.lighttpd.net.
Notes
 - Finley, Klint (22 September 2015),"Hooli, I Mean Google, Gives Away Compression Code for Free",Wired Online, wired.com.

External links

[edit]
Lossless
type
Entropy
Dictionary
Other
Hybrid
Lossy
type
Transform
Predictive
Audio
Concepts
Codec
parts
Image
Concepts
Methods
Video
Concepts
Codec
parts
Theory
Community
People
Archiving only
Compressing only
Archiving
and compressing
Software packaging
and distributing
Document packaging
and distributing
Google free and open-source software
Software
Applications
Programming languages
Frameworks and
development tools
Operating systems
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Brotli&oldid=1338696822"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp