How to unzip a file on Mac, Windows, Linux and Android
ZIP opens natively on every modern OS. 7z and RAR usually need extra software — or a browser tab that runs the decompressor locally.
NoUpload engineering teamLast updated
Key facts
- ZIP opens without extra software on macOS, Windows, Linux, Android and iOS; 7z and RAR do not, except in recent Windows 11 builds.
- A .tar.gz is one compressed file, not a nested archive: extracting once gives the .tar, extracting twice gives the files.
- Two checks before extracting an untrusted archive: look for executables in the file list, and compare the uncompressed total with the archive size.
- Garbled filenames from Japanese or Chinese Windows archives are fixed with the right code page (for example unzip -O cp932), not by renaming files.
A ZIP file is the most portable container format in existence: macOS, Windows, Linux, iOS and Android all open one without extra software. Yet people still get stuck, usually because the file is not really a ZIP, or because the archive is encrypted and the prompt looks like an error.
This guide covers the native route on each platform, the browser route when you cannot install anything, and the checks worth doing before you extract an archive from a stranger.
The 30-second answer
- macOS: double-click the
.zip. It extracts next to the original. - Windows: right-click, then Extract All…, then choose a destination.
- Linux: right-click and Extract Here, or run
unzip file.zipin a terminal. - Android: open the Files app, tap the archive, then Extract.
- iOS: open it in the Files app; it extracts into the current folder automatically.
- Nothing installed / locked-down machine: use a browser tool that decompresses locally, like the unzip tool on this site.
That last option matters more than it used to. Corporate laptops often block installer downloads, and some of the “free unzip” apps in app stores are ad vehicles. A page that runs the real decompressor in a Web Worker needs no install and, on this site, never uploads the file.
macOS
Double-clicking is usually enough. Archive Utility creates a folder with the archive’s name and puts the contents inside.
If nothing happens, macOS is probably refusing to run Archive Utility because the archive is damaged or the file is not actually ZIP. Two checks:
- Select the file and press
⌘I. The Kind field should say “ZIP archive”. If it says “Document” or names a different format, the extension is lying. - In Terminal, run
file ~/Downloads/your-file.zip. A real ZIP reportsZip archive data.datawith no further description usually means the download was truncated.
macOS handles .zip, .tar.gz, .tgz and .tar natively. It does not open .rar, .7z or .tar.xz without a third-party tool.
Windows
Windows 10 and 11 both open ZIP through Explorer: right-click → Extract All…. Windows 11 23H2 and later also read .rar, .7z and .tar.* natively through libarchive, which is a genuinely useful change.
Two Windows-specific details worth knowing:
- “Extract All” creates a subfolder. If the archive already contains a single top-level folder, you end up with a nested duplicate. You can safely move the inner folder up one level.
- The “blocked file” flag. Files downloaded from the internet carry a Zone.Identifier marker. If script contents will not run after extraction, right-click the archive before extracting, choose Properties, and tick Unblock.
Windows also refuses paths longer than 260 characters in older configurations. Deeply nested archives can silently fail to extract. Extracting to a short path such as C:\x is the standard workaround.
Linux
Desktop environments ship a file-roller style GUI, but the terminal is faster and more predictable:
unzip archive.zip # extract into the current directory
unzip -l archive.zip # list contents without extracting
unzip archive.zip -d out/ # extract into out/
unzip -O cp932 archive.zip # fix mojibake from Windows-encoded names
-O cp932 (or -O gbk) solves the most common Linux unzip complaint: file names from archives created on Japanese or Chinese Windows systems that look like ??????.txt. The archive is fine; the filename encoding flag is missing.
For the other formats:
tar -xf archive.tar.gz # tar auto-detects gzip, xz and bzip2
7z x archive.7z # needs p7zip
unrar x archive.rar # needs unrar or unar
Android
The Files by Google app and most manufacturer file managers extract ZIPs: tap the archive, then Extract. On Samsung devices the option is inside the three-dot menu.
Android cannot open .rar or .7z without an app. If installing one is not an option — a work phone, or a device you do not want to clutter — a browser tab works here too, and the file never leaves the phone.
iPhone and iPad
The Files app extracts ZIPs on the spot: tap the file, and a folder with the same name appears. There is no “extract to…” dialog, which confuses people who expect one.
iOS handles .zip well and .tar.gz inconsistently. .rar and .7z need an app such as iZip or Documents. The browser route also works on Safari 16.4 and later.
When the archive is not a ZIP
Check the extension and the first bytes before hunting for software:
| Extension | What it is | Native support |
|---|---|---|
.zip |
ZIP | Everywhere |
.7z |
7-Zip container, often LZMA2 | Windows 11 recent; otherwise needs software |
.rar |
RAR4 or RAR5 | Windows 11 recent; otherwise needs software |
.tar |
Uncompressed bundle, no compression | macOS, Linux, Windows 11 |
.tar.gz, .tgz |
TAR + GZIP | macOS, Linux, Windows 11 |
.tar.xz, .txz |
TAR + XZ | Linux, macOS with tar; Windows needs software |
.gz |
Single compressed file, not an archive | macOS, Linux; Windows needs software |
A frequent trap: .tar.gz is one file that has been compressed, not a nested archive. Extracting it once gives you a .tar; extracting twice gives you the files. Good tools do both steps in one go, which is what tar -xf and this site’s TAR extractor do.
Password-protected archives
An encrypted ZIP shows a password prompt the moment you try to extract, not when you open it. If you double-click and get “Unable to expand — Error 1”, that is usually a wrong or missing password rather than corruption.
Two encryption schemes exist and they are not interchangeable in practice:
- ZipCrypto — the legacy scheme. Weak, and crackable with commodity tools. Fine for keeping a file away from a casual colleague, useless against anyone determined.
- AES-256 — what “encrypted ZIP” should mean today. 7-Zip, WinZip, Keka, The Unarchiver and the unzip tool here read it. macOS Archive Utility and older Windows tools may report the archive as unsupported.
If you are creating an archive, AES-256 is the only option worth choosing. The ZIP creator on this site uses it by default when you set a password.
Before you extract: three checks worth 20 seconds
Archives are the classic delivery vehicle for malware, and the attack usually relies on you double-clicking without looking.
1. Look at the file list first. Every decent tool can list contents without extracting. A “photo album” that contains an .exe, .scr, .js or .lnk file is not a photo album.
2. Watch for path traversal. A malicious archive can contain an entry named ../../.ssh/authorized_keys. A naive extractor writes outside the target folder and can overwrite files you care about. Modern tools sanitise paths; older ones do not. If you are extracting something untrusted on Linux, extract into an empty directory you created yourself and inspect it before moving anything.
3. Be suspicious of tiny archives with huge contents. A 40 KB ZIP that claims to expand to 40 GB is a zip bomb. It exists to exhaust memory or fill a disk. Tools that show the uncompressed total before extracting — including this site’s — let you spot it in one glance.
Frequently asked questions
Why does my ZIP extract to a folder with the same name?
Most tools create a folder named after the archive to avoid scattering files into your Downloads directory. If the archive already contains one top-level folder, you get two nested folders. Move the inner one up and delete the outer shell.
Can I extract only one file from a big archive?
Yes, and it is much faster than extracting everything. unzip archive.zip path/to/file.txt on the command line; in a GUI, open the archive as a folder and drag the file out. In the browser, the unzip tool lists every entry with a download button on its row.
Is it safe to unzip in a browser?
It is safe if the page does the work locally. The risk with “online unzip” sites is that they upload your archive to a server you do not control, where it may be retained or logged. You can tell the difference in DevTools: if the Network tab stays empty while the file is processed, nothing was uploaded.
What if the ZIP is split into .z01, .z02 parts?
That is a multi-volume archive. You need all parts in the same folder, then extract the .zip part; the tool reassembles them. Browsers cannot do this, because the file picker only hands over one file at a time. Join the parts first with 7-Zip or zip -s 0 split.zip --out joined.zip.
Why is my .zip actually a .docx?
Office files are ZIP containers with a different extension. Renaming one to .zip lets you inspect the internals (XML, images, relationships) — occasionally useful for recovering a corrupted document, never a good idea for everyday editing.
Questions this guide answers
Can Windows 11 open RAR and 7z without extra software?
Windows 11 23H2 and later can read RAR, 7z and several TAR variants through libarchive. Older Windows versions need 7-Zip, WinRAR or a browser tool. Feature support still varies by build, so test one file before relying on it.
How do I fix garbled filenames when unzipping?
The archive stored names in a legacy code page and your tool decoded them as another. Use an extractor that lets you choose the source encoding, such as The Unarchiver or 7-Zip, or unzip -O cp932 on Linux. If the names contain replacement characters, the original bytes are gone.
Is it safe to open a ZIP from an email?
Only after looking inside. List the contents first; a document archive that contains .exe, .scr, .js or .lnk files is suspicious. Watch the uncompressed size for zip bombs and extract into an empty folder when the source is unknown.