Skip to main content

Gzip File Compressor & Extractor

Compress any file to .gz, or open and extract .gz files back to the original — batch many files at once, pick a compression level, all in your browser with no upload.

Input

Drop files or browse
Up to 50 files · 200.00 MB combined

Gzip Files

Add files and press Compress to .gz — each file becomes its own .gz. Everything runs in your browser; nothing is uploaded.

Was this helpful?

Also available with

Guides

Compress any file into a .gz, or open a .gz file and get the original back. Both directions run entirely in your browser, so your files are never uploaded. You can drop in many files at once: each one is compressed or extracted separately, and you can download them one by one or all together as a .zip.

How to use it

  1. Choose a Mode: Compress files to .gz or Decompress .gz files.
  2. Drop your files into the box, or click to browse. You can add up to 50 files, 200 MB in total.
  3. When compressing, pick a Compression Level. Balanced (level 6) is the same default the gzip command uses. Smallest file (level 9) squeezes a little more out at the cost of speed. Leave Store original filename and date on so gunzip and other tools can restore the exact name later.
  4. Press Compress to .gz or Decompress, then download the results. When compressing, each row shows the before and after size and how much was saved.

What is a .gz file?

A .gz file is a single file compressed with gzip, the DEFLATE-based format used everywhere on Linux and macOS and on the web. It's how log files, database dumps, datasets and web assets are usually shipped. Unlike a .zip, a .gz holds exactly one file. To bundle a whole folder, people first pack it into a .tar and then gzip that, which gives you a .tar.gz or .tgz.

What happens if I decompress a .tar.gz or .tgz?

You get the .tar archive that was inside it, and the tool flags that it's a tar. To list and extract the individual files, use the Tar File Creator, which opens .tar.gz and .tgz directly.

What name does the decompressed file get?

If the original filename was stored in the gzip header (the gzip command stores it by default), you get that name back exactly. If not, the .gz extension is simply removed, so data.csv.gz becomes data.csv.

Why did my file barely shrink?

Files that are already compressed, such as JPG, PNG, MP4, ZIP or PDF, have little redundancy left for gzip to remove. Text, CSV, JSON, logs, SQL dumps and other uncompressed formats usually shrink by 60–90%.

Can it open .gz files made by other tools?

Yes. It reads any standard gzip file, including "multi-member" files made by joining several gzip streams together (for example cat a.gz b.gz > all.gz).

Privacy

All compression and extraction happens locally in your browser with JavaScript. No file is ever sent to a server.

To experiment with gzip, zlib and deflate on pasted text instead of files, use the Gzip/Zlib/Deflate Tester. To compress many files into a single archive, use the Zip File Creator.

gzgunzipopen gz fileextract gzunzip gzcompress filedeflatedecompress

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.