.TAR

Файл TAR

Tape Archive
Задать вопрос
БЫСТРЫЙ ОТВЕТ

A TAR file (also called a tarball) bundles files and folders into one archive but does not compress them. That is why you almost always see it as .tar.gz or .tgz, with gzip added on top. On Linux and macOS run tar -xf file.tar; on Windows 10/11 the same command works in a terminal, or use the free 7-Zip or PeaZip.

Разработчик: AT&T Bell Labs (Unix); POSIX (ustar/pax standards), GNU tar (GNU Project) Категория: Сжатые файлы Открыть стандартное MIME: application/x-tar
ОТКРЫВАЕТСЯ НА Windows macOS Linux Android
Связанные: .RAR · .ZIP · .Z01 · .7Z

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Jul 1, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла TAR?

.tar is a file extension for the standard Unix Tape Archive format, also called a "tarball." TAR files are supported on virtually all modern operating systems. TAR itself does not compress - it bundles multiple files and directories into a single archive while preserving Unix file permissions, ownership, symbolic links and timestamps, which is the main reason it remains the preferred container on Linux and Unix systems.

TAR archives are commonly paired with a compression layer. The most popular combination uses gzip, producing .tar.gz files (often written as file_name.tar.gz or abbreviated as .tgz). Other common layered variants include .tar.bz2 and .tar.xz. Most modern archiving tools automatically handle decompression and extraction together.

The format originated in 1979 as part of Version 7 Unix and has since been standardized through POSIX as the ustar (1988) and pax (2001) formats. Internally, a .tar file is a sequence of 512-byte blocks: each member begins with a header block containing the file name, permissions, size and checksum, followed by the file data padded to a 512-byte boundary. Two zero-filled blocks mark the end of the archive. Because it adds no compression overhead, TAR packs and unpacks quickly, and most archive-scanning tools handle .tar files without difficulty.

Безопасность и защита

РИСК: LOW

The TAR format is open and a .tar can't execute on its own. Standard archive caution applies: a tarball from an untrusted source may contain scripts or executables revealed only after extraction, so scan contents before running anything. Two tar-specific notes: a malicious tar can contain '../' or absolute paths (the classic "tar slip" / path-traversal attack that writes files outside the target folder) - extract untrusted tarballs into an empty directory and use a modern extractor that strips leading slashes; and a compressed .tar.gz can be a "decompression bomb" that expands to enormous size, so be wary of suspiciously tiny archives.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕTape Archiveтакже известен как Tarball, Unix tar archive
РАЗРАБОТЧИКAT&T Bell Labs (Unix); POSIX (ustar/pax standards), GNU tar (GNU Project)с 1979 (Version 7 Unix); standardized as POSIX ustar (1988) and pax (2001)
КАТЕГОРИЯСжатые файлы
MIME-ТИПapplication/x-tar
ТИПUncompressed file archive (sequential blocks of 512 bytes)
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.rar.zip.z01.7z
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
101102103104105
HEX
7573746172
ASCII
ustar
A TAR file has NO file-level magic at offset 0; the archive starts directly with the first member's 512-byte header, whose first 100 bytes are the file name. The "ustar" magic sits at offset 257 (followed by "\0" + version "00" in POSIX ustar, or " \0" in old GNU tar). Very old pre-POSIX "v7" tar archives have no magic at all and are identified heuristically by the header checksum.

Программы, открывающие файлы TAR

Windows4 apps
WinRAR Платно Double-click to open and Extract; handles .tar and .tar.gz. (7-Zip/PeaZip are the free choices.)
7-Zip Открытый код Right-click the .tar > 7-Zip > Extract Here. For .tar.gz, extract twice (gz layer then the tar) or use Extract Here again. Free; also creates .tar.
PeaZip Открытый код Open the .tar / .tar.gz and Extract; unwraps both the compression and tar layers in one step.
tar (built into Windows 10/11) Встроенная Open a terminal and run tar -xf file.tar (or tar -xzf file.tar.gz). bsdtar has shipped in Windows since build 17063 (2018).
macOS3 apps
The Unarchiver Бесплатно Set as default and double-click to extract .tar/.tar.gz/.tar.bz2. Free on the Mac App Store.
Archive Utility (built-in) Встроенная Double-click the .tar or .tar.gz in Finder - macOS extracts it automatically.
Keka Бесплатно Drag the .tar onto Keka to extract; Keka also CREATES .tar and .tar.gz with options.
Linux2 apps
tar (GNU/bsdtar, CLI) Открытый код tar -xf file.tar to extract, tar -xzf file.tar.gz for a gzip tarball, tar -cf out.tar dir/ to create. Pre-installed on every Linux/Unix system.
Ark / File Roller / Xarchiver Открытый код Default KDE/GNOME/XFCE archive managers - open the .tar/.tar.gz and Extract from the GUI.
Android1 app
ZArchiver Бесплатно Tap the .tar / .tar.gz and Extract; handles the tar and compression layers. Also creates .tar.

