How to use GZIP Compressor and Decompressor
- Choose a tab, Compress to .gz or Decompress .gz.
- For compression, pick a level: 1 is fastest, 6 is balanced, 9 gives the smallest file.
- Click Choose a file, or drop a file onto the box. The result is ready straight away.
- Click Download. A file called notes.txt becomes notes.txt.gz, and data.csv.gz becomes data.csv when decompressed.
Features
- Compresses one file to a standard .gz file that other gzip tools can open
- Decompresses .gz files, and turns .tgz into a .tar file
- Three compression levels, with the size shown as a percentage of the original
- Stops decompression at 2 GB to protect your browser from gzip bombs
- Runs in your browser, so the file is never uploaded
Supported formats and limits
- Maximum file size: 2,048 MB
- Up to 1 files at once
Examples
| Input | Result |
|---|---|
| notes.txt (Compress to .gz) | notes.txt.gz, with the original name stored inside the gzip header |
| data.csv.gz (Decompress .gz) | data.csv |
| backup.tgz (Decompress .gz) | backup.tar, which you can open with the TAR extractor |
Limitations
- One file at a time. To compress several files together, put them in a ZIP or a TAR first.
- Up to 2 GB. The whole file is processed in memory, so very large files can fail on devices with little RAM.
- Text, code and logs shrink a lot, but JPG, MP4 and ZIP files are already compressed and may barely change or even grow slightly.
- Decompress only works on gzip (.gz, .tgz) data. Other formats such as bzip2, xz or zip are refused.
Learn more
Gzip is a compression format defined in RFC 1952 and based on the Deflate algorithm, the same one inside ZIP and PNG. A gzip file holds a single compressed stream with a small header that can carry the original file name and modification time, and a checksum at the end that detects damage.
Because gzip compresses only one stream, folders and multiple files are usually bundled first with TAR, and the result is saved as .tar.gz or .tgz. Web servers use the same algorithm to send pages and scripts in compressed form, which is why gzip is one of the most widely used compression formats on the internet.
How much a file shrinks depends on its content. Text, JSON, CSV, logs and source code often drop to a fraction of their size. Files that are already compressed, such as JPG photos, MP4 video or ZIP archives, have little redundancy left. A decompression limit protects your browser from a gzip bomb, a tiny file that expands to an enormous size.
Frequently asked questions
What is a .gz file?
It is a single file compressed with the gzip algorithm. On Linux and macOS you can open it with gunzip, and many tools read it.
What is the difference between gzip and ZIP?
Gzip compresses one file and does not store folders. ZIP bundles many files and their paths into one archive.
Why did my file barely shrink?
It was probably already compressed, as JPG, MP4, MP3 and ZIP files are. Gzip works best on text, code, logs and other uncompressed data.
Is the file uploaded anywhere?
No. Compression and decompression run entirely in your browser.
Sources
Last reviewed: September 30, 2026