How to know if a site is gzipped?

74

24

I am accessing some web sites which are really really slow, and I would like to know if those sites are gzipped. Is there an easy way to find this out?

Yazz.com

Posted 2011-06-10T08:07:48.723

Reputation: 2 813

Answers

109

If you're using Chrome or Firefox, you can open the developer tools and see it.

  • In Chrome, this is done from the wrench menu: Tools > Developer tools, or alternatively by pressing CtrlShiftI.
  • In Firefox, click the menu button: Developer > Inspector, or alternatively by pressing CtrlShiftC.

Once you have the developer tools open, you can click on the Network tab, and do a refresh on the page. If you then click on the top entry in the list and select Headers on the right side, it'll list all the response headers for the page.

If you find Content-Encoding: gzip in the list, then the page is gzip-compressed.

Here's what it looks like in Chrome:

Screenshot of the Chrome inspector.

Here's what it looks like in Firefox: Screenshot of the Firefox inspector.

Sebastian Paaske Tørholm

Posted 2011-06-10T08:07:48.723

Reputation: 4 479

Presumably the reported size is after gzipping ? – Damon – 2016-04-20T16:24:09.140

@Damon No, the reported size available to browser is the same, the compression is useful for transport layer and the size available to browser is after decompression, so the same size as document. – Priya Ranjan Singh – 2019-05-31T11:34:29.043

14

And here is another gzip checker: gzipWTF

enter image description here

enter image description here

Philip Meissner

Posted 2011-06-10T08:07:48.723

Reputation: 157

Does this actually tell you if the site you're testing is gzipped? From what I can gather, it only shows info on the resource URIs, which may not even come from the target site (eg CDNs). – Dan Atkinson – 2016-04-06T13:18:28.660

3not working in 2019 – Luke – 2019-01-29T07:14:00.303

@DanAtkinson The website seems to be down in 2019. Most likely it will check the Response Header and String match if it says "gzip" instead of you detecting the header manually as the selected answer said through Inspect -> Network. – Mohammed Joraid – 2019-09-09T05:41:58.840

7

If you dont have Chrome installed here are some alternatives:

Sharken

Posted 2011-06-10T08:07:48.723

Reputation: 1 605

2

Another online checker: https://checkgzipcompression.com

I've found that none of my installed browsers was showing Content-Encoding: gzip header while the server was actually sending it. Investigation revealed that it was ESET antivirus software being responsible for intercepting and unpacking all traffic on the PC.

Vadzim

Posted 2011-06-10T08:07:48.723

Reputation: 974