GZIP Compress & Extract
Compress any single file to GZIP (.gz) with your choice of level, or decompress a .gz file back to the original, with its stored file name restored. Ideal for logs, datasets and web assets.
GZIP Compress & Extract
Compress one file to .gz, or decompress a .gz back to the original.
Drop a file to compress, or a .gz to extract
One file at a time; for folders use Create ZIP or ZIP to TAR
Files stay on your device. Nothing is uploaded.
How to use GZIP Compress & Extract
- 1
Choose a mode
Compress a file to
.gz, or decompress a.gzfile back to the original. - 2
Add your file
Drop a single file, or choose it with the file picker.
- 3
Set the level
When compressing, pick a level from 1 (fastest) to 9 (smallest). Decompressing needs no settings.
- 4
Download
Get
name.ext.gz, or the decompressed file under its original name, created in a background worker on your device.
Why use Aback ZIP's GZIP Compress & Extract?
Both directions
Compress any single file to GZIP, or decompress a .gz you received. A .tgz decompresses to the .tar inside.
Original names kept
When compressing, the file's name is stored in the GZIP header. When decompressing, the stored name is restored, or the name without .gz is used.
Choose your level
Levels 1 to 9 trade speed for size. Level 6 is the usual default and the one the gzip command uses; 9 squeezes out a little more.
Processed locally
Compression and decompression run in your browser. Files are not uploaded, and no account is needed.
Common use cases
Read rotated server logs
Open access.log.2.gz from a web server on a Windows laptop without installing anything, then read it in any text editor.
Data files and SQL dumps
Decompress data.csv.gz or backup.sql.gz to open in a spreadsheet or database tool, or compress a large CSV before sharing it.
Precompressed web assets
Create .gz versions of JavaScript, CSS or SVG files at level 9 for servers that serve precompressed files, such as nginx with gzip_static.
Compressed sitemaps and feeds
Search engines accept sitemap.xml.gz. Compress a large sitemap or data feed to cut its transfer size.
Unwrap a .tgz
Decompress a .tgz to its .tar, then open that with Extract ZIP or convert it with TAR to ZIP.
Shrink one big text file
A 200 MB log or CSV often compresses to a fraction of its size, small enough to attach or upload.
About GZIP Compress & Extract
GZIP vs ZIP
| GZIP (.gz) | ZIP (.zip) | |
|---|---|---|
| Holds | Exactly one file | Many files and folders |
| Most common on | Linux, servers and the web | Windows, macOS and everyday file sharing |
| Typical uses | Logs, datasets, web assets, wrapping a .tar | Sending and storing groups of files |
To compress a folder, GZIP needs help: on Unix systems it is first bundled into a TAR, giving .tar.gz. Use ZIP to TAR to produce a .tar.gz from a ZIP, or Create ZIP to zip a folder directly.
File names and levels
A GZIP header can carry the original file name. This tool stores it when compressing and uses it when decompressing, so report.csv comes back as report.csv even if the .gz was renamed. If no name is stored, the .gz extension is simply removed, and .tgz becomes .tar.
Higher levels search harder for repetition. On text and data, level 9 is usually only a few percent smaller than level 6 and takes longer; level 1 is fastest when size matters less.
What is kept and what changes
| Item | Result | Notes |
|---|---|---|
| File contents | Preserved | Lossless; decompressing gives back the exact original. |
| Original file name | Preserved | Stored in the GZIP header and restored on decompression. |
| Compression | Changed | Added or removed, depending on the mode. |
Limitations
- GZIP holds a single file. For folders or several files, use Create ZIP or ZIP to TAR.
- This tool compresses to GZIP only. To decompress
.bz2,.xz,.zstor.lzmafiles, use the XZ, BZ2 & ZST Extractor. - Already-compressed files such as JPEG, MP4 or ZIP barely shrink when gzipped.
- Processing happens in browser memory. There is no fixed size limit, but files that expand to several gigabytes may fail on phones and low-memory devices.
Processing happens locally in your browser. Your files are not uploaded, and closing the tab discards everything.
Related tools
GZIP Compress & Extract: frequently asked questions
No. GZIP compression and decompression run in a Web Worker in your browser, and the result is created on your device. Nothing is sent to a server and no account is needed.
Choose decompress, drop the .gz file here, and download the result. You get the original file, such as a .log, .csv or .sql, which opens in the usual app. Windows 10 and later can also run tar -xzf for .tar.gz files.
Not directly; GZIP compresses one file at a time. Zip the folder with Create ZIP, or create a .tar.gz by zipping it and converting with ZIP to TAR.
.gz is any single gzip-compressed file. .tar.gz and .tgz are the same thing: a TAR archive (which can hold many files and folders) compressed with gzip. Decompressing a .tgz here gives you the .tar; Extract TAR can open .tar.gz files directly.
Level 6 is a good default and matches the standard gzip command. Use 9 for files you compress once and serve many times, like web assets, and 1 when speed matters more than size.
The file was probably already compressed. Images, video, audio, PDFs, Office documents and archives don't shrink much with gzip. Text, logs, CSV, JSON, SQL and source code compress well.
Yes, with the XZ, BZ2 & ZST Extractor, which decompresses bzip2, xz, Zstandard and LZMA files in your browser. Compressed TARs such as .tar.xz open directly in Extract TAR.