Check GZIP Compression

Check if a website is using GZIP compression to speed up loading. Enter a URL to see whether GZIP is enabled and how it affects your site’s performance. Fast, free, and perfect for SEO & performance checks on any device.

Enter domain name to search

Check GZIP Compression

The GZIP Compression Checker verifies whether a website has GZIP compression enabled on its server. Enter any URL and the tool checks the HTTP response headers to confirm whether the server is returning compressed files. The result tells you if GZIP is active, and if not, whether the site is delivering uncompressed resources that are larger than necessary — slowing page load times and wasting bandwidth.

GZIP compression is one of the most impactful and straightforward performance optimizations available to any website. Enabling it requires a single configuration change on most web servers, costs no money, and reduces the transfer size of text-based resources by 60 to 80 percent. Despite this, a significant proportion of websites operate without it enabled — either because it was never configured, because a server migration reset the settings, or because a hosting environment does not enable it by default.

How to use the GZIP Compression Checker

  1. Enter the full URL of the page or domain you want to test. You can check any publicly accessible URL — your own site, a competitor's site, or any page you are investigating.
  2. Click Check GZIP Compression. The tool sends a request to the URL with the Accept-Encoding: gzip header and inspects the server's response.
  3. Review the result. If GZIP is enabled, the response will include a Content-Encoding: gzip header. If GZIP is not enabled, the response will lack this header — the server is delivering uncompressed resources.
  4. If GZIP is not enabled, use the configuration guidance below to enable it on your server or through your CDN. Re-test after making changes to confirm the fix is working.

Test multiple page types, not just your homepage. GZIP must be configured correctly for all text-based resource types — HTML pages, CSS stylesheets, JavaScript files, and JSON API responses. Some server configurations enable GZIP only for HTML (the default on NGINX) but leave CSS and JS uncompressed. Run the checker against a CSS file URL and a JS file URL directly to confirm compression is active for all resource types, not just the main HTML response.

How GZIP compression works

GZIP compression operates as a negotiated exchange between the browser and the web server. When a browser requests a file, it includes an Accept-Encoding header in the request to signal which compression formats it understands. Every modern browser sends Accept-Encoding: gzip, deflate, br by default — indicating support for GZIP, deflate, and Brotli.

When the server receives this header and has GZIP enabled for the requested file type, it compresses the file before sending it and adds a Content-Encoding: gzip header to the response. The browser receives the compressed file, decompresses it automatically in memory, and renders it as normal. The user sees no difference — only the delivery is faster.

If the server does not have GZIP enabled, or if the browser does not include the Accept-Encoding header, the file is served uncompressed at its full original size. The compression and decompression process is transparent — it adds negligible time (typically a few milliseconds) while the reduction in transfer size saves far more time on slower connections.

How to verify GZIP manually in your browser: open Chrome or Firefox DevTools (F12), go to the Network tab, reload the page, and click on any HTML, CSS, or JS resource. Under the Headers tab, look for Content-Encoding: gzip in the Response Headers section. If this header is present, GZIP is active for that resource. If it is absent, that resource is being served uncompressed. You can also use a terminal command: curl -H "Accept-Encoding: gzip" -I https://yoursite.com — a Content-Encoding: gzip line in the output confirms compression is active.

Which file types benefit from GZIP — and which to skip

GZIP works by finding and replacing repeated patterns within a file. Text-based resources — HTML, CSS, JavaScript, JSON, SVG — contain enormous amounts of repeated words, tags, and syntax patterns, and compress very efficiently. Binary formats like JPEG, PNG, and MP4 are already compressed using their own codec-level algorithms; applying GZIP to them produces files that are the same size or larger, wasting CPU with no benefit.

File typeMIME typeTypical savingsNotes
High benefit — compress these
HTMLtext/html60 – 80%Largest gains. Pages with lots of whitespace, repeated tags, and inline CSS compress extremely well.
CSStext/css70 – 85%Stylesheets contain many repeated property names, selectors, and values — ideal for compression.
JavaScriptapplication/javascript60 – 80%Variable names, function keywords, and repeated syntax patterns compress significantly.
JSONapplication/json60 – 75%Key names repeat throughout JSON responses — API response payloads benefit substantially from compression.
SVGimage/svg+xml60 – 80%SVG files are XML-based text — they compress as well as HTML and CSS.
XML / RSSapplication/xml, text/xml60 – 75%Feeds and configuration files with repeated tag structures compress well.
Plain texttext/plain50 – 70%Text files, log outputs, and documentation compress reliably.
Web fontsfont/woff, font/ttf30 – 60%TTF and OTF fonts compress significantly. WOFF2 is already compressed — applying GZIP adds minimal gain.
Low or no benefit — skip these
JPEG / JPGimage/jpeg0 – 5%Already compressed using lossy encoding. Applying GZIP typically increases file size.
PNGimage/png0 – 5%Already compressed using lossless deflate encoding. GZIP adds negligible benefit and may increase size.
GIFimage/gif0 – 3%GIF uses LZW compression internally. GZIP provides virtually no additional reduction.
WebPimage/webp0 – 3%WebP files are already compressed. Do not enable GZIP for WebP.
MP4 / videovideo/mp40 – 2%Video files use codec-level compression. GZIP has no meaningful effect and wastes CPU.
ZIP / GZIPapplication/zip0%Already compressed archives. Applying GZIP again adds no benefit.
PDFapplication/pdf0 – 10%PDF files contain a mix of compressed streams. Marginal benefit at best; skip for simplicity.

 

