Skip to content
Speed and performance · free, no sign-up

Gzip and Brotli Compression Test

Checks if your server compresses a page before sending it.

Why it matters

Compression can shrink HTML, CSS and JavaScript by about 70%. It is usually one setting, costs nothing, and makes pages load faster for everyone.

How to fix it

  • Turn on Brotli or gzip on your server, or in your CDN.
  • Compress text files: HTML, CSS, JavaScript, SVG and JSON.
  • Do not compress JPEG or PNG images again, because they are already compressed.

What a good result looks like

The page is sent compressed with gzip, Brotli or Zstandard, and your CSS and JavaScript are too.

Common mistakes

  • Compressing HTML but not CSS and JavaScript.
  • Compressing images such as JPEG again, which are already compressed and gain almost nothing.

Questions about the Gzip and Brotli Compression Test

Which is better, gzip or Brotli?

Brotli usually makes text files a bit smaller. Most browsers support it, and servers fall back to gzip for those that don't, so it is worth enabling if your host offers it.

Does compression slow the server?

Slightly, but for text files the saved download time is normally far greater. Most CDNs handle it for you.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More speed and performance tools