What Is .tar.gz file

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 11, 2026

Quick Answer: .tar.gz is a compressed archive file format that combines TAR (Tape Archive) with GZIP compression, first standardized in 1988 for TAR with GZIP added in 1992. It is the standard archiving format for Linux and Unix systems, widely used for source code distribution and backup purposes. These files can reduce file size by 50-90% while preserving directory structures and file permissions.

Key Facts

Overview

.tar.gz is a file format that combines two distinct technologies: TAR (Tape Archive) and GZIP compression. TAR packages multiple files and directories into a single archive while preserving directory structures, file permissions, and ownership information. GZIP then compresses this archive to significantly reduce file size.

The TAR format was created in 1988 as a standard archiving utility for Unix and Linux systems, while GZIP compression was developed in 1992 by Jean-loup Gailly as a free software alternative to the proprietary COMPRESS utility. By combining these two technologies, .tar.gz files became the de facto standard for distributing source code, software packages, and large file collections in the Unix and Linux ecosystems. Today, .tar.gz files are ubiquitous in open-source software distribution, with over 95% of Linux distributions using this format for source code packaging.

How It Works

Understanding .tar.gz files requires examining how TAR archiving and GZIP compression work together:

Key Comparisons

FormatCompression RatioCross-PlatformMetadata Preservation
.tar.gz50-90%Unix/Linux native, tools available for Windows/MacPreserves permissions, ownership, links
.zip30-60%Native support on Windows, Mac, LinuxLimited Unix permission support
.7z60-95%Requires additional softwareFull metadata support
.rar50-80%Requires WinRAR or alternativesPreserves most metadata

Why It Matters

.tar.gz files remain essential in the software development and system administration worlds. Their widespread adoption across the open-source community, combined with excellent compression rates and metadata preservation, ensures they will continue as a standard archiving format for decades to come. Learning to work with .tar.gz files is fundamental for anyone working with Linux systems, open-source software, or Unix-based infrastructure.

Sources

  1. Wikipedia - Tar (computing)CC-BY-SA-4.0
  2. Wikipedia - GzipCC-BY-SA-4.0
  3. GNU tar ManualGFDL-1.3

Missing an answer?

Suggest a question and we'll generate an answer for it.