Skip to content
Aback ZIP

How-to · 4 min read · Updated

How to password protect a ZIP file

Add a password to a ZIP file with AES-256 or ZipCrypto, understand which one your recipient can open, and avoid the mistakes that leave files exposed.

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?

FeatureAES-256ZipCrypto
SecurityStrong. 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 in7-Zip, WinZip, WinRAR, PeaZip, Keka, Bandizip, The Unarchiver and most modern archive appsAlmost everything, including Windows File Explorer and Linux unzip
May not open inWindows File Explorer's classic ZIP support, macOS Archive Utility, Linux unzipRarely a problem
Use it forAnything you actually want to keep privateCasual 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:

  1. Open Password Protect ZIP and choose the ZIP.
  2. Select AES-256 (recommended) or ZipCrypto.
  3. 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.
  4. 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.
  5. 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 folder asks for a password but uses ZipCrypto. Keka can create AES-256 ZIPs.
  • Linux: zip -er archive.zip folder uses ZipCrypto. For AES-256, use 7-Zip's command line: 7z a -tzip -p -mem=AES256 archive.zip folder (-p on 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.

Choose and share the password wisely

  • AES is only as strong as the password. ZIP AES derives its key with just 1,000 rounds of PBKDF2, so short or common passwords can be guessed quickly offline. Use at least 12-16 random characters, or a passphrase of four or more random words.
  • Send the password through a different channel from the file, for example the ZIP by email and the password by text message or phone.
  • Do not reuse a password from one of your accounts.
  • Keep it somewhere safe. There is no recovery: if the password is lost, the files are effectively gone.

Tools for this

Frequently asked questions

Their built-in tool probably does not support AES. On Windows, 7-Zip opens it; on macOS, Keka or The Unarchiver; on any device, Extract ZIP works in the browser with the password. If they cannot use any of these, ZipCrypto is the compatible but weak alternative.

More guides