Skip to content

Free tool

Gzip, Brotli and HTTP/2/3 test

Check whether a page is served with Brotli or gzip compression, how many bytes it saves, and whether the server supports HTTP/2 and advertises HTTP/3.

Try

Why compression matters

HTML, CSS, JavaScript and JSON compress very well, typically to 15-30% of their size. Compression is one of the cheapest speed wins there is: fewer bytes means faster downloads on slow mobile networks, which shows up directly in LCP. Brotli usually beats gzip by 15-20% on text, and every modern browser supports it over HTTPS. Images, video and fonts in WOFF2 are already compressed and should not be compressed again.

HTTP/2 and HTTP/3

HTTP/2 sends many requests over one connection, which removes the old six-connections-per-host limit; servers announce it during the TLS handshake (ALPN). HTTP/3 runs over QUIC on UDP and recovers better from lost packets on mobile networks; servers advertise it with an Alt-Svc header and browsers switch on later requests. Most CDNs enable both with one setting.

Fixing a "not compressed" result

Turn compression on in one place only: the CDN, or the web server (nginx gzip on; plus the Brotli module, Apache mod_deflate / mod_brotli). Compress text types, send Vary: Accept-Encoding so caches keep the variants apart, and never compress twice, which causes ERR_CONTENT_DECODING_FAILED. The step-by-step is in enable Brotli compression.

How this test works

The checker downloads the page twice from our server: once asking for Brotli, gzip or deflate, as a browser does, and once asking for no compression. Comparing the two sizes shows how many bytes compression saves on the HTML itself. It also opens a TLS connection to see whether the server negotiates HTTP/2 (ALPN) and reads the Alt-Svc header for HTTP/3. Scripts, styles and images load separately; to see the full page weight and how fast the main content appears in a real browser, run the LCP test, and for the server’s first byte use the response time checker.

Frequently asked questions

Brotli or gzip?

Brotli where supported (all modern browsers over HTTPS), with gzip as the fallback.

Should I compress images?

No, image formats are already compressed; optimise them instead.

Why is HTTP/3 "advertised" but my browser uses HTTP/2?

Browsers switch to HTTP/3 on later requests, and networks that block UDP stay on HTTP/2.

How do I enable HTTP/2?

Serve HTTPS with a modern server or CDN; most enable HTTP/2 by default.

More free tools

All tools