Gzip Compress & Extract

Compress a file to .gz or extract a .gz, with deflate and zlib modes
  • Files never leave your device
  • Runs in your browser
  • Free, no sign-up, no watermark

Drop files to compress, or .gz files to extract

Any file and size. Several files at once are fine.

How to use Gzip Compress & Extract

Compress files to gzip, zlib or raw deflate, or extract .gz files, in a background worker on your device. Choose a level from 1 to 9, decide whether to store the original file name, and process several files in one run.

  1. 1

    Drop the files on the page. If they are already compressed, such as .gz files, the tool switches to Decompress for you.

  2. 2

    Choose Compress or Decompress at the top.

  3. 3

    To compress, pick a Format (gzip, zlib or Raw deflate), the Compression level and whether to Store file name and date; to decompress, leave Format on Auto.

  4. 4

    Click Compress or Decompress, then download each result or click Download all (ZIP).

Frequently asked questions

Are my files uploaded?

No. Everything runs in a background worker in your browser, and files never leave your device.

Can it unpack .tar.gz files?

It extracts the .tar file inside. This tool does not unpack TAR archives, so open the .tar with your system's archive utility or 7-Zip.

Can I put several files into one .gz?

No. gzip compresses one file at a time, so each file becomes its own .gz. To bundle files together, use Create ZIP.

Which compression level should I use?

Level 6 is the standard default and uses the browser's built-in compressor, which is the fastest. Level 9 gives the smallest file but takes longer.

What is the difference between gzip, zlib and raw deflate?

gzip (.gz) is what gunzip, HTTP Content-Encoding and .tar.gz use. zlib (RFC 1950) is the wrapper used inside PNG and PDF. Raw deflate (RFC 1951) is bare compressed data with no header or checksum.

Why do I get “Not gzip or zlib data”?

The file has no gzip or zlib header. If it is raw DEFLATE data, choose Raw deflate as the format and try again.