Performance + SEO + UX Intelligence

Gzip and Brotli Compression Checker: Is Your Page Sent Compressed?

|
Published:
|
Updated:

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.

Free · No signup required · Results in about a minute

Best

Brotli

Or Zstandard, both smaller than gzip

Typical saving

70%+

For HTML, CSS and JavaScript

Header

Content-Encoding

Shows which compression was used

Introduction

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.

Why Compression Matters

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.

What the Checker Looks At

HTML compression

Whether the page was sent with Brotli or Zstandard (pass), gzip or deflate (pass with a Brotli tip), or no compression (fail).

Static asset caching

Whether your own scripts, styles, images and fonts are cached for at least 7 days.

Page weight and requests

The total bytes transferred and the number of requests, with warnings for very heavy pages.

Images and fonts

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.

How It Works

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.

How to Enable Brotli or Gzip

  1. 1. Check the page

    Run the checker to see the current encoding of your HTML.

  2. 2. Turn it on at the CDN

    If you use Cloudflare, Fastly, CloudFront or Bunny, enable Brotli compression in its settings first; it is usually one switch.

  3. 3. Or on the server

    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.

  4. 4. Include the right types

    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.

  5. 5. Pre-compress build files

    For static assets, generate .br and .gz files at build time so the server does not compress on every request.

  6. 6. Scan again

    Confirm the HTML now arrives with br, zstd or gzip.

Common Compression Mistakes

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.

Compression Types Compared

All modern browsers support Brotli and gzip; current Chrome, Edge and Firefox also support Zstandard.

Content-EncodingMethodNotes
brBrotliUsually 15–20% smaller than gzip for text
zstdZstandardFast to compress, similar size to Brotli
gzipGzipUniversal fallback, still a big saving
(none)UncompressedFull size, fix this first

Compression and Caching Best Practices

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.

Frequently Asked Questions

How do I check if gzip is enabled?

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.

Is Brotli better than gzip?

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.

Should I compress images?

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.

Does the checker test CSS and JavaScript files?

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.

Do I need to sign in?

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.

Summary

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.

Check Your Page Compression

See whether your page is sent with Brotli, gzip or no compression, plus caching and page weight checks.