DEV Community

Cover image for Unzip a file without installing anything (even on a locked-down work laptop)
Simran Kaur
Simran Kaur

Posted on Originally published at pixellize.io

Unzip a file without installing anything (even on a locked-down work laptop)

You know the moment. A teammate drops a release-build.zip in Slack, you're on the work laptop, and IT has blocked every installer on earth. No 7-Zip, no WinRAR, no admin rights. The files you need are right there, sealed inside a container you can't open.

Here is every way I actually unzip files, from fastest-if-you-have-a-terminal to works-anywhere-even-on-a-managed-machine.

If you have a terminal, it's a one-liner

Both macOS/Linux and Windows ship with extraction built in. No install.

# macOS / Linux
unzip release-build.zip -d ./out

# list contents first, without extracting
unzip -l release-build.zip
Enter fullscreen mode Exit fullscreen mode
# Windows PowerShell (built in since 5.0)
Expand-Archive release-build.zip -DestinationPath .\out
Enter fullscreen mode Exit fullscreen mode

That covers 90% of dev machines. The other 10% is where it gets annoying.

When you can't touch the terminal

Locked-down work PC, a borrowed machine, a phone, or a reviewer who just wants the files without a CLI lecture. This is where a browser-based extractor earns its place. It runs the unzip client-side, so the archive is never uploaded anywhere.

I use Pixellize's unzip tool for this. Drop the .zip, it reads the archive in the tab, shows every entry with compressed vs original size, and you pull out one file or all of them. Nothing leaves the machine, which matters when the zip is a client deliverable under NDA, not just some icons.

no install • no account • archive stays in the browser
Enter fullscreen mode Exit fullscreen mode

Password-protected zips

If you know the password, both the CLI and a decent browser tool handle it:

unzip -P 'the-password' secret.zip     # heads up: this lands in your shell history
Enter fullscreen mode Exit fullscreen mode

If you don't know the password, stop looking for a magic "unlocker." Encrypted zips are real encryption. No honest tool cracks an unknown password, and the sites that claim to are the ones you don't want near a client file. Ask whoever made the archive to resend it.

Quick reference

Situation Best move
You have a terminal unzip / Expand-Archive
Locked work PC, no installs browser extractor
Phone Files app (iOS) / Files by Google (Android), or the browser tool
.rar / .7z not plain zip, needs 7-Zip or a tool that reads them
Daily, multi-GB archives just install 7-Zip, honestly

Gotchas that have burned me

  • __MACOSX/ and ._ junk after extracting a zip made on a Mac. Harmless, delete it.
  • Double-click does nothing usually means the file is a .rar wearing a .zip extension. Check with file archive.zip.
  • 0 KB files after extraction means the download was truncated. Re-pull it, resumable: curl -C - -O <url>.
  • Weird filenames come from non-UTF-8 names zipped on another OS. The file itself is fine.

The rule I land on: for a quick, one-off extraction with nothing to install, do it in the browser and keep the bytes on your machine. For daily heavy use or odd formats, just install 7-Zip and move on.

Full writeup with the Windows/Mac/phone steps lives on the original post.

Top comments (0)