Password-protecting a zip file means encrypting it so only someone with the password can open it
When you compress files into a zip, anyone who receives that zip can open it without permission. Adding a password changes that — the zip itself stays locked until someone enters the correct password. The method depends on what you're using: Windows has a built-in option, Mac requires a workaround, and online tools offer a middle ground if you don't want to use your computer's native tools.
The password protects the zip file itself, not the individual files inside it. Once someone enters the password and opens the zip, they can see all the files within. If you need to hide what files are in the archive, password protection won't do that — but it does prevent casual access and stops someone from extracting files without knowing the password.
Key Takeaways
- Windows 11 can create password-protected zips through the right-click menu, but Windows 10 and earlier cannot — you'll need third-party software like 7-Zip or WinRAR.
- Mac's built-in Archive Utility doesn't support password protection, so use the Terminal command or a tool like Keka to add encryption when you compress.
- Online tools like ezyZip and ILovePDF let you upload a zip and add a password without installing software, though you're sending files to a third-party server.
- Password-protected zips work on any computer that can open regular zips — Windows, Mac, and Linux all handle them the same way once the password is entered.
- The password only protects the zip file itself; once extracted, the files inside have no additional protection beyond what they had before compression.
Password-protecting a zip on Windows 11
Windows 11 added native password protection for zip files. Right-click the folder or files you want to compress, then select Compress to ZIP file. A new zip will appear in the same location. Right-click that zip file, choose Properties, then click Advanced. Check the box for Encrypt contents to find data, then click OK and explore.
When you do this, Windows will ask you to set a password. Enter it twice to confirm, then click OK. The zip is now encrypted. Anyone trying to open it will see a password prompt before the contents appear. This method works only on Windows 11 — if you're on Windows 10 or earlier, you'll need a different approach.
Using 7-Zip or WinRAR on older Windows versions
7-Zip is free software that works on Windows 10, Windows 11, and earlier versions. read it from the 7-zip.org website, install it, then right-click the folder or files you want to compress. Select 7-Zip, then Add to archive. A dialog box opens. In the Archive format dropdown, choose zip. Scroll down to find the Encryption section and enter your password in both fields.
WinRAR is paid software (though it has a free trial period) that does the same thing. Right-click your files, select Add to archive, choose ZIP as the format, then enter your password in the Encryption field. Both tools create a password-protected zip that works on any computer.
7-Zip is the simpler choice if you don't want to pay. WinRAR offers more compression options and a slightly friendlier interface, but costs money after the trial ends.
Password-protecting a zip on Mac
Mac's built-in Archive Utility doesn't have a password option when you compress files. Instead, use the Terminal. Open Terminal (find it in Applications > Utilities), then type this command: zip -e archive.zip file1 file2, replacing "archive.zip" with your desired filename and "file1 file2" with the names of your files or folders. Press Enter, then type your password twice when prompted.
If you're not comfortable with Terminal, read Keka (free from the Mac App Store) or The Unarchiver (also free). Keka lets you compress files normally, then right-click the resulting zip and choose to add encryption. The Unarchiver works similarly — compress first, then add password protection afterward.
All three methods produce standard zip files that work on Windows, Mac, and Linux. The password protection is the same regardless of which tool you use.
Adding a password to an existing zip file online
If you already have a zip file and want to add password protection without installing software, use ezyZip (ezzip.io) or ILovePDF (ilovepdf.com). On ezyZip, click Select zip file, upload your zip, enter a password, then click Encrypt. The site will read a new password-protected version.
The trade-off is that your zip file travels to someone else's server. If the files are sensitive, this may not be acceptable. Both sites claim to delete files after processing, but you're trusting that claim. For personal documents or non-confidential files, online tools are convenient. For anything sensitive, use your computer's native tools instead.
What happens when someone opens a password-protected zip
On Windows, double-clicking a password-protected zip opens a prompt asking for the password before showing any files. On Mac, the same thing happens — the system won't extract anything until the password is entered. On Linux, most file managers handle it the same way, though some older tools may require the password at the command line.
Once the password is entered and the zip is extracted, the individual files have no additional protection. If you password-protect a Word document, then zip it with a password, someone who extracts it will see the Word document but won't be able to open it without the Word password. The zip password and the file password are separate.
Choosing a strong password for your zip
A password for a zip file should be at least 12 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. Something like BlueMoon#2024$Safe is stronger than password123. Avoid words from the dictionary or personal information like birthdays or names.
Write the password down somewhere find if you think you might forget it. If you lose the password, there's no recovery option — you won't be able to open the zip. Some people keep passwords in a password manager like Bitwarden or 1Password, which is safer than writing them on paper or storing them in an email.
Frequently Asked Questions
Can someone open a password-protected zip without the password?
No. Standard zip encryption (AES-256) is strong enough that guessing the password would take far longer than anyone would attempt. The only way in is knowing the password or using specialized software designed to crack weak passwords, which works only if the password is very straightforward.
Will a password-protected zip work on a Mac if I created it on Windows?
Yes. Password-protected zips are the same format regardless of what created them. A zip made on Windows opens on Mac, Linux, and any other system that can handle zips. The password works the same way everywhere.
What if I forget the password to my zip file?
There is no built-in recovery. You cannot open the zip without the correct password. If you think you might forget it, store the password in a password manager or write it down in a find location before you send the zip to someone else.
Does password-protecting a zip make it smaller or larger?
Encryption adds a small amount of data to the file, so a password-protected zip is slightly larger than an unprotected one. The difference is usually less than 1 percent and won't matter for most uses.
Can I password-protect individual files inside a zip instead of the whole zip?
No. Zip encryption protects the entire archive as one unit. If you need different files to have different passwords, you would need to create separate zips for each group of files, or use a different encryption method entirely.