Compress text or files to GZIP (.gz) with a compression level from 0 to 9, or decompress .gz files back to the original data, right in your browser. Shows the compressed size as a percentage of the original, and keeps binary files intact for download.
GZIP is a compression format based on the DEFLATE algorithm (LZ77 plus Huffman coding). It is the format behind .gz files and the Content-Encoding: gzip used by web servers, and it works especially well on text such as HTML, JSON, CSV and logs. A GZIP file starts with the bytes 1f 8b and ends with a CRC-32 checksum of the original data.
This tool compresses data to GZIP and decompresses GZIP data, without installing anything.
.gz..gz file onto Compressed data..gz extension is removed from the file name..gz files1f 8b) and shows a clear error for data that is not GZIP| Level | Result |
|---|---|
| 0 | Stored without compression (slightly larger than the original because of the header) |
| 1 to 3 | Fast, larger output |
| 6 | Default; a good balance, the same default as the gzip command |
| 9 | Smallest output, slowest |
Text often shrinks to 20 to 40% of its size. Already-compressed files such as JPEG, PNG, MP4 or ZIP barely shrink at all.
No. Compression and decompression run in your browser with the fflate library. The data is kept only in this browser so it is still there when you come back.
Decompressing a .tar.gz (.tgz) gives you the .tar archive; the tool does not list or extract the files inside it. ZIP is a different format; use the ZIP Editor for that.
Decompress only accepts real GZIP data that starts with the bytes 1f 8b. Pasting Base64 text or raw DEFLATE / zlib data will not work; decode Base64 first with the Base64 Converter and download it as a file.
No. GZIP compresses a single stream of data. To bundle multiple files, create a ZIP or tar archive first.