How to enable GZIP on your server

Apache — .htaccess configuration

Apache handles GZIP through the mod_deflate module, which is enabled by default on most Apache installations. Add the following to your site's .htaccess file or Apache virtual host configuration:

# Apache .htaccess — Enable GZIP via mod_deflate

  AddOutputFilterByType DEFLATE text/html text/plain text/css

  AddOutputFilterByType DEFLATE application/javascript application/json

  AddOutputFilterByType DEFLATE application/xml image/svg+xml

  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject font/ttf

  Header append Vary User-Agent

 

After adding or changing .htaccess rules on Apache, no server restart is required — Apache reads .htaccess on every request. Verify the change immediately by running the GZIP Compression Checker again, or by checking the Content-Encoding response header in browser DevTools.

NGINX — nginx.conf configuration

NGINX does not enable GZIP by default for most file types — only text/html is compressed out of the box. Add the following to the http block of your nginx.conf file (or to a server or location block for more granular control):

# NGINX — Enable GZIP compression

gzip on;

gzip_vary on;

gzip_proxied any;

gzip_comp_level 6;

gzip_min_length 256;

gzip_types

  text/plain text/css text/html

  application/javascript application/json application/xml

  image/svg+xml font/ttf application/vnd.ms-fontobject;

 

After editing nginx.conf, reload NGINX to apply the changes: sudo nginx -s reload or sudo systemctl reload nginx.

The gzip_comp_level 6 setting is the recommended value — it provides approximately 75% compression with minimal CPU cost. Values above 6 produce marginally smaller files but with significantly higher CPU usage. The gzip_vary on directive ensures CDNs and caching proxies store both the compressed and uncompressed versions correctly.

CDN and managed hosting

Major CDN and hosting providers handle GZIP at the infrastructure level, often without requiring any server configuration:

  • Cloudflare: Enable via the Speed tab > Optimization > Content Optimization. Cloudflare supports both GZIP and Brotli and can compress responses even if your origin server does not.
  • AWS CloudFront: Enable Compress Objects Automatically in the cache behavior settings. CloudFront supports both GZIP and Brotli for text-based content types by default.
  • Google Cloud CDN: Compression is handled automatically for eligible text-based responses. Verify the configuration in the backend service settings.
  • WordPress: Performance plugins such as WP Rocket, LiteSpeed Cache, and W3 Total Cache include GZIP settings in their configuration panels. These modify .htaccess or server configuration depending on your hosting environment.

GZIP vs Brotli — understanding the difference

Brotli is a newer compression algorithm developed by Google that achieves 15 to 25 percent better compression than GZIP for most text-based resources. It is supported by all modern browsers and is available on most current web servers and CDNs. The recommended approach for most sites is to enable both: Brotli for modern browsers over HTTPS, with GZIP as a universal fallback.

 GZIPBrotli
Compression ratioIndustry-standard. Text files typically reduce by 60–80%.15–25% better compression than GZIP on average for text files — produces smaller output.
Browser supportUniversal. Supported by every browser in use today including all legacy versions.Supported by all modern browsers (Chrome, Firefox, Safari, Edge) since 2017. Not supported by Internet Explorer.
Server supportSupported natively by all web servers (Apache, NGINX, IIS, LiteSpeed) and all CDNs.Requires NGINX 1.11.6+, Apache with mod_brotli, or CDN-level support. Cloudflare, AWS CloudFront, and Google Cloud CDN all support Brotli.
HTTPS requirementWorks over both HTTP and HTTPS.Brotli is only served over HTTPS connections. HTTP connections fall back to GZIP or no compression.
CPU usageLow CPU overhead at compression levels 1–6. Level 9 is slower but rarely used.Higher CPU overhead at maximum compression levels. Most servers use Brotli level 4–6 for a good speed/size balance.
RecommendationEnable GZIP as a baseline on all servers. It is the universally compatible option and should always be active.Enable Brotli in addition to GZIP if your server and CDN support it. Serve Brotli to modern browsers, GZIP as fallback. Brotli is the preferred option for HTTPS traffic.

 

If your site is served entirely over HTTPS (which it should be in 2025), enabling Brotli alongside GZIP is a worthwhile additional optimization. The two compression methods complement each other — modern browsers negotiate Brotli automatically when it is available, older browsers and plain HTTP connections fall back to GZIP seamlessly. The ToolsPiNG GZIP Compression Checker confirms GZIP status; verify Brotli separately by checking for Content-Encoding: br in your response headers.

