.tgz

What is a .tgz file?

TGZ is a .tar.gz archive in a single extension — the standard compressed archive format on Unix and Linux.

Use caution
Type Archive
By Unix community
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

A .tgz file is a .tar.gz by another name — a TAR archive (bundling files and directories with permissions preserved) compressed with gzip. The single extension exists because some systems (notably older Windows) couldn't handle double extensions. On Unix/Linux, .tgz and .tar.gz are treated identically.

This is the default distribution format for source code releases on Unix/Linux. Download a project's source, `tar xzf project.tgz`, and you have the source tree with all permissions intact. The 'x' extracts, 'z' decompresses gzip, and 'f' specifies the file. It's been the standard since before most developers were born.

Every Unix/Linux system handles .tgz natively. macOS Archive Utility extracts them with a double-click. On Windows, 7-Zip and WinRAR open .tgz files. For better compression at the cost of speed, .tar.xz (xz compression) is increasingly used for large source distributions.

Technical details
Full Name
Gzipped Tar Archive
MIME Type
application/gzip
Developer
Unix community
Magic Bytes
1F 8B
Safety
.tgz requires caution. Archive that may contain any files. Extract and inspect contents before running anything.
What opens it
tar (CLI)
FREE Mac / Linux
7-Zip
FREE Windows
macOS Archive Utility
FREE Mac
FAQ
Is .tgz the same as .tar.gz?
Yes. Identical format, just a different extension convention. .tgz exists because some old systems couldn't handle double extensions. Modern tools treat them identically.
How do I extract a .tgz file?
Linux/Mac: `tar xzf archive.tgz`. Windows: use 7-Zip or WinRAR. macOS also extracts with double-click via Archive Utility.
Related formats