FILE FORMAT GUIDE
TAR File: Browse Entries Before Extracting
A TAR groups files and directory information into an archive. Browse its entries before extraction. Names such as .tar.gz and .tar.xz add a separate compression layer.
Quick facts
- Extension
- .tar
- Format
- TAR Archive
- Category
- archive
- MIME type
- Unknown
- Standard / developer
- Unix / POSIX archive implementations
- Open with
- 7-Zip
What is TAR?
TAR variants include ustar, GNU and pax. Readers must support the variant and any outer compression. Listing and extracting are different operations.
How to open TAR
Start from the entry list. Outer compression and TAR archive compatibility are separate requirements.
7-ZipWindows
Open the TAR in 7-Zip, review entries and extract needed files to a separate destination.
Common uses and compatibility
- Package files and directories for distribution or backup.
- Browse supported TAR archives with a desktop archive reader.
Things to check
- Extracting an unfamiliar archive can overwrite paths or consume resources; review entries and use an appropriate destination.
Advanced inspection
These developer and command-line workflows inspect structure or metadata. They are not the default way most people open the file.
Python tarfileCommand line; Python required
Use python -m tarfile -l "example.tar" to list entries without extracting them.
Technical details
- Signature
- Unknown
- Encoding
- Unknown
- Container
- Sequential TAR archive entries; supported variants include ustar, GNU and pax
- Compression
- TAR may be wrapped by gzip, bzip2 or xz compression; these are separate archive layers
Public specification: unknown.
Open and browse a TAR on Windows
7-Zip supports TAR. Open it in the file manager and review entries before extracting the needed files.
Sources: 7-Zip supported archive formats
List entries without extracting them
Python provides a tarfile command-line listing mode. This prints archive members without writing them out.
List the archive
python -m tarfile -l "example.tar"Sources: tarfile: archive formats, listing and extraction — Python
What do .tar.gz and .tar.xz mean?
The TAR layer stores the archive entries, while GZIP or XZ handles compression. Use a reader that supports both layers. In a layered archive workflow, reaching the TAR is not the same as finishing extraction.
Sources: tarfile: archive formats, listing and extraction — Python · 7-Zip supported archive formats
Related formats
- GZIP Compressed File
GZIP can compress the TAR byte stream; .tar.gz describes two format layers.
- XZ Compressed Stream
XZ can compress a TAR archive; decompressing the outer layer leaves a TAR to inspect.
- ZIP Archive
ZIP packages entries differently and is not created by renaming a TAR archive.
Sources & review
Sources reviewed 2026-11-15.