Skip to content
Jellykit

Gzip Compress and Decompress

Compress files to .gz, or open .gz, .tgz and zlib files, in your browser. Checksums are verified so a damaged file is caught.

  • Runs on your device
Loading tool

About Gzip Compress and Decompress

gzip is the compression behind .gz downloads, .tar.gz and .tgz archives, compressed logs and most web traffic. This tool does what the gzip and gunzip commands do, without a terminal: drop a file to compress it, or drop a .gz file to get the original back.

It also writes and reads zlib streams and raw deflate data, which turn up in network captures, game files and database dumps. When decompressing, the checksum stored in the file is compared with what came out, so a truncated or corrupted download is reported instead of quietly handed back. A .tar.gz comes out as a .tar archive.

How it works

  1. Automatic mode looks at the first bytes of each file: gzip data is decompressed, and anything else is compressed. Choose a direction to override it.
  2. Compression uses the deflate algorithm at the level you choose, wrapped as gzip, zlib or raw deflate. Like the gzip command, the gzip header can carry the original file name and date, or neither.
  3. Decompression reads every member of a multi-part gzip file and checks each CRC-32 and length, or the Adler-32 of a zlib stream. Raw deflate carries no checksum to check.

Questions

Can it open .tar.gz and .tgz files?

It removes the gzip layer and gives you the .tar archive inside. To list or extract the files in that archive, open it with a tar tool.

Why is my compressed file barely smaller?

Photos, videos, music, PDFs and zip files are compressed already, so gzip gains almost nothing on them. Text, logs, CSV, JSON and code usually shrink to a quarter or less.

How large can the files be?

Up to 512 MB in, and up to 1 GB out when decompressing. Everything is held in memory in this browser, so a file that would expand past 1 GB is stopped rather than allowed to exhaust it.

Is a gzip file the same as a zip file?

No. gzip compresses one stream of bytes and has no folders or file list; zip is an archive of many files. That is why folders are first bundled into a tar archive and then gzipped.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.