GZIP and Brotli Test
See whether your site supports gzip, Brotli and Zstandard compression and how many KB it saves.
Why does compression matter?
HTML, CSS and JavaScript are plain text with a lot of repetition; when the server compresses them, the transferred data usually drops to a fifth or even a tenth. Pages open faster, especially on mobile, Core Web Vitals improve and the server uses less bandwidth. The browser lists the methods it supports in the Accept-Encoding header and the server names the one it picked in Content-Encoding.
gzip vs Brotli vs Zstandard
gzip is everywhere and is the baseline. Brotli (br) usually produces 15 to 25 percent smaller text files than gzip and every current browser supports it. Zstandard (zstd) is the newest; Chrome and Firefox support it and CDNs such as Cloudflare have started serving it. Our advice is to keep Brotli and gzip both on: clients that do not speak Brotli get gzip.
Enabling it on nginx and Apache
nginx gzip: gzip on; gzip_comp_level 5; gzip_types text/css application/javascript application/json image/svg+xml; (text/html is always included). Brotli needs the ngx_brotli module: brotli on; brotli_comp_level 5; brotli_types text/css application/javascript application/json image/svg+xml;
Apache gzip uses mod_deflate: AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json. Brotli uses mod_brotli (2.4.26 and later): AddOutputFilterByType BROTLI_COMPRESS text/html text/css application/javascript application/json. On shared hosting you can generate ready rules with the .htaccess generator.
Reading the result
Each row is a separate download of the same address asking for only that method. If the server answered with the requested method, it counts as supported. Savings are measured against the uncompressed size. JPEG, PNG, WebP and MP4 files are already compressed and are not compressed again, so "no" is normal for them.
More free tools
FAQ
About GZIP and Brotli Test
Enter the address above and run the test. If the gzip row says "Supported", the server answers with gzip. To check in a browser, open the Network tab in developer tools, click the page and look at content-encoding in the response headers.
Brotli gives smaller output for text and browsers prefer it. Do not use it alone though: keep gzip on too, so clients and bots without Brotli support still get compressed responses.
No. For on-the-fly compression, gzip 5 to 6 and Brotli 4 to 6 are a good balance. The top levels cost many times more CPU for a few percent smaller files and delay the first byte. Maximum levels only make sense for static files compressed ahead of time.