← Free tools

Compress or decompress GZIP files

Create a .gz file from a CSV, JSON, SQL export, log or any single file. To recover the original bytes from a GZIP file, switch to decompress.

No sign-up. Files and text stay in your browser.

Drop a file to compress

One file · up to 100 MiB

GZIP settings

GZIP compresses one file and preserves every byte.

How to compress or open a GZIP file

  1. Choose Compress a file to .gz or Decompress a GZIP file.
  2. Select one file up to 100 MiB and run the tool. Decompressed output is limited to 150 MiB.
  3. Download the .gz file or the extracted original.

When to use GZIP

GZIP compresses a single byte stream and is commonly used for logs, CSV exports and other text files. A .tar.gz file contains a TAR archive compressed with GZIP. Opening it here returns the .tar file. If you need to combine several separate files in one archive, use the ZIP File Compressor.

Continue with a related task

Questions

What is the difference between ZIP and GZIP?

ZIP bundles multiple files into an archive. GZIP compresses one stream, which can also be a single TAR archive containing several files.

Can I decompress a .tar.gz or .tgz file?

Yes. The tool removes the GZIP compression and returns the .tar archive. You can then open that archive with a TAR-compatible tool.

Does GZIP change the contents of CSV or JSON files?

No. GZIP is lossless compression. A successful compress and decompress round trip restores the original bytes.

Why is my GZIP file not opening?

Check that the file is a complete, valid GZIP stream. The browser also stops if the decompressed output would exceed 150 MiB.