viewhack

Look inside a ZIP, 7z or RAR and take out one file

On a borrowed laptop, a locked-down work PC, a Chromebook or a phone, an archive often will not open, or wants you to unpack all of it. Drop it here to see every file inside with its size, date and whether it is locked, then save just the one you need, or open it right here: a CSV, spreadsheet, Word file, SQLite database, photo or font inside the archive opens in viewhack's own viewer.

The archive is read on your device. It is never uploaded, and a password you type never leaves this tab.

What it shows

What it cannot do

Useful to know about archives

Why a ZIP lists instantly but a .tar.gz does not
A ZIP compresses every file on its own and keeps a table of contents, the central directory, at the very end of the file. Reading that table is enough to list the archive, and any one file can be unpacked without touching the others. A .tar.gz is the other way round: tar strings the files together end to end, then gzip compresses the whole string as one stream, so listing it means decompressing all of it, and the last file can only be reached through every file before it.
Why a ZIP that stopped downloading will not open
Because that table of contents is at the end, a ZIP cut short by a failed download has no list at all. A .tar.gz cut short still lists every file up to the break, and this page shows them.
Solid 7z and RAR archives
7-Zip and WinRAR usually compress many files together as one block (“solid”), which makes the archive smaller. The price: to take out one file, the decoder unpacks everything before it in the block, and there is no packed size per file, only per block.
ZIP passwords
Even with a password, a ZIP's file names, sizes and dates are stored in the clear; only the contents are encrypted. The old ZipCrypto method, still the default in many tools and the only one the classic zip -e command offers, is weak: a known-plaintext attack published in 1994 breaks it. AES-256, offered by 7-Zip and WinZip, is not known to be breakable. 7z and RAR can also encrypt the names.
ZIP64 and the 4 GB line
The original ZIP format stores sizes and offsets in 32 bits, so no file or archive could pass 4 GiB (4,294,967,295 bytes), nor hold more than 65,535 entries. ZIP64 extends those fields to 64 bits. Very old unzip tools fail on ZIP64 archives; this page reads them.
Why ZIP dates have no time zone
ZIP's basic date field comes from MS-DOS: local clock time in 2-second steps, with no time zone. A ZIP made in Tokyo and opened in Oslo shows the Tokyo clock time. Many tools add an extra field with the exact UTC time; when it is there, the date is shown in your own time zone instead.
__MACOSX and ._ files
ZIPs made with the Mac's Archive Utility contain a __MACOSX folder of ._name files: Finder metadata and resource forks for the real files. They are safe to ignore on other systems.
What is inside a .deb
A .deb is an old Unix ar archive holding three members: debian-binary (the text 2.0), control.tar (the package's fields and its maintainer scripts) and data.tar (the files, laid out from /), each tar usually compressed with XZ, Zstandard or gzip. dpkg runs preinst before unpacking and postinst after, as root, so a package from an unknown source can do anything the administrator can. dpkg -I package.deb shows the same card on a Linux machine.
What is inside an .rpm
An RPM starts with a 96-byte lead, then a signature header and the main header: tagged fields such as the name, version, dependencies and the scriptlets, all readable without unpacking anything. The files follow as one compressed cpio archive. rpm -qp --scripts package.rpm prints the scriptlets on a Linux machine; this page shows them anywhere.
ISO 9660, Joliet, Rock Ridge and UDF
Plain ISO 9660 (1988) allows only short upper-case names such as README.TXT;1. Joliet, added by Microsoft in 1995, stores a second directory tree with names of up to 64 Unicode characters; Rock Ridge adds full Unix names, links and permissions to the first tree. One ISO 9660 extent holds at most 4 GiB, so bigger files are stored as several extents. UDF is the newer file system of DVDs and Blu-ray discs and of Windows install images.
What your computer opens by itself
Windows, macOS, ChromeOS and the Files app on iPhone and iPad unpack ZIP. Windows 11 added 7z, RAR and tar in its 2023 updates; older Windows needs 7-Zip. macOS Archive Utility does not open RAR or 7z; The Unarchiver and Keka do.

Made with AI tools. · Privacy