Brotli and Compression Test |
How to Check if a Site Uses Brotli
Websites compress pages before sending them: Brotli (br) is usually 15–25% smaller than gzip for text, and Zstandard (zstd) is newer and fast. This test asks a site for each and shows what it returns and how many bytes it saves.
Enter the domain: we request the page with br, zstd and gzip and read the Content-Encoding of each answer. A fourth request asks for no compression, which gives the size to compare against. The bytes shown are what travelled over the network, before the browser unpacks them. The same four requests then go to the first stylesheet and the first script linked from the page, where compression usually matters even more.
Brotli vs gzip vs zstd
Brotli compresses text best, gzip is universal, zstd decompresses fastest and is gaining browser support.
| gzip | Brotli (br) | Zstandard (zstd) | |
|---|---|---|---|
| Size for text | Baseline | Usually 15-25% smaller than gzip | Close to Brotli, depending on level |
| Speed | Fast | Slow at high levels: best for files compressed in advance | Fast to compress and very fast to unpack |
| Browsers | All | All current browsers, over HTTPS | Chrome and Edge 123+, Firefox 126+ (2024), Safari 26.3+ (2026) |
Browsers say what they accept in the Accept-Encoding header and the server picks one, so offering all three breaks nothing: clients that don't know Brotli or zstd simply get gzip. The result above shows the sizes for your own site.
How to Enable Brotli (and zstd)
Turn on Brotli next to gzip on your server or CDN; images and video are already compressed, so apply it to text types only.
# nginx (gzip is built in; Brotli needs the ngx_brotli module)
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
brotli on;
brotli_types text/css application/javascript application/json image/svg+xml;
# Apache 2.4 (mod_brotli and mod_deflate)
AddOutputFilterByType BROTLI_COMPRESS;DEFLATE text/html text/css application/javascript
# Caddy
encode zstd gzip
- CDNs: Cloudflare and most CDNs compress text for visitors with Brotli automatically; some also offer zstd. They compress even when your server doesn't.
- zstd on nginx: needs a third-party module, so for most sites Brotli plus gzip is the practical choice.
- Pre-compressed files: for static CSS and JS, build
.brfiles at the highest level once and serve them directly (brotli_static on;in nginx).
How This Tool Works
| Item | Detail |
|---|---|
| Where it runs | On our server, which sends the requests to the site you enter. |
| Requests | GET to https://domain/ with Accept-Encoding br, zstd, gzip and identity (no compression), following up to 5 redirects, each checked to be a public address on port 80 or 443; up to 8 seconds per wait and about 24 seconds per request, redirects included. |
| Sizes | Bytes of the body as sent, before decompression, read up to 1 MB (larger bodies are shown with a +). |
| Assets | The first stylesheet and the first external script linked in the page, tested the same way. |
| When it fails | The reason is shown and no verdict is given. |
| Stored | Nothing. |
| Last verified | 10 November 2026 |
Frequently Asked Questions
How do I check if a site uses Brotli?
Is Brotli better than gzip?
What is zstd compression?
Next steps