GZIP & Brotli Compression Test Tool Online

Last updated:

Check whether your site uses GZIP or Brotli compression. See transfer savings, compression status, and practical GEO performance fixes for faster crawling and better user experience.

Enter a URL to test compression:

How the Compression Test Works

The API fetches your page with browser-like compression support and reads the response headers.

  1. Safe URL check, the host is validated before the server requests it.
  2. Compression request, the fetch includes gzip, deflate, and br in Accept-Encoding.
  3. Header analysis, the content-encoding and content-length headers are read from the response.
  4. Savings estimate, the decoded body size is compared with compressed transfer size when available.

Why Compression Matters

Text compression is one of the simplest speed wins for HTML, CSS, and JavaScript.

  • Faster first load, smaller files reach visitors sooner on mobile networks.
  • Better crawl efficiency, search engines and AI crawlers can retrieve pages with less bandwidth.
  • Lower hosting cost, compressed responses reduce data transfer from your server or CDN.
  • Better Core Web Vitals support, smaller render-blocking CSS and JavaScript can improve LCP and INP.

Compression Encoding Comparison

EncodingBest forNotes
brHTML, CSS, JSUsually the best compression for modern browsers.
gzipHTML, CSS, JSUniversal fallback with strong savings.
noneAlready compressed assetsBad for text files unless the response is tiny.

For a wider performance audit, use our website speed optimization guide.

Text compression methods reference

Compression only helps text-based assets. Use this reference to pick an encoding and to remember which files are worth compressing. Compress text assets such as HTML, CSS, and JavaScript, and leave already-compressed images alone.

MethodTypical ratioSupport / note
gzipRoughly 60 to 75 percent smaller for textBroad, universal support across every browser and server. The safe default over both HTTP and HTTPS.
BrotliRoughly 65 to 80 percent smaller, usually 10 to 20 percent better than gzipBest ratio for static text. Negotiated only over HTTPS in browsers. Pre-compress at max quality for static files.
deflateSimilar to gzip in theoryLegacy raw DEFLATE. Rarely worth using today because some clients mishandle it, prefer gzip or Brotli.

Reminder: compress text assets like HTML, CSS, JS, JSON, SVG, and fonts. Do not compress already-compressed images such as JPEG, PNG, WebP, or AVIF. To turn these wins into a full plan, see our website speed and performance optimization service or get a free website audit.

Next steps

GZIP / Brotli Test related tools and articles

Continue with the closest follow-up checks and guides based on this tool's topic, crawl intent, and optimization workflow.

GZIP and Brotli Compression: FAQ

What does the compression test request and report?
It requests the URL while advertising Brotli, GZIP, and deflate support, then reports the final URL, HTTP status, Content-Encoding header, available compressed size, decoded response size, and estimated byte savings.
What counts as compression enabled in this result?
The tool marks compression enabled when the response Content-Encoding is br or gzip. If a server returns no encoding or another value, review the reported header directly and test from the browser or CDN edge used by your visitors.
Why can the result show zero savings or equal sizes?
The decoded body size can be measured after download, but the transferred compressed size depends on the Content-Length header. When that header is absent, such as with streaming or chunked responses, the tool cannot calculate the transfer savings and uses the decoded size as its fallback.
Does this test check every asset on the page?
No. It checks the response for the single URL you submit. Test important HTML pages and direct CSS, JavaScript, JSON, SVG, or font URLs separately because each resource can have different CDN and server compression rules.
Which response is tested when the URL redirects?
The request follows redirects and reports the final URL and its response. If you need to audit both the redirect response and destination, inspect the redirect separately with an HTTP header tool and run this test on the destination URL.
How should I fix an uncompressed text response?
Enable Brotli or GZIP for compressible MIME types in the CDN, hosting platform, or web server, keep a Vary: Accept-Encoding response where applicable, and retest the exact production resource. Avoid recompressing image and video formats that are already compressed.
Why might the compression test fail?
The URL must be publicly reachable. DNS errors, connection failures, timeouts, blocked automated requests, invalid certificates, or a server response outside the tool's limit can prevent a result. A CDN may also vary behavior by location or request headers.
What data is sent when I run the test?
The public URL is sent to Web Aloha's tool endpoint, which requests that resource to inspect its response headers and decoded body size. Do not submit private, signed, or tokenized URLs that should not be fetched by an external service.

Free 48-Hour Website Audit

Not sure what to fix first on your own website? We'll review it and tell you, in plain English. Free & non-obligatory.

Need a Faster, Lighter Website?

We optimize compression, caching, images, fonts, and Core Web Vitals for business websites.