How to Open TAR.GZ Files

TAR.GZ files are common in software, server, and developer contexts, but non-developers can still open them safely.

Updated for 2026. This guide favors built-in tools and reputable free utilities before paid or obscure software.

Understand the two layers

A TAR.GZ file is usually a tar archive compressed with gzip. That means extraction can happen in two stages: decompress the .gz layer, then unpack the .tar archive. Modern tools often do both automatically.

These files are common for Linux software and source packages. If you are not expecting software files, inspect the contents carefully.

Best tools by device

Windows users can often use 7-Zip. Mac users may be able to double-click, use Archive Utility, or use a dedicated extractor. Developers may prefer the command line, but regular users do not need terminal commands just to inspect files.

Extract into a new folder with a simple name. TAR archives can preserve folder structures, so you do not want them unpacking across a cluttered Downloads directory.

When not to run anything

A TAR.GZ may contain scripts, source code, install files, or binaries. Opening the archive is different from running what is inside. If you do not recognize the source, do not execute scripts or commands from the extracted folder.