How to Add a Password to a Zip File (Windows, Mac, and Beyond)
Zip files are one of the oldest and most universal ways to compress and share multiple files at once. Adding a password to a zip file layers in basic encryption, so only someone with the correct passphrase can extract the contents. It sounds simple — and often it is — but the process varies significantly depending on your operating system, the software you're using, and the encryption standard being applied.
What Happens When You Password-Protect a Zip File?
When you add a password to a zip file, you're enabling encryption on the file contents. Anyone who tries to open the archive will be prompted to enter the password before the files can be extracted or even viewed.
There are two main encryption standards used in zip files:
- ZipCrypto (legacy): The original zip encryption method. Widely compatible, but considered weak by modern security standards. It can be cracked relatively easily with brute-force tools.
- AES-256 encryption: The current industry standard. Significantly stronger and used by most modern zip utilities. Not all software supports it on extraction, though compatibility has improved considerably.
This distinction matters more than most people realize. If you're password-protecting a zip file for casual use — keeping something tidy on your own drive — ZipCrypto's limitations may not concern you. If you're encrypting sensitive documents before emailing them, AES-256 is the meaningful choice.
How to Add a Password on Windows 🔐
Windows does not include built-in zip password protection. The native File Explorer can create zip files, but it cannot password-protect them. For that, you need third-party software.
Using 7-Zip (Free)
7-Zip is one of the most widely used free utilities for this purpose:
- Right-click the file or folder you want to compress
- Select 7-Zip > Add to archive
- In the archive window, look for the Encryption section on the right
- Enter your password in the "Enter password" field
- Choose AES-256 from the encryption method dropdown
- Set the archive format to zip (not 7z, if you need broad compatibility)
- Click OK
Note: If you select the 7z format instead of zip, you get stronger encryption overall — but the recipient will also need a tool that supports 7z to open it.
Using WinRAR or WinZip
Both WinRAR and WinZip offer similar password options during the archive creation dialog. Look for an "Encryption" or "Set password" button within the compression settings. Both support AES-256 when creating zip archives.
How to Add a Password on macOS
macOS also lacks built-in zip password protection through Finder. The Terminal method works, but it defaults to the weaker ZipCrypto standard:
zip -e archive.zip file1.txt file2.txt You'll be prompted to enter and verify a password. This creates a password-protected zip, but without AES-256 encryption.
For stronger encryption on Mac, tools like Keka or The Unarchiver (for extraction) paired with a compression utility that supports AES-256 are common options. Keka, for example, uses the same underlying 7-Zip engine and supports AES-256 when creating zip or 7z archives.
Encryption Strength vs. Compatibility: The Trade-off
This is where setup matters most:
| Factor | ZipCrypto | AES-256 |
|---|---|---|
| Encryption strength | Weak (crackable) | Strong (current standard) |
| Built-in Windows support | Yes (extraction only) | Requires third-party tool |
| Built-in macOS support | Yes (Terminal) | Requires third-party tool |
| Broad recipient compatibility | High | Moderate (improving) |
| Recommended for sensitive data | No | Yes |
If the person receiving your zip file only has access to built-in OS tools, they may not be able to open an AES-256 encrypted zip without installing additional software. ZipCrypto opens natively on both Windows and macOS — but it's not suitable for anything genuinely confidential.
What About Mobile Devices?
Adding a password to a zip file from a smartphone is possible but more limited. Most mobile file manager apps — on both Android and iOS — can extract password-protected zip files, but creating a password-protected zip typically requires a dedicated app. Options exist on both platforms, though feature sets and encryption support vary considerably between apps.
Factors That Affect Your Approach 🗂️
Getting the right result depends on several variables specific to your situation:
- Your OS and version: Windows 10/11 vs. macOS Ventura or later handle zip tools differently
- Technical comfort level: Terminal commands work but have no error-catching UI
- Who's receiving the file: Their software determines what encryption they can open
- What you're protecting: Casual organization vs. genuinely sensitive files calls for different encryption standards
- File size and compression needs: Very large archives may benefit from 7z format rather than zip, but that changes compatibility further
The method that's "correct" in a general sense — AES-256 via a tool like 7-Zip — may not be practical if the recipient runs a locked-down corporate machine where they can't install software. Conversely, using ZipCrypto because it's convenient offers little real protection for anything sensitive.
One Thing That Catches People Off Guard
Password-protecting a zip file does not hide the file names inside the archive by default — only the contents are encrypted. Anyone who opens the archive without the password can still see the names of the files within. If file names themselves are sensitive, tools like 7-Zip offer an option to encrypt file names as well, but this is typically only available in the 7z format, not standard zip.
How you weigh compatibility against security — and whether file name visibility matters in your use case — is something only your specific situation can answer.