Open TAR and TAR.GZ Files
Open TAR, TAR.GZ, TGZ, TAR.BZ2, TAR.XZ and TAR.ZST files up to 2 GiB. Browse the folder tree, preview files, and download one file, everything as a ZIP, or the whole folder.
Runs in your browser — your input is processed on this device and never uploaded.
Input
Result
Results appear here.
About this tool
On this page
What is a TAR file?
A TAR file packs many files and folders into one stream, and a second tool usually compresses that stream as a whole. That gives .tar.gz (or .tgz), .tar.bz2, .tar.xz, .tar.zst and .tar.lz files, which carry source code releases, backups and software packages.
This tool opens TAR and TAR.GZ files and shows what is inside as a folder tree, so you can preview a file, download one, or save them all.
Open TAR options
- TAR archive
- A .tar file, or one compressed with gzip, bzip2, xz, Zstandard or lzip, up to 2 GiB. It reads the ustar, GNU and pax variants, including very long file names, and archives joined end to end.
- Compression
- Detect automatically (the default), or a specific format. Automatic detection reads the first bytes and works for every file this tool opens. Choose a format only to force it.
- Only these paths
- Optional glob patterns, one per line or separated by commas, matched without regard to case. A pattern without a slash also matches file names in any folder, so *.csv picks every CSV file. A pattern ending in a slash, such as docs/, picks everything under that folder. Leave it empty to extract every file and keep every folder, empty ones included.
- One run extracts up to 10,000 files and 2 GiB of file data.
- The result keeps the archive's folders. Download one file, everything as a .zip, or the plain .tar. In Chrome and Edge you can also save the whole tree into a folder you pick.
Why open a TAR file here
TAR files come from Linux and macOS, and plenty of people receive one on a Windows laptop, a phone or a work computer where they cannot install anything. This page opens it without extra software.
It also extracts only what is safe to hand you. Entries with absolute paths or .. in their names are skipped, and so are symlinks, devices, sparse files, the ._ metadata files macOS adds, and a path that appears twice. A hard link comes out as a copy of the file it points to. An archive inside the archive comes out as a file and is not opened.
Open TAR alternatives
macOS, Linux and Windows 10 or later all include a tar command: tar -xf archive.tar.gz extracts everything. 7-Zip and The Unarchiver open TAR files with a few clicks.
For a .zip file, use Unzip Files. To turn a .tar.gz into a plain .tar without opening it, use Gzip Compress and Decompress, or the bzip2 and Zstd tools for .tar.bz2 and .tar.zst. To go the other way, drop a folder on the Gzip tool and it comes back as a .tar.gz.
Things to know about TAR files
The name is short for tape archive. tar arrived with Version 7 Unix in 1979 and was built to write files one after another onto magnetic tape, which is why a TAR file has no index.
That missing index has a cost. To reach the last file in a .tar.gz, every byte before it has to be decompressed, so this page reads at most 4 GiB of unpacked data per run.
The compression in a .tar.gz wraps the whole archive, not each file. Files that resemble each other compress together, so a TAR of a source tree is usually smaller than a ZIP of the same files.
Browse
Find similar tools by category or tag.