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: 155Edge
12–14Not supported
15+Supportedsince Apr 5, 2017
Current: 154Firefox
1–43Not supported
44+Supportedsince Jan 26, 2016
Current: 157Safari
1–10.1Not supported
11+Supportedsince Sep 19, 2017
Current: 27MobileChrome Android
18–50Not supported
51+Supportedsince Jun 8, 2016
Current: 155Firefox Android
4–43Not supported
44+Supportedsince Jan 26, 2016
Current: 157Safari iOS
1–10.3Not supported
11+Supportedsince Sep 19, 2017
Current: 27How 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.
Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| http.headers.Accept-Encoding.br | 50 | 15 | 44 | 11 | 51 | 44 | 11 |
| http.headers.Content-Encoding.br | 50 | 15 | 44 | 11 | 51 | 44 | 11 |