DevTools Logo

Tar Archive Explorer

Tar Archive Explorer

Browse a tar or tar.gz file tree, preview text entries and extract a single file — entirely in your browser.

Runs in your browser
Try an example

Archive

Header-only indexing: every entry keeps its byte offset, so extraction slices just that file.

Entries

Open a .tar or .tar.gz file

Or load the sample archive to explore the tree.

Tar Archive Explorer reads ustar and GNU tar headers directly in your browser. It walks 512-byte blocks, resolves long names and pax path overrides, and records the byte offset and size of every entry. The result is a searchable file tree with permissions, sizes and a text preview for the selected entry. Extraction slices just that entry's bytes instead of unpacking the whole archive; gzip input is decompressed locally with the browser's native DecompressionStream.

Inspect a build artifact
artifact.tar.gz → etc/app.conf, bin/server, README.md

The header walk shows every path and size without unpacking; select app.conf to see its text.

Find one log
Filter by name: server.log

Type a substring into the filter to narrow a large entry list, then click the row to preview it.

Extract a single file
logs/server.log → download

The Extract action slices only the selected entry from the archive bytes and downloads it.

Examples

Extract one log

Input
logs/server.log in a 300 MB archive
Output
Download containing only that file's bytes

Entry data is a lazy slice addressed by header offset; the rest of the archive is never copied.

Pax path override

Input
x header with path=etc/app.conf
Output
Entry listed as etc/app.conf

Extended-header records override the literal 100-byte name field.

Bad checksum

Input
Header with byte 0 modified
Output
Warning: invalid checksum at byte 0

Checksum problems are surfaced but do not stop the walk of later headers.

About this tool

Tar Archive Explorer opens a .tar, .tar.gz or .tgz archive and indexes its headers in the browser. Each 512-byte header yields a path, type, mode, mtime, size and the byte offset of the entry data, so browsing a large archive never unpacks it to disk.

The entry table supports substring search, type filters and a text preview for the selected file. Extract downloads just the selected byte range as a Blob; GNU long names and pax path/size records are applied while walking headers, and bad checksums are reported as warnings.

Gzip decompression uses the browser's native DecompressionStream. Nothing is uploaded: archives, previews and downloads stay inside the tab, and parsing stops with a precise byte-offset error when an entry is truncated.

What this tool does not do

  • Gzip support requires a browser with DecompressionStream; older Safari and Firefox versions cannot open .tar.gz input.
  • Sparse-file reconstruction (GNU typeflag S) and bzip2/xz compression are not implemented.
  • Text previews are limited to the first 64 KB and UTF-8 decoding; binary entries can only be extracted.
  • Very large archives must fit in browser memory because the byte array is held in the tab.
  • Nothing is uploaded or cached; closing the tab discards the index and the archive.

How to use this tool

  1. Open an archive

    Pick a .tar, .tar.gz or .tgz file, or load the sample archive from the example chips.

  2. Filter entries

    Type a substring into Filter by name or choose a type such as files, directories or symlinks.

  3. Preview a file

    Click a row to select it. Text-like entries below 1 MB show a UTF-8 preview with a truncation indicator.

  4. Extract one entry

    Press Extract to download just the selected file using its recorded byte range.

  5. Check integrity

    Invalid header checksums appear as warnings while the rest of the archive remains browsable.

Use cases

Artifact inspection

Check what went into a build tarball before publishing it.

Incident triage

Pull a single config or log file from a large backup without unpacking everything.

Layer auditing

Browse container image layer tars and their permission bits.

Dataset peeking

Search a dataset archive for a filename and preview a README before downloading.

Supported tar header fields

FieldOffset / meaning
name / prefixBytes 0-99 and ustar prefix at 345-499, combined with a slash
mode / uid / gidOctal permission and ownership fields
size / mtimeOctal byte count and POSIX timestamp
chksumHeader checksum with the checksum field treated as spaces
typeflag0 file, 5 directory, 2 symlink, 1 hardlink, others reported as other
L / x / gGNU long name and pax extended/global records applied to following entries

The walker stops at two zero blocks and reports truncated entries with their header offset.

Common mistakes

Mistake:Assuming extraction unpacks the whole archive.

Fix:Extraction slices only the selected entry's byte range.

Mistake:Expecting symlinks to be followed.

Fix:Symlinks are listed with their link target; their contents are never read or dereferenced.

Mistake:Uploading a .gz file with a .tar extension.

Fix:Gzip detection is based on the filename suffix; rename the file to .tar.gz or .tgz.

Mistake:Worrying about header checksum warnings on old archives.

Fix:A checksum mismatch is informational; the parser still derives paths and offsets from the fields.

Mistake:Expecting 100% of tar variants to parse.

Fix:ustar, GNU long names and common pax records are supported; exotic sparse formats may produce warnings.

Frequently asked questions

Does it extract everything?

No. The tool indexes header fields and their byte offsets, then slices only the entry you choose to extract. Browsing, previewing and downloading a single file never unpacks the rest of the archive.

How large an archive is supported?

There is no fixed entry-count cap, but the archive bytes are held in your browser tab and the table shows at most 500 filtered rows at once. Multi-gigabyte archives may exhaust tab memory; split them if the browser becomes slow.

Are symlinks followed?

No. Symlinks and hard links are listed with their link targets and type flags, but their targets are never dereferenced or read. This keeps browsing purely structural and safe.

Is my archive uploaded?

No. Header walking, previews and extraction all happen locally with JavaScript. There is no upload endpoint, no analytics on filenames and no persistence after you close the tab.

Which tar variants are supported?

The walker reads standard ustar headers, GNU long-name records (typeflag L) and common pax records that override path or size. Checksum mismatches are reported as warnings; sparse files, bzip2 and xz streams are outside the current scope.

Why can't I open my .tar.gz file?

Gzip decompression uses the browser's DecompressionStream API. If your browser does not provide it, the tool shows a clear message; renaming the file does not help. Use a modern browser or decompress the file first and open the resulting .tar.

References & standards