1. Home
  2. Glossary
  3. Brotli
Server/HTTP

Brotli

A compression format for text files such as HTML, CSS and JavaScript. It usually produces smaller files than gzip. Browsers announce support in the Accept-Encoding request header.

Why it matters

Smaller text files download faster, especially on slow connections. Most modern servers and CDNs can serve Brotli to browsers that ask for it.

Example

Accept-Encoding: gzip, deflate, br
Content-Encoding: br

Where you will see it

The free Compression & caching checker looks at this on a live page and explains what it finds in plain English: test Brotli and gzip compression, browser caching and HTTP/2 or HTTP/3, with server config fixes.

Related terms

  • Gzip: A widely supported compression format for text responses.
  • HTTP header: A name and value pair sent along with a request or a response.
  • Page weight: The total size of all files a browser downloads to show a page: HTML, CSS, JavaScript, images, fonts and more.

Go deeper

  • Compression & caching: How gzip and Brotli compression and HTTP caching work, which settings to use for HTML, CSS, JavaScript and images, and how to turn them on in Nginx and Apache.

← All 66 glossary terms

↑ ↓ to moveEnter to openEsc to closeAll results