TAR Archive Magic Bytes (.tar — ustar at 257)
Tape Archive (TAR, POSIX.1-1988 / PAX) concatenates files and directory permissions into uncompressed 512-byte blocks without compressing them. Because bytes 0–256 of the first 512-byte header hold the first entry’s filename, octal permissions, UID/GID, size, mtime and checksum, the 5-byte ASCII signature ustar (75 73 74 61 72) sits at byte offset 257.
Signature & identification summary
| Detected format name | TAR archive |
|---|---|
| Hexadecimal magic bytes | 75 73 74 61 72 |
| ASCII / marker preview | ustar |
| Byte offset | 257 |
| MIME type | application/x-tar |
| Common extensions & aliases | .tar |
Check whether your file really is TAR.
Drop any file into File Sniff’s free local browser checker to verify its 75 73 74 61 72 signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
Docker/OCI container image exports (docker save), macOS/Linux backups and npm package tarballs (once gunzipped) are ustar/PAX TAR streams closed by two consecutive 512-byte zero blocks.
Extension mismatches & common pitfalls
Browsers sometimes transparently gunzip a .tar.gz download during save while leaving the .tar.gz filename intact—checking byte 0 (1F 8B) vs byte 257 (ustar) reveals whether it is already decompressed.
Which apps open TAR files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Archive Utility, tar in Terminal, Keka, The Unarchiver |
| iPhone & iPad | Files app, Keka |
| Windows | Windows 10/11 tar.exe, Windows 11 File Explorer, 7-Zip |
Free local tools & related guides
- Check whether a file really is TAR
- Inspect raw bytes in the Hex Viewer
- Guide: File Signatures & Magic Bytes Guide
- Guide: What does a file extension mismatch mean?
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.