THE FILE FIELD GUIDE
.tar

TAR Archive

Archives

TAR bundles files/directories. Archiving is distinct from compression: .tar.gz is a TAR archive compressed with gzip.

What it is used for
Bundling a file hierarchy
What the file contains
Binary data
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

Windows: inspect with 7-Zip

Inspect the listing before extracting.

  1. Open a copy in 7-Zip File Manager.
  2. Inspect directory structure, repeated names and unpacked size.
  3. Extract to an empty work folder and inspect output names/sizes and the retained source.
Mac / Linux: compatible command-line tool

Use these commands only where the relevant tool is installed.

  1. Inspect the listing with tar -tf "archive.tar" and review names and the destination.
  2. Create an empty folder and use a compatible tar with an explicit destination, for example tar -xf "archive.tar" -C "output".
  3. Inspect permissions, links and structure; retain the source when investigating errors.
After extraction: open the result

Choose the next step from the resulting format.

  1. Compare the extracted structure with the listing, whether one directory or many files result.
  2. Load resulting CSV, SQL, images or other data with the appropriate application.
  3. Retain the archive; successful extraction is not a reason to run an embedded executable.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • A gzip error can mean a compressed option was applied to plain TAR, or the suffix misidentifies the data.
  • Permission/symlink handling varies by OS/tool. Inspect in a dedicated directory rather than forcing administrative extraction.
  • Possible overwrite: extract to a new work folder instead of an existing directory.
  • Permissions differ across systems: inspect stored metadata and extraction behavior.
  • TAR does not reduce size: it bundles files; compression is a separate stage.

TAR → tar.gz

  1. Keep the TAR and compress a copy; for example, gzip -c archive.tar > archive.tar.gz creates a separate output.
  2. Check the compressed archive listing with tar -tzf archive.tar.gz.
  3. Inspect resulting folders, file counts and sizes. When repacking, verify the new listing and a test extraction.

Compression depends on content. Verify the recipient’s handling of TAR attributes and links.

Choose the destination before extraction

An archive can place many files directly in the destination; inspect its listing first.

An empty work directory makes mixing and overwrite risks easier to control.

Source for these steps:GNU Project · GNU tar: How to List Archives / GNU Project · GNU tar: How to Extract Members from an Archive

Permissions, links and backups

TAR can include links and permissions whose restoration varies by OS and tool.

After repacking, check required paths, names and permissions and retain the original TAR.

Source for these steps:GNU Project · GNU tar: How to List Archives / GNU Project · GNU tar: How to Extract Members from an Archive

Related-format differences

Related-format differences
FormatMain roleSelection notes
TARBundle multiple filesNot itself compression
TAR.GZ / TAR.XZCompress a TARTwo-layer structure
ZIPBundling and compressionCheck metadata handling

Handling and security

Inspect archive paths and avoid extracting directly over important directories. Assess execution separately.

Questions and answers

Is TAR compressed?

Ordinary TAR is an archive, commonly compressed separately with gzip or another compressor.

Is .tar.gz two files?

It is one gzip-compressed TAR; the suffix reflects the two stages.

Can Windows extract TAR?

Compatible OS versions/tools can extract it; metadata fidelity still needs checking.

How does TAR differ from TAR.GZ?

TAR bundles files; TAR.GZ applies Gzip compression to the bundle.

Does a readable listing prove no damage?

No. Verify extraction of required data and any publisher integrity information.

Format facts: name, steward and MIME type
Formal name
Tape archive
Steward / specification
POSIX archive conventions / GNU and other implementations
MIME type
application/x-tar (commonly used)

Primary and official sources

  • Project documentationGNU tar manual

    Documents TAR listing/extraction and gzip integration.

    GNU · Link checked:
  • Project documentationGNU Gzip manual

    Documents gzip testing/extraction and its role alongside TAR.

    GNU · Link checked:
  • Project documentationGNU tar: How to List Archives

    Inspecting archive names and structure before extraction.

    GNU Project · Link checked:
  • Project documentationGNU tar: How to Extract Members from an Archive

    TAR extraction and effects on existing files.

    GNU Project · Link checked: