Website performance
Gzip and Brotli website compression
Gzip and Brotli make text files smaller before your browser downloads them. Try the same sample in three formats. Then learn how to check a real website.
File size lab
What happens when a page loads
The server or CDN responds
The file is decoded
How to compare hosting results
- Deploy identical HTML, CSS, and JavaScript files on each named plan.
- Request the same file without compression and with Gzip and Brotli accepted. Record the encoding actually sent and the bytes in each response body.
- Record the test date, request location, cache settings, and whether a CDN served the response.
How to read the results
Check the delivery path
What do Gzip and Brotli do?
Make text files smaller
Gzip and Brotli shrink text files for the trip to your browser. These include page text, styles and scripts. The browser reads the original data after it arrives. Pictures and videos may already be compressed and need different tools.
Check a real page
Your browser’s developer tools show how a file was sent. Look for Content-Encoding, a label that names the compression used. It may show gzip or br, which means Brotli. Check the download size too.
Understand caching too
Compression makes a file smaller to send. Caching keeps a copy so it can be used again. They can work together. This is why a repeat visit can behave differently from a first visit.
What should you ask your host?
Ask whether the host, your website software or a CDN controls compression. A CDN can deliver files from places nearer to visitors. Find out which settings you can change and when you need support.
To compare results, use the same file and similar test conditions. Record the download size and compression used. A smaller file alone does not tell you how fast the whole page will load.
Large pictures, extra scripts and website code can also affect loading time. Compare backups and support too. Read our research method to understand the limits of outside test results.
Compare hosting plans and features or explore individual provider reviews.