Brotli and Compression Test

See which compression a site uses (Brotli, zstd or gzip) and how many bytes each saves.

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.

gzipBrotli (br)Zstandard (zstd)
Size for textBaselineUsually 15-25% smaller than gzipClose to Brotli, depending on level
SpeedFastSlow at high levels: best for files compressed in advanceFast to compress and very fast to unpack
BrowsersAllAll current browsers, over HTTPSChrome 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 .br files at the highest level once and serve them directly (brotli_static on; in nginx).

How This Tool Works

ItemDetail
Where it runsOn our server, which sends the requests to the site you enter.
RequestsGET 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.
SizesBytes of the body as sent, before decompression, read up to 1 MB (larger bodies are shown with a +).
AssetsThe first stylesheet and the first external script linked in the page, tested the same way.
When it failsThe reason is shown and no verdict is given.
StoredNothing.
Last verified10 November 2026

Frequently Asked Questions

How do I check if a site uses Brotli?
Enter it above, or open DevTools › Network in your browser, select the page and look for content-encoding: br in the response headers.
Is Brotli better than gzip?
For text such as HTML, CSS and JavaScript it's usually 15-25% smaller than gzip at similar speed for visitors. gzip remains the fallback every client understands.
What is zstd compression?
Zstandard, a fast compression format created at Meta. Chrome, Edge and Firefox have accepted it for web content since 2024, and Safari since version 26.3 in 2026.

Next steps

Related Tools

HTTP Header Checker
See all security headers a site sends, including HSTS after redirects.
HTTP/2 Test
Check whether a website supports HTTP/2.
SSL Certificate Checker
Expiry, issuer and chain of a site's certificate.