.gz

What is a .gz file?

GZ is gzip-compressed data — often paired with TAR for compressed archives, and used for web asset compression.

Safe format
Type Archive
By Jean-loup Gailly / Mark Adler
MIME application/gzip

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

You downloaded a .tar.gz from a software project or received a compressed file from a Linux server. GZ is gzip compression applied to a single file — it doesn't bundle multiple files on its own, which is why it's almost always paired with TAR. The combination (.tar.gz or .tgz) is the standard archive format for the Unix world.

Gzip uses the DEFLATE algorithm — the same one inside ZIP — but applies it to a single stream rather than an archive of files. It's also how web servers compress HTML, CSS, and JavaScript for faster delivery (check your browser's network tab — most responses arrive gzip-encoded). The format was written by Jean-loup Gailly and Mark Adler in 1992 as a free replacement for the Unix compress utility.

Linux and macOS decompress .gz files natively from the command line (`gunzip file.gz` or `tar -xzf archive.tar.gz`). macOS Finder handles .tar.gz with a double-click. On Windows, 7-Zip (free) opens everything. For web development, you encounter gzip constantly — it's just invisible because your browser handles it automatically.

Technical details
Full Name
Gzip Compressed File
MIME Type
application/gzip
Developer
Jean-loup Gailly / Mark Adler
Magic Bytes
1F 8B
Safety
.gz is a known, safe format.
What opens it
Built-in on macOS/Linux
FREE macOS / Linux
7-Zip
FREE Windows
FAQ
What's the difference between .gz and .zip?
GZ compresses a single file using DEFLATE. ZIP compresses and bundles multiple files in one archive. GZ is usually paired with TAR (.tar.gz) to handle bundling separately. ZIP is more convenient for sharing; .tar.gz is standard in Linux and open-source software.
How do I open a .tar.gz file on Windows?
7-Zip (free) opens .tar.gz files with a double-click. It extracts in two steps — first the gzip layer, then the tar archive — but handles both automatically.
Is gzip the same as ZIP?
No. They use the same compression algorithm (DEFLATE) but have different file formats. ZIP is a complete archive format. Gzip compresses a single stream. They're related but not interchangeable.
Related formats