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
- The whole tree without unpacking it. Folders open and close; every file shows its size, its packed size and how much it shrank, its date, and an encrypted mark when it is locked. A search box finds a file by name in archives of thousands.
- What each file really is. The first bytes of each file are read and named (a “report.pdf” that is really a Windows program says so), not just the extension.
- One file out, not all of them. Tap a file: only that file is unpacked, then Save it, or open it in place when viewhack has a viewer for it: CSV, Excel and ODS, Word and ODT, SQLite, Parquet, Arrow / Avro, PSD, fonts, 3D models, .eml and .msg e-mails, EPUB, HEIC and photos and camera RAW.
- Archives inside archives open as folders in the same tree, up to 3 levels deep (a ZIP in a ZIP in a ZIP in the one you chose). Deeper ones can be saved and opened on their own.
- Password-protected ZIPs. The names and sizes show at once (a ZIP does not hide them); type the password in the page to unpack the files. Both the old ZipCrypto and the AES-128/256 encryption of 7-Zip and WinZip are read.
- What a Linux package will run before you install it. A Debian or Ubuntu
.debshows its package card (name, version, architecture, maintainer, installed size, dependencies, description) and its maintainer scripts (preinst,postinst,prerm,postrm) as text; an.rpmfrom Fedora, Red Hat or SUSE shows its header (name, version, release, architecture, summary, licence, requirements, payload compressor) and its%pre,%post,%preunand%postunscriptlets. Those scripts run as root when the package is installed. Below them, the files the package puts on the system. - ISO disc images of any size. An .iso is listed by reading only its volume descriptors and directory records, and a file is saved straight out of it, so a 4 GB or 8 GB image works like a small one. Long Joliet and Rock Ridge names are shown, not the short upper-case ISO 9660 ones.
- Formats: ZIP and ZIP64 (also JAR and APK, which are ZIPs), 7z, RAR 4 and RAR 5, tar, and tar compressed with gzip (.tar.gz, .tgz), XZ (.tar.xz), bzip2 (.tar.bz2) or Zstandard (.tar.zst), plus a single .gz or .zst file; ISO 9660 disc images (.iso); Microsoft Cabinet files (.cab, stored, MSZIP or LZX); Debian packages (.deb) and RPM packages (.rpm, with a gzip, XZ, LZMA, bzip2 or Zstandard payload).
What it cannot do
- Multi-volume or split archives. A set such as
photos.part1.rar+part2.rar,backup.7z.001+.002, ordata.z01+data.zipis not joined. One RAR part is listed and the files wholly inside it open; a split 7z or ZIP is named as such. Put every part in one folder and open the first with 7-Zip, WinRAR, Keka or The Unarchiver. - Archives larger than the tab's memory. ZIP, tar and ISO files (also .tar.gz and .tar.zst) are read a piece at a time, so a ZIP or ISO of many gigabytes is listed by reading only its table of contents, and only the file you tap is unpacked into memory. 7z, RAR, CAB, .tar.xz and .tar.bz2 go through libarchive, which copies the whole archive into the tab's memory: up to 2 GB at most, and on a phone often far less before the browser gives up.
- Encryption the library rejects. Password-protected 7z and RAR archives are listed when their file names are not encrypted, and the locked files are marked, but their contents cannot be decrypted here: libarchive 3.7.2, the decoder viewhack uses, has no 7z or RAR decryption. When the names are encrypted too (“Encrypt file names” in 7-Zip or WinRAR), not even the list shows. PKWARE's own “strong encryption” in ZIP is not read either.
- Some compressed files on their own. A lone .xz or .bz2 that is not a tar archive (a
dump.sql.xz) cannot be unpacked; a lone .gz or .zst can. LZ4 files and Apple DMG disk images are named but not opened: the libarchive build viewhack uses has no LZ4 decoder and no reader for DMG's UDIF format. - UDF-only disc images. Windows install ISOs, most video DVDs and Blu-ray images keep their files in UDF and put only a stub (often a lone README) in the ISO 9660 part. viewhack does not read UDF yet; it says so rather than show the stub as the disc. Windows 8 and later and macOS open such an image with a double-click.
- Some cabinets and packages. CAB files compressed with Quantum (rare, from the mid-1990s) are listed but cannot be unpacked, and a cabinet split across several .cab files is not joined. An RPM whose payload uses another compressor, or rpm's stripped cpio format for files over 4 GB, gets its header card and a plain message instead of the file list.
- Dates for every format. ZIP, RAR and tar (with .tar.gz and .tar.zst) show each file's date. For 7z, .tar.xz and .tar.bz2 the decoder does not report dates, so none is shown rather than a wrong one.
- Making or changing archives, or “extract all”. It only reads. Files are saved one at a time.
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 -ecommand 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
__MACOSXfolder of._namefiles: 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
ararchive holding three members:debian-binary(the text2.0),control.tar(the package's fields and its maintainer scripts) anddata.tar(the files, laid out from/), each tar usually compressed with XZ, Zstandard or gzip.dpkgrunspreinstbefore unpacking andpostinstafter, as root, so a package from an unknown source can do anything the administrator can.dpkg -I package.debshows 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.rpmprints 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.