GZIP compression and SEO

Page speed is a confirmed Google ranking signal, included in both the original Page Experience update and the Core Web Vitals framework. GZIP compression directly improves the page speed metrics that Google evaluates: it reduces the total byte size of the page, which lowers Time to First Byte (TTFB) and improves Largest Contentful Paint (LCP) — one of the three Core Web Vitals. Google's PageSpeed Insights tool explicitly flags missing GZIP or Brotli compression as a high-priority recommendation for any page where it is absent.

The practical impact on speed depends on the size of uncompressed resources and the user's connection speed. A page serving 200KB of uncompressed CSS and JavaScript reduces to approximately 50–80KB with GZIP enabled — a savings that is nearly imperceptible on a fast fibre connection but significant on mobile networks, where many users still experience 4G and below speeds with higher latency.

Usage limits

Guest users25 checks per day. No account required.
Registered users100 checks per day. Free to register.

Related tools

  • SSL Checker — verify your site's SSL/TLS certificate is valid and correctly configured. HTTPS is required for Brotli compression and is a Google ranking signal in its own right.
  • Spider Simulator — see how a search engine crawler sees your page's content and links, helping diagnose technical SEO issues beyond compression.
  • Websites Broken Link Checker — identify broken links that create unnecessary server requests and errors, which contribute to poor performance metrics alongside compression.
  • MozRank Checker — check page-level link authority alongside technical performance metrics for a fuller view of SEO health.

Frequently asked questions

What is GZIP compression?

GZIP is a file compression format that reduces the size of text-based web resources — HTML, CSS, JavaScript, JSON, SVG, and XML — before they are transmitted from the server to the browser. The browser automatically decompresses the files on receipt. GZIP works by identifying and replacing repeated strings within a file with shorter references, producing files that are typically 60 to 80 percent smaller than their original size. The compression and decompression process is transparent to users and adds negligible time compared to the savings on file transfer.

Why should I enable GZIP compression on my website?

GZIP reduces the size of files sent to visitors, which makes pages load faster, reduces bandwidth usage and hosting costs, and improves user experience — particularly on mobile and slower connections. Google considers page speed a ranking factor; faster pages tend to rank better for competitive queries. PageSpeed Insights and Lighthouse flag missing GZIP as a high-priority, easily-fixed performance issue. The configuration change required to enable GZIP is minimal, and the benefits are immediate.

How does the GZIP Compression Checker work?

The tool sends an HTTP request to the URL you enter, including an Accept-Encoding: gzip header to signal that it can accept compressed responses. It then inspects the server's response headers. If the server returns a Content-Encoding: gzip header, GZIP is confirmed as active. If this header is absent, the server is not compressing its responses. The check takes a few seconds and works on any publicly accessible URL.

My GZIP check shows compression is not enabled — how do I fix it?

The fix depends on your server environment. For Apache, add the mod_deflate configuration to your .htaccess file as shown above. For NGINX, add the GZIP directives to your nginx.conf file and reload NGINX. If you are on managed hosting or using a CDN, check your control panel or CDN settings for a compression option — Cloudflare, CloudFront, and most major CDNs enable compression with a single toggle. If you are on WordPress, a caching or performance plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache) can handle the configuration. After making changes, re-run the GZIP Compression Checker to confirm the fix is working.

Does GZIP compression affect website functionality?

No. GZIP compression is transparent to both users and browsers. Browsers that support GZIP (which is all browsers in current use) automatically decompress the files before rendering — the user sees exactly the same page. Browsers that do not support GZIP (essentially none in practical use today) receive the uncompressed file as a fallback — the server always sends the appropriate version based on the Accept-Encoding header in the request.

What is the difference between GZIP and Brotli?

Both are compression algorithms for web resources. GZIP has been the standard for over two decades and is supported universally. Brotli is a newer algorithm developed by Google that achieves 15 to 25 percent better compression than GZIP for most text-based files. Brotli requires HTTPS and is supported by all modern browsers but not Internet Explorer. The best practice is to enable both: Brotli for modern browsers over HTTPS, GZIP as a fallback for all other cases. Check for Brotli by looking for Content-Encoding: br in your response headers.

Can GZIP slow down my server?

GZIP compression uses CPU to compress files before serving them. On modern servers, this overhead is negligible for typical web traffic — the CPU cost of compressing a CSS file is measured in microseconds. For very high-traffic sites, you can configure NGINX or Apache to use static compression (pre-compress files at deployment rather than on every request), eliminating the per-request CPU cost entirely. The compression level setting (1 to 9 in NGINX; default 6 is recommended) controls the trade-off between compression ratio and CPU usage. Level 6 provides close to the maximum compression at a fraction of the CPU cost of level 9.

Is the GZIP Compression Checker free?

Yes. The tool is free within the daily usage limits. Guest users can run 25 checks per day without creating an account. Registering a free ToolsPiNG account increases the daily limit to 100 checks and gives access to usage history and saved favorites.