There are three common ways to password protect a zip file: 7-Zip or WinRAR on Windows, and Terminal on a Mac. Each takes about a minute. The part most guides skip is which encryption you end up with, because a zip password can be strong or close to useless depending on one setting. Here are the steps for each, the setting to change, and how to send the file safely.
Before You Start: Your Computer Can Zip, but Not Lock
Both Windows and macOS make zip files out of the box, and neither adds a password from the usual menu:
- Windows 10 and 11: File Explorer's Compress to ZIP file has no password option. Recent Windows 11 versions handle 7z and TAR too, but Microsoft says it doesn't support encrypted archives and points to third-party apps for that.
- Mac: Finder's Compress has no password option either. Terminal does, built in, with one catch covered below.
- iPhone, Android and Chromebook: the built-in Files apps can compress files but don't add a password.
So on Windows you'll need an archiver. 7-Zip is free and open source, and WinRAR has a free trial.
Windows 11 and 10: Password Protect a Zip with 7-Zip
- Install 7-Zip from its official site.
- Select the files or folder you want to protect, right-click, and choose 7-Zip > Add to archive. On Windows 11 you may need to click Show more options first.
- Set Archive format to zip.
- Under Encryption, type your password and type it again to confirm.
- Change Encryption method from ZipCrypto to AES-256.
- Click OK. The new zip appears next to the originals.
Want the file names hidden too? Choose 7z as the format in step 3 and tick Encrypt file names. A standard zip shows the names and sizes of everything inside to anyone, even without the password. The trade-off is that the person you send it to needs 7-Zip or a similar app to open a .7z file.
Windows: Password Protect a Zip with WinRAR
- Right-click the files or folder and choose Add to archive (WinRAR).
- Under Archive format, pick ZIP.
- Click Set password, enter the password twice and click OK.
- Leave ZIP legacy encryption unticked so WinRAR uses AES-256, then click OK to create the zip.
Mac: Password Protect a Zip File in Terminal
macOS includes a zip command that can set a password, no download needed:
- Open Terminal (Applications > Utilities).
- Type
cdwith a space, drag the folder that contains your files into the window, and press Return. - For a folder, run
zip -er archive.zip foldername. For a single file, runzip -e archive.zip filename.pdf. - Type a password, press Return, then type it again. Nothing appears while you type, which is normal.
The catch: Terminal's zip uses ZipCrypto, the original zip encryption from the 1990s. It has known weaknesses, and free tools can break it, especially with a short password. It's fine for keeping a casual glance out. For anything sensitive on a Mac, use an encrypted disk image instead: in Disk Utility, choose File > New Image > Image from Folder and pick 256-bit AES encryption. How to Encrypt a Folder on Mac walks through it.
ZipCrypto vs. AES-256: The Setting That Matters
Every password-protected zip uses one of two kinds of encryption:
| ZipCrypto | AES-256 | |
|---|---|---|
| Strength | Weak, with known attacks | Strong; AES-256 is the standard used for sensitive data |
| Opens in built-in tools | Usually, yes | Not always; the recipient may need 7-Zip or similar |
| Made by | Mac Terminal, 7-Zip's default for zip | 7-Zip (when chosen), WinRAR by default |
| File names hidden | No | No (only the 7z format can hide them) |
Pick AES-256 unless the person you're sending it to can't install anything and the contents aren't sensitive. And whichever you use, the password does most of the work: a long passphrase of four or five random words beats a short one with symbols.
How to Send a Password-Protected Zip File
- Send the password separately. If the zip and the password travel in the same email, anyone who gets into that inbox has both. Text it, say it on a call, or use a different app.
- Expect some attachments to be held. Some email providers and workplace filters block or hold encrypted attachments because they can't scan inside them. Uploading the zip to a cloud drive and sharing the link avoids that, and the file stays encrypted there too.
- Tell the recipient what to open it with if you used AES-256 or 7z.
A Zip Password Is for Sending, Not for Keeping
A password-protected zip protects files in transit. It's less good as a place to keep them. To read or change anything, you unzip it, and the unzipped copies are ordinary, unencrypted files sitting on your computer until you delete them. Your originals stay unencrypted too, unless you delete them after zipping. And editing one document means unzipping, changing it and zipping it all again.
For files you keep and open often, such as ID scans, contracts or tax records, encryption that stays on works better. How to Password Protect a Folder on Mac and Windows covers the built-in options, and if the files go to a cloud drive, encrypt them before they upload.
Vaultine is built for the keeping part. Files are encrypted on-device with AES-256 and open only with Vaultine's own PIN, separate from your Mac or Windows login, and they stay encrypted while they sit in the vault. It runs on macOS and Windows, plus iPhone and Android, so the same private files work across your devices. A 12-word recovery phrase covers a forgotten PIN, and cloud backup is optional and off by default.
The Short Version
On Windows, use 7-Zip or WinRAR, choose zip, set a password and make sure the encryption is AES-256. On a Mac, Terminal's zip -er adds a password with no download, but its ZipCrypto encryption is weak, so use an encrypted disk image for anything sensitive. Send the password separately from the file, and remember that a zip protects files on the way somewhere, not once they're unzipped.
Keep the files you don't send in an encrypted vault. Try Vaultine free with up to 10 files.



