coderef

Brotli compressionBaseline · Widely available

Brotli is a lossless data compression algorithm. When used as a content encoding, it often provides better compression than gzip.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 19, 2017. Widely available since Mar 19, 2020.

Browser support

DesktopChrome
1–49Not supported
50+Supportedsince Apr 13, 2016
Current: 155
Edge
12–14Not supported
15+Supportedsince Apr 5, 2017
Current: 154
Firefox
1–43Not supported
44+Supportedsince Jan 26, 2016
Current: 157
Safari
1–10.1Not supported
11+Supportedsince Sep 19, 2017
Current: 27
MobileChrome Android
18–50Not supported
51+Supportedsince Jun 8, 2016
Current: 155
Firefox Android
4–43Not supported
44+Supportedsince Jan 26, 2016
Current: 157
Safari iOS
1–10.3Not supported
11+Supportedsince Sep 19, 2017
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: Accept-Encoding#br.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
http.headers.Accept-Encoding.br50154411514411
http.headers.Content-Encoding.br50154411514411