Transfer size versus real size, file by file
Text files such as HTML, CSS, JavaScript, JSON and SVG are full of repetition: the same tag names, class names and keywords appear hundreds of times. Compression algorithms exploit that repetition, and a server that compresses its responses often sends 70 percent or more fewer bytes for the same content. This compression checker requests your page the way a modern browser does, with the header Accept-Encoding: br, gzip, zstd, deflate, and records what comes back over the wire before anything is decoded.
For the HTML document and up to eight of the stylesheets and scripts it references (your own files first), we report the Content-Encoding the server chose, the number of bytes actually transferred, the size after decompression, and the percentage saved. We then compress the decoded file ourselves with Brotli and Gzip to estimate what a well-configured server could send. That last column is what makes the result actionable: "Gzip, 38 KB" means little on its own, but "Gzip, 38 KB; Brotli would be 28 KB" tells you exactly what switching is worth.
Brotli, Gzip and Zstandard compared
Gzip (DEFLATE) dates from the 1990s and every client on earth understands it. At its usual level 6 it's fast and typically shrinks text by 65 to 80 percent.
Brotli (br) was designed by Google for the web. It includes a built-in dictionary of common HTML, CSS and JavaScript fragments, so even small files compress well. For the same content it is usually 15 to 25 percent smaller than Gzip. All current browsers support it, but only over HTTPS. Its top quality level (11) is slow, which is why servers commonly use a lower level for responses generated on the fly and pre-compress static files at level 11 during the build.
Zstandard (zstd) is the newest option. Chrome and Firefox advertise it, and Cloudflare can serve it. It compresses at roughly Brotli-like ratios at much higher speeds, which makes it attractive for dynamic HTML. Safari support has lagged, so servers that use it still need Brotli and Gzip fallbacks. When we list zstd, your server negotiated it because we offered it.
A practical ranking for most sites: Brotli for static assets, Brotli or zstd for HTML, and Gzip as the universal fallback. Any of the three is vastly better than nothing.
Fewer bytes on the critical path: the LCP and crawl angle
Bytes on the critical path translate directly into time. Before the browser can paint anything it needs the HTML and every render-blocking stylesheet; before the page becomes responsive it needs the JavaScript. Halving those bytes shortens First Contentful Paint and Largest Contentful Paint, particularly on mobile connections where bandwidth is limited and latency is high. Lighthouse flags this as "Enable text compression," and it's one of the few performance fixes that is usually a single configuration change with no visual risk. Our page speed guide puts it in context with the other quick wins.
Compression also helps crawling. Googlebot accepts Gzip and Brotli, so smaller responses mean less bandwidth per crawled page, and an origin server that spends less time pushing bytes answers the next request faster. For large sites that's a small but real contribution to crawl efficiency.
Four result patterns and what causes each
"none" on the HTML document
This is the biggest red flag. It usually means compression is switched off on the origin, or a proxy is stripping it. If the page is tiny (under about 1 KB), servers often skip compression deliberately because the overhead outweighs the gain, so we only flag files over that size.
HTML compressed, but CSS or JS not
The classic misconfiguration: the server compresses text/html by default but the compressible MIME type list doesn't include text/css, application/javascript or image/svg+xml. It's also common when assets are served from a separate storage bucket (S3, R2, a storage CDN) that serves files exactly as uploaded. Third-party files, marked by a different host, can only be fixed by their provider, but you can choose providers that compress or self-host the file.
Gzip where Brotli was possible
We offered Brotli first, so receiving Gzip means the server doesn't support it or has it disabled. The "brotli est." column shows what you'd gain. On a typical page that's 10 to 30 KB, which matters most for the HTML and main CSS bundle because they block rendering.
Missing Vary: Accept-Encoding
When a response differs depending on the client's Accept-Encoding header, it should say so with Vary: Accept-Encoding. Without it, a shared cache between your server and the visitor could store the Brotli version and serve it to a client that only understands Gzip. Most CDNs handle this automatically; it's more often missing on bare origin servers.
Turning it on in Nginx, Apache, a CDN or your CMS
Nginx
Gzip is built in. Brotli needs the ngx_brotli module (packaged for most distributions, included in many Nginx builds from hosting providers). If your build pipeline writes .br and .gz files next to your assets, the _static directives serve them without compressing on every request.
gzip on;
gzip_vary on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_types text/css application/javascript application/json
image/svg+xml text/plain application/xml;
brotli on;
brotli_comp_level 6;
brotli_static on; # serve pre-built .br files when present
brotli_types text/css application/javascript application/json
image/svg+xml text/plain application/xml;Apache
Enable mod_deflate for Gzip and mod_brotli (Apache 2.4.26+) for Brotli, then add this to your virtual host or .htaccess. Apache picks Brotli when the browser supports it.
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/css \
application/javascript application/json image/svg+xml
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css \
application/javascript application/json image/svg+xml
</IfModule>
Header append Vary Accept-EncodingCloudflare and other CDNs
Cloudflare compresses text responses with Gzip or Brotli to visitors automatically on all plans, and can use Zstandard too; Compression Rules let you choose the order. One gotcha: if your origin already sends compressed responses, Cloudflare passes them through, so a Gzip-only origin can still mean Gzip-only visitors for some cached files. CloudFront has a "Compress objects automatically" setting on each cache behaviour that must be turned on, and the cache policy must include Gzip and Brotli in its encoding settings. Vercel and Netlify compress automatically.
WordPress
Compression is set at the web server, not inside WordPress. Managed hosts enable it by default. On Apache shared hosting, caching plugins such as WP Rocket or W3 Total Cache can write the mod_deflate rules into .htaccess for you; LiteSpeed servers handle it through the LiteSpeed Cache plugin settings. Avoid PHP-level compression (zlib.output_compression) alongside server compression, which can double-compress and break pages.
Shopify, Wix and Squarespace
These platforms compress everything they serve and give you no control over it. If this tool reports an uncompressed file on one of them, it's almost always an external script or stylesheet, such as an app, widget or font provider, loaded from another host.
Pre-compressing static files at build time
Compressing on every request costs CPU, which is why servers use moderate levels for dynamic responses. For files that only change when you deploy, such as CSS and JavaScript bundles, you can compress once at the highest level and let the server send the ready-made file. Brotli at quality 11 is often another 5 to 10 percent smaller than the on-the-fly level 4 to 6 many servers use, at zero runtime cost.
# Create .br and .gz copies next to every built asset
find dist -type f \( -name "*.js" -o -name "*.css" -o -name "*.svg" \) \
-exec brotli -q 11 -k {} \; -exec gzip -9 -k {} \;With brotli_static on; and gzip_static on; in Nginx, the server checks for app.js.br before compressing app.js itself. Bundlers such as Vite and webpack have compression plugins that do the same step automatically, and most CDNs cache the compressed variant so the work happens once per file rather than once per visitor.
As a rough illustration, a 180 KB HTML document might shrink to around 35 KB with Gzip and somewhat less with Brotli; your own numbers depend on the content, which is why the tool measures your real files. On a slow mobile connection, every 100 KB is noticeable, which is why the "extra with brotli" figure in your results is worth acting on when it's more than a few dozen kilobytes.
Images, fonts and video: leave them out of the list
JPEG, PNG, WebP, AVIF, WOFF2 fonts, MP4 video and ZIP files are already compressed internally. Running Gzip on them wastes CPU and can make them slightly bigger, so keep them out of your compressible type lists. Their size is reduced by choosing better formats and dimensions instead. Also be careful compressing responses that mix secrets with attacker-controlled input on the same page (the BREACH attack); frameworks with CSRF token masking already mitigate this for normal sites.
Proving the change worked with curl and DevTools
After changing your configuration, clear your CDN cache and run this checker again. You can also check by hand from a terminal: curl -sI -H "Accept-Encoding: br,gzip" https://example.com prints the response headers, and you're looking for content-encoding: br or gzip. In Chrome DevTools, the Network tab's size column shows two numbers for each file when you enable "Big request rows": the smaller is the transferred (compressed) size. Once compression is in place, pair it with long-lived caching checked by the Cache-Control Analyzer so returning visitors don't download those bytes at all, and run the HTTP/2 checker to confirm the connection itself is modern.