Halloween: +30% on one top-up (until 02.11.2026 23:59) — and there is a lot waiting for you in your dashboard 🕷 ⏳ Claim bonus
Home / Knowledge base / Tools and integrations / How to Check if Gzip or Brotli Compression Is Enabled

How to Check if Gzip or Brotli Compression Is Enabled

Tools and integrations 3 min read Updated 18.10.2026
How to check if gzip or Brotli is enabled — online, with curl or in DevTools. What the result means, which files to compress and what to do if compression is off.

To check if gzip is enabled, request the page with an Accept-Encoding header and look at the response: Content-Encoding: gzip (or br for Brotli, zstd for Zstandard) means compression is on. The quickest way is the free gzip and Brotli compression check: it requests the URL twice — with and without compression — and shows the algorithm, both sizes and the percentage saved. Compression makes HTML, CSS and scripts several times smaller with a single server setting.

How to Check if Gzip Is Enabled: Three Ways

  1. Online. Paste the URL into the compression check. A lit GZIP or Brotli badge means compression is on; for HTML, savings of 70–90% are normal. No badge but a much smaller transferred size usually means the server answered with zstd — Cloudflare does this, for example.
  2. curl. Run
    curl -s -o /dev/null -D - -H 'Accept-Encoding: gzip' https://example.com/ | grep -i content-encoding
    An empty result means the page came back uncompressed. Swap gzip for br to test Brotli. Use a GET request as above, not -I: some servers skip compression on HEAD.
  3. Browser. Open DevTools → Network, reload, click the document request and find content-encoding under Response Headers. The Size column shows transferred bytes next to the full resource size.

Only the URL you test is checked. Enter direct links to a stylesheet and a script too: often HTML is compressed while CSS and JS are not.

What the check shows

  • Is compression enabled and which algorithm is used.
  • Original and compressed size — the gain is immediately visible.
  • Which file types are compressed. Often only HTML is configured, while styles and scripts are forgotten.
  • Is anything unnecessary not compressed — compressing images and archives is pointless, they are already compressed.

Why this is more important than it seems

Text files are compressed three to five times. For the visitor, this is a direct reduction in loading time, especially on mobile networks. The setting is done once at the server level and applies to the entire site — in terms of effort and effect, this is one of the best ways to speed up.

File TypeCompress?
HTML, CSS, JavaScriptYes, definitely
JSON, XML, sitemapYes
SVGYes — it’s text
JPEG, PNG, WebPNo, already compressed
Video, archives, PDFNo
Compression and caching — neighbors
The second setting at the same level is static caching: a returning visitor does not download the same files again. Both are visible in response headers and both are enabled on the server.

How much this gives in numbers

A typical HTML page weighing 200 KB after compression takes 30–50 KB, a stylesheet of 150 KB — about 25 KB. For a visitor on a mobile network, this is the difference between instant loading and a couple of seconds of waiting. Moreover, the savings are repeated with every visit of each visitor, unlike one-time optimizations like compressing a single image.

Why compression is sometimes intentionally disabled

There are rare cases: streaming very large responses or saving CPU on a weak server. For a regular site, these considerations do not apply — modern algorithms are cheap in load, and the traffic gain far outweighs the costs.

If compression is not enabled

  1. Check if a proxy or content delivery network in front of the site is interfering.
  2. Ensure that the necessary file types are listed in the server configuration.
  3. Check if the application is returning a ready response bypassing the server.
  4. Recheck the result and also look at the page load speed.

FAQ

Which files should be compressed?
Text files: HTML, CSS, JavaScript, JSON, XML, and SVG. Images, videos, and archives are already compressed, they do not need re-compression.
How much does this speed up the site?
Text files are reduced three to five times — the difference is especially noticeable on mobile connections.
Why is compression not enabled?
Most often, a proxy or content delivery network in front of the site interferes, or the necessary file types are not listed in the server configuration.
How do I know if gzip compression is enabled?
Look for Content-Encoding: gzip (or br, zstd) in the response headers — in an online compression check, with curl -H "Accept-Encoding: gzip", or in DevTools → Network. No Content-Encoding header means the response is uncompressed.
Is Brotli better than gzip?
Usually it compresses text 15–25% smaller than gzip, and browsers request it only over HTTPS. Keep gzip enabled as a fallback for clients that do not support Brotli.
Was this article helpful?
Try it on your project Everything described in the article is available in the dashboard — the registration bonus is already in your balance.
Open dashboard