Brotli

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Expand on magic identification's difficulty with links)
 
Line 8: Line 8:
  
 
While the addition of this format to Firefox/Mozilla was still under discussion, there was a bit of a mini-flap over earlier proposals to use "bro" as the encoding identifier (and file extension for Brotli-compressed files), as this was deemed by some to be [https://bugzilla.mozilla.org/show_bug.cgi?id=366559#c147 misogynistic]. After some debate over <code>bro</code> vs. <code>brotli</code> vs. <code>br</code>, the shorter of these was ultimately adopted.
 
While the addition of this format to Firefox/Mozilla was still under discussion, there was a bit of a mini-flap over earlier proposals to use "bro" as the encoding identifier (and file extension for Brotli-compressed files), as this was deemed by some to be [https://bugzilla.mozilla.org/show_bug.cgi?id=366559#c147 misogynistic]. After some debate over <code>bro</code> vs. <code>brotli</code> vs. <code>br</code>, the shorter of these was ultimately adopted.
 +
 +
== Magic ==
  
 
Brotli files (and network traffic) do not have any magic bytes: the first bytes will have right-most bits from [https://datatracker.ietf.org/doc/html/rfc7932#section-9.1 this table], which could be anything.
 
Brotli files (and network traffic) do not have any magic bytes: the first bytes will have right-most bits from [https://datatracker.ietf.org/doc/html/rfc7932#section-9.1 this table], which could be anything.
 +
 +
Google have a [https://github.com/google/brotli/issues/298 closed ticket] with no resolution on the status of magic number identification. It is desired by parts of brotli's community who have sought to add it to [https://github.com/google/brotli/issues/727 magic] but with the difficulties implied above, i.e. 254 bytes might be used. This is certainly not ✨magic✨.
  
 
== Specifications ==
 
== Specifications ==

Latest revision as of 07:23, 20 August 2025

File Format
Name Brotli
Ontology
Extension(s) .br
Released 2013
Brotli is a compressed data format developed by Google. It is designed for a high compression ratio, and fast decompression. When used as a web content compression encoding, it uses br in the Accept-Encoding header so that a browser can signal support; this support is present in newer versions of Firefox and Chrome as of early 2016.

While the addition of this format to Firefox/Mozilla was still under discussion, there was a bit of a mini-flap over earlier proposals to use "bro" as the encoding identifier (and file extension for Brotli-compressed files), as this was deemed by some to be misogynistic. After some debate over bro vs. brotli vs. br, the shorter of these was ultimately adopted.

Contents

[edit] Magic

Brotli files (and network traffic) do not have any magic bytes: the first bytes will have right-most bits from this table, which could be anything.

Google have a closed ticket with no resolution on the status of magic number identification. It is desired by parts of brotli's community who have sought to add it to magic but with the difficulties implied above, i.e. 254 bytes might be used. This is certainly not ✨magic✨.

[edit] Specifications

[edit] Software

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox