Archive formatsince 1979

.tarTape Archive

A Unix archive format for bundling files, often paired with gzip, bzip2, or xz compression.

Extensions
.tar, .tar.gz, .tgz, .tar.bz2, .tar.xz
MIME
application/x-tar, application/gzip, application/x-gtar
Standard
POSIX tar / pax archive family
Released
1979

About this format

TAR bundles files and directories into one stream. Compression is usually added separately, which is why .tar.gz and .tar.xz are common.

Use TAR for source releases, server backups, and Unix-friendly archives. Use ZIP when recipients are mostly non-technical desktop users.

Real-world samples & file sizes

TAR samples should be judged in the sizes people actually receive, upload, or export. These reference cards show the common shapes and settings to check before choosing a conversion target.

project/
assets/
cover.jpg
chapter-01.txt
metadata.json
folder10 files

project backup

Checks nested paths, filenames, and extraction behavior.

project/
assets/
cover.jpg
chapter-01.txt
metadata.json
media500 MB

large bundle

Shows why compression method and split archives matter.

project/
assets/
cover.jpg
chapter-01.txt
metadata.json
textmany small files

source archive

Metadata and permissions are often more important than compression.

project/
assets/
cover.jpg
chapter-01.txt
metadata.json
portablesingle file

email attachment

Checks whether recipients can open it without extra tools.

Reference dimensions are platform-style targets. Compatibility and format facts are verified from the linked online sources below.

Pros

  • +Preserves Unix paths and metadata
  • +Excellent for source and server archives
  • +Streams well

Cons

  • Plain .tar is not compressed
  • Less familiar to casual users than ZIP
  • Windows users may need tools for some variants

TAR vs other formats

vsSizeQualityNote
ZIPDepends on compressionBoth archive filesZIP is simpler for casual cross-platform sharing.
7Z7Z often compresses smallerBoth preserve filesTAR is more Unix-native and stream-friendly.

Where it works

Operating systems
  • Unix/Linux native
  • macOS native
  • Windows 10/11 supports many archive operations
Browsers
  • Browsers download archives; extraction needs app logic
Apps
  • tar
  • bsdtar
  • 7-Zip
  • The Unarchiver
  • WinRAR

Frequently asked questions

Is TAR compressed?
Plain .tar is only a bundle. Compression is added by gzip, bzip2, xz, or another compressor.
Why use TAR for source code?
It preserves Unix-style directory trees and streams well in build and server workflows.

Sources

Other archive formats