Developer & encoding

How to Unzip a File on Any Device (and Open One Without Software)

How to open and extract a zip file on Windows, Mac, Linux, iPhone and Android - or in the browser with nothing installed - plus what to do with password-protected, damaged and unsupported zips.

6 min readUpdated

A zip file is a box: one file on the outside, any number of files and folders inside, usually compressed so the box is smaller than its contents. Unzipping means taking them out again. Every modern operating system can do it without extra software, and when you are on a machine where you cannot or would rather not install anything, the Unzip Files tool does it in the browser. This guide covers each route, what is actually going on inside a zip, and what to do when one will not open.

Unzipping on a computer

  • Windows: double-click the zip to look inside it as if it were a folder, or right-click it and choose Extract All to unpack it into a new folder beside it. Opening a file straight from the zip without extracting gives you a temporary read-only copy, which is why edits to it seem to vanish.
  • macOS: double-click the zip. Archive Utility extracts it into a folder of the same name next to the zip, with no window to click through.
  • Linux: most file managers have an Extract Here option. From a terminal, unzip archive.zip -d folder extracts into folder, and unzip -l archive.zip lists the contents without extracting anything.

Unzipping on a phone or tablet

  • iPhone and iPad: save the zip to the Files app and tap it. Files extracts it into a folder alongside.
  • Android: open the zip in Files by Google (or your phone maker's file manager) and choose Extract.
  • Chromebook: double-click the zip in the Files app and it opens like a drive you can copy files out of.

Unzipping in the browser

Drop the file into Unzip Files Online and you see every file inside with its size, folders included. Text files and images can be viewed in place, any single file can be downloaded on its own, and in Chrome or Edge on a computer Extract all to a folder writes the whole tree to disk in one go - into a new folder named after the zip, the way Windows does it.

Nothing is uploaded. That is worth more for a zip than for most files, because a zip is usually a bundle of documents, a backup or a project. It also makes large archives practical: only the zip's directory is read when you open it, so a multi-gigabyte file lists almost instantly, and each file's bytes are read only when you view, download or extract that file.

Safari, Firefox and mobile browsers do not let a website write a folder to your disk, so in those you download the files you need one at a time. For unpacking hundreds of files, use the system's own extractor.

What is actually inside a zip

Each file in a zip is stored one of two ways: as is, or compressed with Deflate, the same algorithm inside gzip and PNG. Alongside each one the zip records its original size and a CRC-32 checksum, and at the very end of the file sits a directory listing every entry and where it starts. That end directory is why a zip that was cut off mid-download will not open at all, even though most of its data is there: the map is in the part that never arrived.

It also explains why zipping some files saves a lot and others nothing. As a worked example, take a 12,000-byte text file holding the line hello world a thousand times, and a 200,000-byte file of random bytes, and zip them together:

  • The text file compresses from 12,000 bytes to 56. Deflate replaces every repeat with a short pointer back to the first copy, so a thousand identical lines cost little more than one.
  • The random file compresses from 200,000 bytes to 200,035 - it got 35 bytes bigger. With no repetition to exploit, Deflate has nothing to remove and still adds its own small bookkeeping.

Photos, videos, MP3s and PDFs behave like the random file, because they are already compressed. That is why a zip of holiday photos is barely smaller than the photos: zipping is for bundling them into one download, not for shrinking them. To make photos smaller, compress the images themselves.

Many formats are zips underneath with a different extension: .docx, .xlsx and .pptx, .epub e-books, .jar and .apk apps, and .cbz comics. Rename a copy of a Word document to .zip, or drop it straight into the unzip tool, and the word/media folder holds every image in the document at its original resolution - often the easiest way to get a picture back out of a .docx.

When a zip will not open

  • It says it is damaged or the end is missing. The download was almost certainly interrupted. Compare the file size with what the site lists, and download it again.
  • A file inside fails its check. Every file's CRC-32 is compared as it comes out; a mismatch means those bytes are corrupted, so the tool reports it rather than handing you a broken copy. Again, a fresh download is the fix.
  • It asks for a password, or shows files as password-protected. You need the password, and a desktop tool to use it: 7-Zip on Windows, Keka on a Mac, or unzip on Linux. Encrypted zips cannot be opened in the browser tool.
  • It names an unsupported compression method. A few tools can write entries with BZIP2, LZMA, Zstandard or Deflate64 instead of Deflate. Browsers cannot decode those, and older built-in extractors sometimes cannot either; 7-Zip opens them all.
  • It is actually a .rar, .7z or .tar.gz. Those are different formats. 7-Zip opens all of them, and recent versions of Windows 11 can open .rar and .7z natively.
  • It is one part of a set named .z01, .z02 and so on. That is a split archive. Put every part in one folder and open the .zip with 7-Zip.

Is it safe to unzip a file?

Extracting a zip does not run anything, so the act of unzipping is safe. The risk is what you do next: an .exe, a script, a shortcut or a macro-enabled Office document inside is exactly as dangerous as if it had been downloaded on its own, and a zip is a common way to slip one past an email filter. If you did not expect an archive, do not open what comes out of it.

Two archive-specific tricks are worth knowing. A zip can carry file names like ../../startup/run.bat that try to climb out of the folder you extract into, an attack known as zip slip; good extractors, including the browser tool, flatten those so everything stays inside the destination folder. And a decompression bomb is a tiny zip that claims gigabytes of output to fill your disk or memory; the browser tool refuses to let any file expand past the size the zip declared for it.

Zips made on a Mac often carry a __MACOSX folder and .DS_Store files. They hold Finder metadata, are useless on any other system and are safe to ignore or delete - the Unzip Files tool hides them by default.

Frequently asked questions

How do I open a zip file without installing anything?
Every current operating system can open zips on its own: double-click on Windows and macOS, tap in the Files app on iPhone, use Files by Google on Android. If you are on a computer where you cannot use those - a locked-down work machine, a borrowed laptop - an in-browser tool like Unzip Files Online lists and extracts the contents without uploading the archive anywhere.
Why is my zip file not much smaller than the files inside?
Because the files were already compressed. Photos, videos, music, PDFs and Office documents use their own compression, and Deflate cannot find much repetition left to remove - random-looking data can even come out a few bytes larger. Text, CSV, code and uncompressed formats like BMP or WAV are where zipping saves a lot.
What are the __MACOSX folder and .DS_Store files in my zip?
They are added by the Mac's Compress command. __MACOSX holds Finder metadata about each file (labels, resource forks) and .DS_Store holds a folder's view settings. Neither contains any of your actual content, so on Windows, Linux or a phone you can simply delete them.