How to Password Protect and Encrypt ZIP Files in Windows
In this article
You can password protect and encrypt a ZIP file in Windows by using a third-party archiving tool such as 7-Zip or WinRAR, because Windows' built-in Compress to ZIP feature does not add encryption. The quickest route is to install 7-Zip (free, from the official 7-zip.org site), right-click the files or folder, choose 7-Zip > Add to archive, set an encryption password and select AES-256, then click OK. The result is a ZIP (or 7z) file that asks for the password before it opens.
This matters because a ZIP file sent by email or stored on a USB stick can be opened by anyone who gets it. Adding a password with strong encryption stops casual access and protects the contents if the file is lost or intercepted. Note that menu labels can differ slightly between versions and languages, so if a label does not match exactly, look for the closest option in the same place.
What You'll Need
- A Windows PC (Windows 10 or Windows 11 both work).
- A third-party archiver installed. 7-Zip is free and supports AES-256 encryption; WinRAR is paid but also works. Download only from the official vendor site.
- The files or folder you want to protect.
- A password you will not forget. There is no recovery option in most tools, so store it in a password manager.
Step-by-Step
- Install the archiver. Download 7-Zip from 7-zip.org and run the installer. Accept the defaults. After installation, you will see a 7-Zip entry when you right-click a file or folder.
- Select what to protect. In File Explorer, select the files or folder you want to put in the archive. If you want a single ZIP containing several items, select them all.
- Open the archive dialog. Right-click the selection, then choose 7-Zip > Add to archive. The “Add to archive” window opens.
- Choose the archive format. In the Archive format drop-down, pick zip if you need maximum compatibility with other tools and devices. Pick 7z if you only need to open it with 7-Zip; 7z generally gives stronger encryption options and better compression. Both support AES-256.
- Set the password. In the Encryption section, type your password into the Enter password and Reenter password boxes. Use a long passphrase (12+ characters, mix of letters, numbers and symbols). Avoid short or dictionary words.
- Choose AES-256 encryption. In the Encryption method drop-down, select AES-256. Do not leave it on ZipCrypto; ZipCrypto is weak and can be cracked. AES-256 is the strong option.
- Optional: encrypt file names. If you are using the 7z format, tick “Encrypt file names” so the contents list is hidden until the password is entered. ZIP format cannot hide file names, so if that matters, use 7z.
- Create the archive. Click OK. The archive is created in the same folder. It will have a lock icon or a different icon depending on your setup.
- Test it. Double-click the new archive. It should prompt for a password. Enter it and confirm the files open correctly. This step catches typos before you send the file.
- Share the password safely. Send the archive by one channel (email, cloud link) and the password by another (phone call, encrypted message). Never put the password in the same email as the ZIP.
Common Mistakes
- Using Windows' built-in ZIP. Right-click > Send to > Compressed (zipped) folder creates a ZIP with no password option at all. It cannot encrypt. You must use a third-party tool.
- Leaving encryption on ZipCrypto. Some tools default to ZipCrypto for ZIP compatibility. Always switch to AES-256 if the option is offered.
- Forgetting the password. AES-256 ZIPs cannot be recovered without the password. There is no backdoor. Keep a copy in a password manager.
- Sending password and file together. This defeats the purpose. Use a separate channel.
- Assuming ZIP hides file names. Standard ZIP encryption protects contents but not the list of file names. Use 7z with “Encrypt file names” if the names are sensitive.
Tips
- Use a passphrase of four or more random words rather than a short complex password; it is easier to type and harder to crack.
- For files you will reopen often, consider a password manager that can attach the password to the file entry.
- If you need to send to a recipient who may not have 7-Zip, use ZIP format with AES-256; most modern archivers (WinRAR, PeaZip, macOS Archive Utility in recent versions) can open it. Older Windows built-in ZIP cannot, so tell the recipient to use 7-Zip or another tool.
- Keep the original unencrypted files until you have confirmed the archive opens with the password.
- When archiving for long-term storage, write the password down in a secure offline place as well as a password manager.
Troubleshooting
- The archive does not ask for a password. You likely created a plain ZIP with Windows' built-in tool. Delete it and recreate with 7-Zip, making sure you entered a password and chose AES-256.
- “Wrong password” even though you are sure. Check Caps Lock and keyboard layout. Try typing the password into a plain text field first to verify. If it still fails, the archive may have been created with a different password; recreate it.
- Recipient cannot open the ZIP. They may be using Windows' built-in extractor, which does not support AES-256 ZIPs. Ask them to install 7-Zip or another archiver that supports AES. Alternatively, send a 7z file and tell them to install 7-Zip.
- 7-Zip menu missing after install. Restart File Explorer or sign out and back in. If it still does not appear, reinstall 7-Zip and ensure the shell integration option is enabled during setup.
- Archive is corrupted. Recreate it from the original files. If the originals are gone, data recovery may be needed; encryption prevents repair without the password.
Frequently Asked Questions
Can Windows 11 create a password-protected ZIP without extra software?
No. The built-in Compress to ZIP feature does not offer password protection or encryption. You need a third-party tool such as 7-Zip or WinRAR.
Is AES-256 safe for ZIP files?
Yes. AES-256 is strong encryption and is the recommended option. Avoid ZipCrypto, which is weak and can be broken with widely available tools.
Can I recover a ZIP file if I forget the password?
No. AES-256 encrypted ZIPs have no recovery method without the password. Keep a backup of the password in a password manager or secure offline location.
Does password-protecting a ZIP hide the file names inside?
With standard ZIP format, no; the list of file names is visible even when contents are encrypted. Use the 7z format with “Encrypt file names” enabled if the names themselves are sensitive.
Will the recipient need special software to open my encrypted ZIP?
If you use AES-256 ZIP, they need an archiver that supports it, such as 7-Zip, WinRAR or PeaZip. Windows' built-in extractor may fail. Sending a 7z file requires 7-Zip or a compatible tool.
Can I password protect a ZIP on a Mac and open it on Windows?
Yes, if you create an AES-256 ZIP using a tool that supports it, such as Keka or 7-Zip for Mac. Windows users will need a compatible archiver to open it.