What is GZ?
When you run `gzip file.txt`, gzip replaces file.txt with file.txt.gz — a compressed version of the same file. To recover the original, run `gunzip file.txt.gz`. Unlike ZIP, gzip does not bundle multiple files — it compresses exactly one file. For compressing multiple files together, gzip is paired with TAR: `tar -czf archive.tar.gz folder/`. Gzip achieves good compression ratios quickly and uses very little memory, making it ideal for server-side compression, log files, and data pipelines.
GZ pros and cons
Advantages
- Extremely fast compression and decompression
- Very low memory usage — suitable for embedded systems and streaming
- Universal support on Linux, macOS, and modern Windows
- HTTP/1.1 and HTTP/2 standard for web content-encoding (gzip saves 60–80% on text)
- Mature, battle-tested format with no patent issues
Limitations
- Compresses only one file at a time (pair with TAR for directories)
- Worse compression ratio than bzip2, xz, zstd, or Brotli for the same data
- Not suitable as a standalone archive format (no file listing, no metadata)
- No built-in integrity verification beyond a CRC32 checksum
- Replaced by zstd and Brotli in many modern use cases
When should you convert GZ files?
Use gzip (.gz) for compressing log files, individual data files in pipelines, and in combination with TAR (.tar.gz) for software distribution and backups. Consider switching to zstd for faster compression with better ratios, or Brotli for web content where browser support exists. Decompress .gz files with `gunzip` or `gzip -d`; most archive managers also handle .gz directly.
All FormatDrop conversions run entirely in your browser — no file upload, no server processing. Your files stay on your device.
GZ FAQ
How do I compress and decompress .gz files?
How does gzip work with web servers?
Is gzip the same as ZIP?
More formats