File & PDF Tools

GZIP Compress / Decompress

Compress one file as .gz or restore GZIP content.

GZIP compress / decompress
Compress one file or restore a .gz file.
Local processing

GZIP Compress / Decompress

Compress one file as .gz or restore GZIP data. Unlike ZIP, GZIP does not contain a multi-file directory.

Usage

  • Compression levels range from 0 to 9
  • The decompressed name is inferred from the .gz filename
  • The format does not retain the original MIME type

Frequently Asked Questions

What compression ratio does GZIP typically achieve?
Text formats (HTML, CSS, JS, JSON) usually shrink to 20–30% of original size — the more repetition, the better. Already-compressed formats (JPG, PNG, ZIP, MP4) barely shrink and can even grow, which is why CDNs compress only text responses.
GZIP versus ZIP — what is the difference?
GZIP compresses a single stream with no file directory — paired with tar as .tar.gz for archives; ZIP carries its own multi-file structure. Web transfer uses GZIP (HTTP content encoding); file bundles use ZIP or tar.
Is level 9 always better than level 6?
Size gains are usually under 1–2% while time can double. For on-the-fly server compression pick 4–6; for build artifacts (compressed once before release) use 9. The tool lets you compare 0–9 empirically before committing.