Best
Brotli
Or Zstandard, both smaller than gzip
Performance + SEO + UX Intelligence
Text files such as HTML, CSS and JavaScript usually shrink by 70% or more when compressed, yet some servers still send them uncompressed. Enter a URL to see which compression your page uses, as a real browser receives it, plus caching and page weight checks. Free with a Google sign-in.
Best
Brotli
Or Zstandard, both smaller than gzip
Typical saving
70%+
For HTML, CSS and JavaScript
Header
Content-Encoding
Shows which compression was used
HTML, CSS and JavaScript are plain text with a lot of repetition, which makes them compress very well. A 100 KB HTML page often travels as 15 to 25 KB once compressed.
Browsers announce which compression they understand, and the server picks one and labels the response with a Content-Encoding header: br for Brotli, gzip, or zstd for Zstandard. If the server is not set up for it, the page travels at full size.
This compression checker loads your page in a real browser and reports which compression the HTML document arrived with. The same section checks static asset caching, page weight and request count.
Speed: fewer bytes means the browser gets the HTML sooner and can start loading images, styles and scripts earlier, which helps Largest Contentful Paint.
Cost: compression cuts bandwidth for you and mobile data for your visitors on every single page view.
It is usually one setting. Most servers, hosts and CDNs support Brotli and gzip; it only needs to be switched on.
Whether the page was sent with Brotli or Zstandard (pass), gzip or deflate (pass with a Brotli tip), or no compression (fail).
Whether your own scripts, styles, images and fonts are cached for at least 7 days.
The total bytes transferred and the number of requests, with warnings for very heavy pages.
How many images still use PNG, JPEG or GIF instead of WebP or AVIF, and how many font files load.
These results are in the Asset Performance section of your report, which needs a free Google sign-in.
Site Vitals loads your page in a headless Chrome browser, which accepts Brotli, gzip and Zstandard like any modern browser, and records every network response.
For the main HTML document it reads the encoding the server chose. That is the file where compression is most often missing, because it is generated by your application rather than served as a static file.
The compression check looks at the HTML document only. CSS and JavaScript are usually compressed by the same server rule, but if you serve them from a different server or bucket, check that one separately.
Run the checker to see the current encoding of your HTML.
If you use Cloudflare, Fastly, CloudFront or Bunny, enable Brotli compression in its settings first; it is usually one switch.
In Nginx set "gzip on;" plus gzip_types for CSS, JS, JSON and SVG, and add the Brotli module if available. In Apache enable mod_deflate and mod_brotli.
Compress text/html, text/css, application/javascript, application/json, image/svg+xml and fonts like TTF. Skip JPEG, PNG, WebP and WOFF2, which are already compressed.
For static assets, generate .br and .gz files at build time so the server does not compress on every request.
Confirm the HTML now arrives with br, zstd or gzip.
Enabling gzip but leaving the default gzip_types in Nginx, which covers HTML only.
Compressing images and WOFF2 fonts, which wastes server CPU for no gain.
A proxy or load balancer in front of the server that removes the compression.
Testing with curl without an Accept-Encoding header and concluding compression is off.
Turning compression on at the origin but not on the CDN that actually serves visitors.
All modern browsers support Brotli and gzip; current Chrome, Edge and Firefox also support Zstandard.
| Content-Encoding | Method | Notes |
|---|---|---|
| br | Brotli | Usually 15–20% smaller than gzip for text |
| zstd | Zstandard | Fast to compress, similar size to Brotli |
| gzip | Gzip | Universal fallback, still a big saving |
| (none) | Uncompressed | Full size, fix this first |
Serve Brotli where possible and keep gzip as the fallback.
Pre-compress static assets at the highest level during the build, and use a moderate level for dynamic HTML.
Give fingerprinted assets "Cache-Control: public, max-age=31536000, immutable" so returning visitors do not download them again.
Compression shrinks transfer size but not parse time; still remove unused JavaScript and CSS.
Re-check after changing host, CDN or server configuration.
Enter the URL above, or open your browser's DevTools, go to the Network tab, select the page request and look at the Content-Encoding response header. It shows br, gzip or zstd when compression is on.
For text files Brotli is usually 15–20% smaller than gzip at similar speed, and every modern browser supports it. Keep gzip enabled as a fallback for older clients.
Not with gzip or Brotli. JPEG, PNG, WebP, AVIF and WOFF2 are already compressed. Make images smaller by resizing them and using WebP or AVIF instead.
The compression check covers the HTML document. Your CSS and JavaScript sizes are in the page weight figures, and they are normally compressed by the same server rule as the HTML.
Yes, compression results are in the Asset Performance section, which needs a free Google sign-in. Speed and SEO results are open without an account.
Compression is one of the cheapest speed wins available: one setting can cut the size of every page by more than half.
A scan shows whether your page arrives compressed and whether your assets are cached, so you can fix both in one go.
See whether your page is sent with Brotli, gzip or no compression, plus caching and page weight checks.