.tar.gz.tgz.bz2.xz.tbz.tbz2.txz

TAR and GZ files: what they are and how to open them

A TAR.GZ file is a set of files bundled with TAR and then compressed with gzip, common for source code, backups and Linux downloads. Drop one here to see what is inside and extract the files you need.

Drop your TAR.GZ file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is a TAR.GZ file?

A .tar.gz (or .tgz) file is two formats in layers. TAR collects files and folders into one archive and keeps their names, dates and Unix permissions; gzip then compresses that single file. You meet it in source code releases, Linux software, server backups and data sets.

TAR, the tape archiver, appeared in Version 7 Unix in 1979 and is standardized in POSIX as the ustar and pax formats. Jean-loup Gailly and Mark Adler released gzip in 1992; RFC 1952 describes its format. The same TAR can be compressed by other tools instead: .tar.bz2 or .tbz with bzip2, .tar.xz or .txz with xz.

Windows 11 has opened these archives in File Explorer since late 2023, and current Windows 10 and 11 include a tar command. Macs extract them with a double-click. A .gz file without .tar in its name usually holds one compressed file, not a folder.

What is inside

Inside the gzip layer, a TAR archive is a run of 512-byte blocks. Each file gets a 512-byte header with its name, size, owner, permissions and time, written as text and octal numbers, followed by its data padded to a whole block. Two empty blocks end the archive. There is no index, so listing the contents means reading the whole file.

gzip compresses the whole TAR as one Deflate stream. Its 10-byte header starts with 1F 8B and can store the original name and time; an 8-byte trailer holds a CRC-32 checksum and the original size, so a damaged or cut-off file is detected. TAR has no passwords or encryption of its own.

A .tar.gz file: a TAR archive inside one gzip stream.

How to open a TAR.GZ file

Windows

  • File ExplorerBuilt into Windows 11. Opens .tar, .tar.gz, .tgz, .tar.bz2 and .tar.xz since late 2023; version 24H2 also creates TAR archives.
  • 7-ZipFree. Extracts and creates TAR, GZIP, BZIP2 and XZ.
  • Universal File Opener for WindowsOursBrowse and extract, add or remove files and save, or create TAR and TAR.GZ archives from a folder, for free.

Mac

  • Archive UtilityBuilt in. Double-click the file in the Finder to extract it.
  • TerminalBuilt in. tar -xvf name.tar.gz extracts it; tar recognizes the compression by itself.

iPhone and iPad

  • iZipFree with in-app purchases. Extracts TAR, GZIP, TGZ and TBZ archives.

Android

  • ZArchiverFree. Extracts TAR, gzip, bzip2 and XZ, including .tgz and .tbz, and creates TAR and gzip.
  • Universal File OpenerOursBrowse and extract offline, edit entries and save, or create TAR and TAR.GZ archives, for free.

In a browser

  • Universal File OpenerOursDrop the archive on this page to list every file inside and extract the ones you need. Nothing is uploaded.

Won’t open?

Windows 10 has no app for it

File Explorer on Windows 10 does not open TAR. Type tar -xf name.tar.gz in Command Prompt, in the file’s folder, or use 7-Zip, or drop the file on this page.

Extracting gave me a .tar file, not my files

Some tools remove only the gzip layer. Open or extract the .tar file as well to get the folders inside.

A .gz file turned into one file, not a folder

A plain .gz compresses a single file, such as data.csv.gz or a log. Extracting it gives that one file back; there is no folder inside.

Extraction stops with an error near the end

The download is probably incomplete: gzip checks the original size and a CRC-32 checksum at the end of the file. Download it again and compare its size with the one the site lists.

Convert a TAR.GZ file

  • To ZIPExtract the files, then compress the folder with the built-in command: Send to, Compressed (zipped) folder on Windows, or Compress on a Mac.
  • To TAR.GZ, from a folderIn Terminal on a Mac or in Command Prompt on Windows, run tar -czf archive.tar.gz followed by the folder name.

TAR.GZ files in our apps

Browse and extract TAR, TAR.GZ, TAR.BZ2 and TAR.XZ archives offline on Android and Windows. Add or remove files and save, or create TAR and TAR.GZ archives, all free.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for TAR.GZ files
  • Browse and search entries across TAR and its gzip/bzip2/xz wrappers before extracting.
  • Selective extraction to any folder you choose.
  • Entry editing: add, rename, and remove files, with the compressed wrapper re-created on save. TAR and all its recognized compressed wrappers are editable.
  • Create TAR or TAR.GZ free: choose Create ZIP on Home, select the archive format and pick the files.

Limits

  • Special archive entries, including links, devices and sparse files, are preserved where supported or refused.
  • Bare single-file compressors (.gz without a .tar inside) have narrower structure and fewer operations.

Walkthrough: Open and extract archives on Android