A password-protected ZIP encrypts the files inside so that only someone with the password can extract them. The catch is that ZIP has two kinds of encryption, one strong and one weak, and the strong one does not open everywhere. Choosing between them is the most important decision in this guide.
AES-256 or ZipCrypto?
| Feature | AES-256 | ZipCrypto |
|---|---|---|
| Security | Strong. With a good password, the contents cannot practically be recovered without it. | Weak. It can be broken without the password using known-plaintext attacks. |
| Opens in | 7-Zip, WinZip, WinRAR, PeaZip, Keka, Bandizip, The Unarchiver and most modern archive apps | Almost everything, including Windows File Explorer and Linux unzip |
| May not open in | Windows File Explorer's classic ZIP support, macOS Archive Utility, Linux unzip | Rarely a problem |
| Use it for | Anything you actually want to keep private | Casual protection when the recipient can only use built-in tools |
ZipCrypto keeps out casual snooping, not a determined attacker. Do not use it for passwords, financial records, health data or anything confidential.
Password protect a ZIP in your browser
To protect an archive you already have:
- Open Password Protect ZIP and choose the ZIP.
- Select AES-256 (recommended) or ZipCrypto.
- Type a strong password. It stays in the page: it is used on your device to derive the encryption keys and is never sent or stored anywhere.
- Encrypt and download the new archive. Your original ZIP is not changed, so delete the unprotected copy yourself if it should not stay on your device.
- Optionally check the result with Test ZIP Integrity, which verifies every file using the password.
To protect files that are not zipped yet, add them to Create ZIP and set a password before creating the archive.
Other ways to add a password
- Windows: File Explorer cannot add a password to a ZIP. With 7-Zip, right-click the files, choose 7-Zip > Add to archive..., set Archive format to zip, enter a password and set Encryption method to AES-256.
- macOS: Finder cannot either. In Terminal,
zip -er archive.zip folderasks for a password but uses ZipCrypto. Keka can create AES-256 ZIPs. - Linux:
zip -er archive.zip folderuses ZipCrypto. For AES-256, use 7-Zip's command line:7z a -tzip -p -mem=AES256 archive.zip folder(-pon its own prompts for the password).
What a ZIP password does not hide
Standard ZIP encryption protects file contents only. Anyone can still read the archive's index and see:
- every file and folder name, including the full path
- file sizes and modification dates
- how many files there are
- the archive comment, if there is one
If the names themselves are sensitive, rename the files to something neutral before zipping, or put the protected ZIP inside a second protected ZIP so only one harmless name shows. 7Z with header encryption is another option if your recipient can open it.