How can I estimate the size of my gzipped script?

Christophe picture Christophe · Feb 27, 2012 · Viewed 44.5k times · Source

How can I estimate the size of my JavaScript file after it is gzipped? Are there online tools for this? Or is it similar to using winzip for example?

Answer

gnarf picture gnarf · Feb 27, 2012

If you're on unix - gzip -c filename.min.js | wc -c will give you a byte count of the gzipped file