GZIP Compression Test

Check if a website uses GZIP, Brotli or Zstandard compression

Check whether a page is served compressed, which encodings the server supports (Brotli, GZIP, Zstandard, Deflate), how big each version is, and how much bandwidth compression saves.
Try an example:

About GZIP Compression Test

How it works

  1. Our server follows any redirects to the real page first.
  2. It requests the page the way a browser does, then once for each encoding (Brotli, GZIP, Zstandard, Deflate) and once uncompressed.
  3. Comparing sizes shows which encodings the server supports and how much each one saves.
  4. It also checks the Vary: Accept-Encoding header, which caches need to serve the right version.

What you need

  • A public page or file URL (http:// or https://).

Tips

  • Text files (HTML, CSS, JavaScript, JSON, SVG) should always be compressed - savings of 60-80% are normal.
  • Brotli usually beats GZIP by 15-25% for text; enable both so every browser gets the best option.
  • Images, videos and fonts like WOFF2 are already compressed - compressing them again does not help.

Limitations

  • Files larger than 5 MB are only partly downloaded, so their sizes are shown as minimums (+).
  • Results reflect what our server receives; a CDN may behave differently in other regions.

Runs on our server. The URL is sent to our server, which downloads the page. Nothing is stored.

Frequently asked questions

What is GZIP compression?+

A way for web servers to shrink text files before sending them. The browser unpacks them automatically, so pages load faster and use less data.

Brotli or GZIP?+

Brotli (br) compresses text noticeably better and is supported by all modern browsers. Keep GZIP enabled as a fallback for older clients.

How do I enable compression?+

On Apache enable mod_deflate (and mod_brotli); on nginx set gzip on (and add the brotli module); most CDNs such as Cloudflare compress automatically.

What does Vary: Accept-Encoding do?+

It tells caches and CDNs that the response differs depending on the browser's supported compression, so they never serve a compressed file to a client that cannot read it.