Технические подробности

глубокая спецификация
MIME typeapplication/x-tar (also application/x-gtar)
File structureSequential 512-byte blocks; each member has a 512-byte header followed by file data padded to a 512-byte boundary
Format variantsv7 (1979, original), POSIX ustar (1988), GNU tar, POSIX pax (2001) - differ in long-name, large-file and timestamp handling
CompressionNone - .tar is uncompressed; compression added by an outer layer (.tar.gz, .tar.bz2, .tar.xz, .tar.zst)
Magic bytesASCII string "ustar" at byte offset 257 in the 512-byte header; absent in pre-POSIX v7 archives, which are identified by header checksum heuristics
Header checksumPer-member 8-byte ASCII octal checksum covering the 512-byte header block; no whole-archive checksum or signature
Numeric field encodingASCII octal strings (not binary integers); pax and GNU tar use base-256 encoding for values that exceed the octal range
End-of-archive markerTwo consecutive 512-byte zero-filled (null) blocks at the end of the archive
Filename length100 bytes in v7; 255 bytes with the ustar prefix field; unlimited via pax extended headers or GNU long-name records
Per-file size limitUp to ~8 GB with standard ASCII octal encoding; effectively unlimited with pax format or GNU base-256 encoding
Metadata preservedUnix permissions (mode bits), UID/GID ownership, modification timestamps, symbolic links, hard links, device and special files
EncryptionNone built-in; encryption applied by an outer wrapper such as gpg
Common layered extensions.tar.gz / .tgz, .tar.bz2 / .tbz2, .tar.xz / .txz, .tar.zst
Platform supportNative on Linux, Unix, BSD and macOS; available on Windows 10 and 11 via built-in tar.exe and third-party tools such as 7-Zip
Выпущен1979 (Version 7 Unix); standardized as POSIX ustar (1988) and pax (2001)
Последняя версияPOSIX.1-2001 pax format; GNU tar and bsdtar (libarchive) extensions in active use
Открыть стандартноеДа · без роялти
Спецификацияpubs.opengroup.org

Конвертации TAR

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами TAR. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах TAR.

Часто задаваемые вопросы

How do I open a TAR file?
On Linux/macOS run tar -xf file.tar (or just double-click on macOS). On Windows, use the built-in tar -xf file.tar, or the free 7-Zip/PeaZip (right-click > Extract). For a .tar.gz use tar -xzf file.tar.gz.
What's the difference between .tar and .tar.gz?
A .tar only bundles files without compressing them. A .tar.gz (or .tgz) is a .tar that has then been compressed with gzip - that's why nearly all Linux/source downloads are .tar.gz and are smaller.
How do I open a TAR file on Windows?
Windows 10/11 include a tar command - run tar -xf file.tar in a terminal. For a GUI, install the free 7-Zip or PeaZip and right-click > Extract. For .tar.gz you may extract twice (gz then tar).
Does TAR compress files?
No. tar only concatenates files into one archive and preserves Unix permissions. Compression is a separate layer - that's the gzip/bzip2/xz in .tar.gz / .tar.bz2 / .tar.xz.
Why does my .tar.gz need extracting twice?
Because there are two layers: gzip wraps the tar. Some tools extract both at once (tar -xzf, PeaZip, Keka); others remove the gzip layer first (leaving a .tar) and need a second extract.
Can I create a TAR file for free?
Yes - tar is built into Linux and macOS, and Windows 10/11 include it too. Free GUI tools 7-Zip, PeaZip and Keka also create .tar and .tar.gz.

Ссылки

1GNU tar - official manualwww.gnu.org
2The Open Group - pax / tar format (POSIX)pubs.opengroup.org

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Похожие расширения

.RARRAR Archive (Roshal ARchive)
.ZIPZIP Archive
.Z01Split ZIP Archive - First Part
.7Z7-Zip Archive
.001Split / multi-volume archive - first part (.001)
.ZIRenamed / Truncated ZIP Archive

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z