Password protect a ZIP file
nanofile Protect ZIP adds a password to a ZIP file inside your own browser tab, with the AES-256 encryption that 7-Zip, WinRAR and a Mac open. Drop a ZIP, a folder or a few files, type a password and download the protected copy. Switch to Unlock to take off a password you already know.
or browse your device. Everything is processed on this device
Files inside
How to password protect a ZIP file
A ZIP keeps its names, folders and compression. A folder or several files are packed into one new ZIP, folder paths kept, and that one archive gets the password. Nothing is uploaded: the encryption runs in this tab.
Press Enter or Apply. Pick one that is long rather than clever: a ZIP can be attacked offline for as long as anyone likes, so length is what protects it.
AES-256 is the strong choice and the default. Choose ZipCrypto only when the person receiving it will double-click it in Windows Explorer and has nothing else installed.
The protected copy is saved as name-protected.zip. Send the password by a different route from the file, such as a text message for an emailed ZIP.
How to password protect a ZIP file or folder on Windows, a Mac or with 7-Zip
Windows cannot do it on its own. File Explorer makes ZIPs with Send to, Compressed (zipped) folder, but has no password option, and the "Encrypt contents to secure data" box in a file’s Advanced properties is EFS, which locks the file to your Windows account rather than putting a password on the ZIP. To add one on Windows, use this page, or install 7-Zip: select the files, right-click, choose 7-Zip, Add to archive, set Archive format to zip, type the password under Encryption and pick AES-256.
On a Mac, Archive Utility cannot add a password either. In Terminal, zip -er archive.zip folder asks for a password and writes ZipCrypto, the weak kind. This page writes AES-256, which Archive Utility then opens when you double-click the file.
AES-256 and ZipCrypto are the two kinds of ZIP password in use. AES-256 is WinZip’s format, read by 7-Zip, WinRAR, WinZip, PeaZip and the Mac. ZipCrypto is the original PKZIP scheme: Windows Explorer reads it, but a known-plaintext attack recovers its keys in minutes, so it keeps out a casual reader and nothing more. Either way the file names inside stay visible without the password; only their contents are encrypted.
To take a password off, switch to Unlock and type it. The archive comes back with the same files and folders and no password. If you do not know the password, this page cannot help: it does not guess, search or crack passwords, and an archive that is not yours is not ours to open.
ZIP password FAQ
How do I password protect a ZIP file?
Drop the ZIP above, type a password, press Enter and download the copy that comes back. Leave Encryption on AES-256 unless the person opening it only has Windows Explorer. To do it offline instead, 7-Zip does the same job: Add to archive, format zip, a password and AES-256.
How do I password protect a folder?
Put it in a protected ZIP: drop the folder above, type a password, and it comes back as one ZIP with its subfolders kept and every file in it encrypted, hidden files included. That ZIP is a protected copy, so the original folder stays open on your computer until you delete it. Windows has no password for a folder itself; its encrypt option is EFS, which ties the folder to your account rather than to a password. On a Mac, Disk Utility can also make an encrypted disk image from a folder, under File, New Image, Image from Folder.
Can Windows 11 password protect a ZIP file without extra software?
No. File Explorer can make a ZIP but cannot put a password on one, and the encrypt option in a file’s properties is EFS, which ties the file to your Windows account instead. Explorer can open a ZIP protected with ZipCrypto, though, which is why this page offers it as an option, and it cannot open one protected with AES-256.
How do I password protect a ZIP file on a Mac?
Archive Utility, the Mac’s built-in zipper, has no password option. Drop the files or folder here and leave Encryption on AES-256, or in Terminal run zip -er archive.zip folder, which asks for a password but writes the weak ZipCrypto kind.
How do I open a password-protected ZIP file?
Double-click it and type the password when asked, if it was protected with ZipCrypto, which Windows Explorer and the Mac both open. An AES-256 ZIP needs 7-Zip or WinRAR on Windows. Or switch this page to Unlock, type the password, and download a copy that opens anywhere without one.
Why does Windows say my protected ZIP is invalid?
Because it is encrypted with AES-256, which the built-in Windows Explorer does not read, and Explorer fails with an error, often calling the folder invalid, instead of opening it. Open it with 7-Zip or WinRAR, both free to try, or protect it again here with ZipCrypto if the recipient cannot install anything.
Which should I choose, AES-256 or ZipCrypto?
AES-256, unless the recipient can only use Windows Explorer. AES-256 with a long password is out of practical reach. ZipCrypto has been broken since 1994: with one file from the archive, or even part of one, its keys can be recovered in minutes whatever the password. It is a lock on a diary, not a safe.
Does a password hide the file names inside the ZIP?
No. A password-protected ZIP still lists its file and folder names, sizes and dates to anyone who opens it; only the contents need the password. If the names themselves are sensitive, put the files in a ZIP first, then protect that ZIP inside another one, or use 7-Zip’s own .7z format with its encrypt file names option.
Does protecting a ZIP remove EXIF or location data from the photos inside?
No. Every file is encrypted exactly as it was packed, so a photograph keeps its EXIF, including GPS location, and anyone with the password gets it back intact. The password keeps that data from anyone without it. To send pictures without their location, remove it first with the JPG or PNG tools, then zip and protect the result.
How do I remove a password from a ZIP file?
Switch to Unlock, drop the ZIP and type its password. The copy that comes back opens without one, with the same names, folders and compression, and it is saved as name-unlocked.zip so it never replaces the protected original. Unlock only works with the right password.
Can this remove a ZIP password I do not know?
No. Unlock decrypts with the password you type and nothing else. There is no recovery, guessing or brute-force mode here, and a wrong password simply gets a wrong-password answer. If the archive is yours, the person or program that made it is the place to ask. If it is not, it is not ours to open either.
Is the password or my file uploaded?
Neither. The encryption runs in this browser tab: the key is derived with your browser’s own Web Crypto and the archive is written in memory. The password box is never saved, not even in the settings this page remembers, and it is empty again when you reload.
Related
Every file joins the ZIP. Nothing is routed to another tool.