ZIP File Inspector
Drop a ZIP, JAR, APK or DOCX to list the central directory without extracting: per-folder sizes, compression ratio, the JAR manifest and safety warnings.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the ZIP File Inspector?
Drop a .zip, or any of the formats wearing ZIP under another name, .jar, .war, .apk, .docx, .xlsx, .pptx, and see what is inside without extracting a byte: every entry with its packed and unpacked size, per-folder totals, the archive's compression ratio, and for JARs the parsed META-INF/MANIFEST.MF with its Main-Class. The file is read in your tab and never uploaded.
The listing comes from the central directory, the index that PKWARE's APPNOTE.TXT places at the end of every archive (the file header records of section 4.3.12, found via the end-of-central-directory record of 4.3.16). That is the honest way to list a ZIP: it is the same index every extractor trusts, it needs no decompression, and reading it cannot execute or overwrite anything. The one entry this tool does decompress is a JAR's manifest, inflated by a built-in RFC 1951 implementation so the Main-Class line is readable.
Because nothing extracts, the inspector is safe to point at archives you distrust, and it says why you might: entries whose names climb out with ../ (the Zip Slip pattern), entries with absolute paths, encrypted entries, and total compression ratios with the zip-bomb shape are all called out before any extractor touches the file.
- Central-directory listing per APPNOTE.TXT: every entry with packed and unpacked size, method, CRC and timestamp
- Kind detection for ZIP, JAR, APK, DOCX, XLSX and PPTX from their tell-tale members
- JAR manifest parsed via the built-in RFC 1951 inflate, continuation lines included
- Warnings: path-traversal names, absolute paths, encrypted entries and zip-bomb compression ratios
- ZIP64 archives followed through the locator chain
- Per-folder size totals and a largest-entries table from the index, no extraction
- Copyable text summary; runs entirely in your browser
Updated
How to use the ZIP File Inspector
- Drop the archive on the page, or click to choose it. Renamed containers work: a .docx or .apk lists the same way a .zip does.
- Press Load a sample to inspect a small JDK-built JAR first and see the manifest panel in action.
- Read the glance row: kind, entry count, packed against unpacked bytes, and the overall ratio.
- Take the warnings seriously before extracting anywhere: ../ names and absolute paths are how archives escape their target directory, and an absurd ratio is how they exhaust a disk.
- Use the folder table to find where the bytes live, the largest-entries table to name the heavy files, and the full listing when you need every entry with its method and timestamp.
Worked examples
A JAR summarised, manifest included
Input
The JDK-built sample.jar from our test suite: 6 entries
Output
JAR · 6 entries · 247 B packed, 268 B unpacked (1.1:1), manifest Main-Class: A, Created-By: 17.0.21.1 (Homebrew)
The kind comes from META-INF/MANIFEST.MF existing, and the manifest values are read through the built-in inflate, since the JDK deflates the manifest. Main-Class is the line that decides whether java -jar will run; seeing it without unzipping is the point.
A traversal name, caught from the index alone
Input
An archive holding an entry named ../evil
Output
Warning: path traversal name "../evil": extracting this without checks escapes the target directory
The name sits in the central directory, so the warning costs no extraction. This is the Zip Slip pattern Snyk disclosed across dozens of extraction libraries in 2018: an entry name with ../ segments writes outside the destination folder on any extractor that does not validate names.
The zip-bomb shape
Input
An archive claiming 200 GiB unpacked from a few MiB packed
Output
Warning: the compression ratio and claimed size have the shape of a zip bomb
The central directory states each entry's uncompressed size, so the claim is readable without inflating anything. The inspector flags archives claiming over 50 MiB at ratios past 200:1; ordinary archives of text land near 3:1 to 10:1, and the sample JAR manages 1.1:1 because tiny files barely compress.
Where did the 40 MB go?
Input
Any fat archive, by folder
Output
The per-folder table: unpacked bytes and file counts per top-level directory, largest first
Sizes are summed from the index, so the answer arrives in milliseconds even for archives too big to extract casually. In a JAR or APK this is usually the dependency question: which bundled library is the weight.
Background and insight
A ZIP is read from the back. The end-of-central-directory record (signature 0x06054b50) says where the central directory starts and how many entries it holds; each central directory entry (signature 0x02014b50) carries a file's name, sizes, CRC-32, compression method and timestamp. The local headers scattered through the file body are not the authority, which is why appending to a ZIP works and why two tools can disagree about a crafted archive: this inspector reads only the central directory, the index extractors use.
When any size, offset or count no longer fits in 32 bits, the ZIP64 records take over: a locator (0x07064b50) sits before the end record and points to a 64-bit version of it (0x06064b50), and per-entry 64-bit sizes move into an extra field, with the old 32-bit fields pinned at 0xFFFFFFFF as the signal. The inspector follows that chain and shows a ZIP64 chip, so a 6 GB dataset archive lists as readily as a 60 KB one. Compression methods are named from APPNOTE's table: stored, deflate, deflate64, bzip2, LZMA, Zstandard, and the AE-x marker (99) that signals AES-encrypted entries.
The office formats are the everyday surprise: a .docx, .xlsx or .pptx is a ZIP of XML parts, an .apk is a ZIP with AndroidManifest.xml, a .jar is a ZIP with a manifest. The inspector detects each by its tell-tale member and labels the archive accordingly. For JARs it goes one step further and parses the manifest per the JAR specification, where no line may exceed 72 bytes and continuations start with a single space, which is why naive line-by-line readers truncate long Class-Path values and this one does not.
Common use cases
An email attachment or download you do not trust
List it without extracting: traversal names, absolute paths and bomb ratios show up from the index, and nothing in the archive runs or unpacks while you look.
A JAR that will not start
The manifest panel shows Main-Class and the build metadata through the built-in inflate, answering "is the main class even declared" without unzipping into a temp directory.
Checking what an APK or DOCX really contains
Office files and Android packages are ZIPs; the inspector names the kind from the tell-tale member and lists the XML parts, resources and libraries inside.
Finding the weight in a fat archive
Per-folder unpacked totals and the largest-entries table name the heavy dependency or the uncompressed asset before you commit to downloading or shipping it again.
Verifying a build artifact
Entry count, total sizes and the manifest version pin what a release actually packaged; the copyable text summary diffs cleanly against the previous build's.
Tips and limitations
- Warnings are about extraction risk, not proof of malice: a ../ name is harmless in a listing but dangerous the moment a careless extractor writes it. Extract suspicious archives only with tools that validate entry names.
- An encrypted entry still lists: ZIP encryption covers the data, and names, sizes and timestamps stay readable in the central directory. Treat the visible names of an encrypted archive as metadata the password does not protect.
- ZIP timestamps are DOS format with no time zone, so the modified column shows the packing machine's local clock, not UTC; two machines in different zones produce archives whose times disagree by exactly their offset.
- The unpacked sizes are claims from the index. Extractors should enforce them, and the bomb warning exists because a crafted archive can claim little and inflate to much; the classic trick is nesting, which no listing of the outer archive can fully price.
- A multi-part or self-extracting archive may fail with a missing end-of-central-directory error: the index lives in the last part, and an SFX .exe prepends a program to an otherwise normal ZIP, which this tool reads if you rename it.
- This page lists; it does not extract or create. For packing and unpacking in the browser, use the archive converter on this site, once you have read the warnings here.
Sources and further reading
- APPNOTE.TXT - .ZIP File Format Specification, PKWARE, Inc.. Version 6.3.10: central directory (4.3.12), end record (4.3.16), ZIP64, methods and flags
- RFC 1951: DEFLATE Compressed Data Format Specification, IETF. The format the built-in manifest inflate implements
- JAR File Specification, Oracle. META-INF/MANIFEST.MF, the 72-byte line limit, continuation lines, Main-Class
- Zip Slip Vulnerability, Snyk. The 2018 disclosure of path traversal via archive entry names
Frequently asked questions
How can I see what is in a ZIP file without extracting it?
Read its central directory, the index at the end of the file that stores every entry's name, sizes and method. That is what this page does in your browser: drop the file and the full listing, folder totals and warnings appear without a single byte being decompressed, except a JAR manifest if there is one.
Why does this tool read the central directory and not the local headers?
Because the central directory is the authority: APPNOTE.TXT defines it as the archive's index, extractors navigate by it, and appended or edited archives update it last. Local headers scattered through the file can disagree with it in crafted archives, and following them would mean trusting the less authoritative copy.
What is a path traversal (Zip Slip) entry name?
An entry named with ../ segments, like ../../evil.sh, so that a naive extractor joins it to the target directory and writes outside it, dropping files anywhere the process can reach. Snyk documented the pattern across many extraction libraries in 2018. The inspector flags such names straight from the index.
How does zip bomb detection work here?
The central directory states each entry's claimed uncompressed size, so the total and the ratio are computable without inflating anything. Archives claiming more than 50 MiB at better than 200:1 get the warning; legitimate archives rarely pass 10:1. Nested bombs, archives inside archives, need each layer inspected in turn.
Why is my DOCX or APK listed as a ZIP with XML files inside?
Because that is what those formats are: Office Open XML documents are ZIP containers of XML parts, and an APK is a ZIP with AndroidManifest.xml and compiled resources. The inspector names the kind from the tell-tale member and lists the parts, which is often the fastest way to see what a document really embeds.
Can this show the Main-Class of a JAR?
Yes. META-INF/MANIFEST.MF is located via the central directory, inflated by the built-in RFC 1951 decoder when deflated, and parsed per the JAR spec, where lines cap at 72 bytes and continuations start with one space. Main-Class, Created-By and the implementation attributes show in their own panel.
Does the inspector decrypt encrypted ZIP entries?
No, and it does not ask for a password. Encrypted entries are flagged from the general-purpose bit and their names and sizes listed, since ZIP encryption leaves the central directory readable. Method 99 entries are AE-x (AES) per APPNOTE; everything about their content beyond size stays opaque here.
Is there an in-depth guide to the ZIP File Inspector?
Yes. “How to Decode Binary Formats Without the Schema” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.