ZIP Viewer & Archive Viewer (JAR, TAR, GZ)

ZIP Viewer & Archive Viewer (JAR, TAR, GZ), a VS Code extension by Zovo

Look inside ZIP, JAR, VSIX, TAR, TAR.GZ and GZ files in VS Code, open any file in an editor tab, and extract only what you need without unpacking the rest.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zip-archive-explorer, version 0.1.1.

A release ZIP open in ZIP Viewer & Archive Explorer, with folders, sizes, packed sizes and ratios, and the Archive Explorer tree in the side bar

Screenshot from a real VS Code 1.142 window running the packaged extension on web-app-release.zip, a sample made by scripts/make-samples.js.

Quick start

  1. Install the extension.
  2. Click a .zip, .jar, .vsix, .tar, .tar.gz, .tgz or .gz file in the Explorer.

To browse an archive in the side bar instead, right-click it and choose Browse in Archive Explorer.

Questions people ask

Is ZIP Viewer & Archive Viewer (JAR, TAR, GZ) free?

Yes. ZIP Viewer & Archive Viewer (JAR, TAR, GZ) is free and MIT licensed.

How do I install ZIP Viewer & Archive Viewer (JAR, TAR, GZ)?

Click "Install in VS Code" above, or search for zovo.zip-archive-explorer in the Extensions view.

What you can do

TaskHow
Browse foldersDouble-click a folder, use the path bar at the top, or press Backspace to go up.
SortClick Name, Size, Packed, Ratio or Modified. Folders stay on top.
Search namesType in the search box. Plain text matches anywhere in the path, and * and ? work as wildcards, for example *.class.
Open an entryDouble-click it or press Enter. Open to the side puts it next to the archive.
ExtractSelect a file or folder and click Extract..., or use Extract all... for the whole archive. One file goes through a save dialog, a folder through a folder picker.
Copy a pathCopy path (or Cmd+C / Ctrl+C) copies the path inside the archive.
Side bar treeThe Archive Explorer section of the Explorer lists every archive you opened, with search, Extract, Copy Path and Open to the Side on right-click.
Opening an image from the Archive Explorer tree. It shows in the VS Code image preview, with the path inside the archive in the breadcrumbs
Searching a ZIP for *.png lists both PNG files with their full paths

Supported files

TypeExtensionsNotes
ZIP family.zip, .jar, .vsix open by default. .war, .ear, .whl, .nupkg, .apk, .aar, .xpi and .epub open through Open in Archive Explorer.Stored and Deflate entries, ZIP64, UTF-8 and old DOS names, self-extracting archives.
TAR.tarustar, GNU long names and pax headers. Links are listed but not created.
TAR.GZ.tar.gz, .tgzUnpacked in memory up to the maxUnpackedMB limit.
GZ.gzOne file. A .gz that holds a TAR opens as TAR.GZ.

Entries open with the editor VS Code picks for their type. That includes other Zovo viewers when you have them, so a CSV inside a ZIP can open in the table viewer.

Safety

A zip bomb sample. The banner warns about a 1008:1 ratio, and opening a 600 MB entry is refused with a clear message
A zip slip sample. Three entries with unsafe names are crossed out, and extracting writes only the safe file

Settings

SettingDefaultWhat it does
archiveExplorer.maxEntries200000Most entries read from one archive, and most files written by one extraction.
archiveExplorer.maxEntryMB512Largest entry, in MB, that opens in an editor tab.
archiveExplorer.maxUnpackedMB2048Most data, in MB, that one extraction writes. Also the limit for unpacking a .tar.gz in memory.
archiveExplorer.askForRatingtrueAsk one time for a Marketplace rating after a few days of use.
archiveExplorer.showSupportLinkstrueShow the small Sponsor and More free viewers links in the status line.
The same viewer in the Light Modern theme with a TAR file

Privacy

The extension works offline. It makes no network calls and has no telemetry. Archives are read from disk with range reads, so a large ZIP or TAR is not loaded whole. The view runs under a strict Content Security Policy, and every name from an archive is shown as plain text.

Known limits

License

MIT. Bundles fflate (MIT). See THIRD-PARTY-NOTICES.md.

Install ZIP Viewer & Archive Viewer (JAR, TAR, GZ)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zip-archive-explorer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zip-archive-explorer, version 0.1.1.

Source code and issues are on GitHub.

All our VS Code extensions

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.