How to Password Protect a ZIP File Online
Need to share a group of files securely? Password protecting a ZIP file is a common way to keep the contents safe during transfer. Here are the most reliable methods for Windows, macOS, and any platform.
Why Password Protect a ZIP File?
Compressing files into a ZIP archive saves space and keeps multiple files together. Adding a password ensures that only people with the correct password can open the contents. This is useful for:
- Sending sensitive documents over email
- Uploading private files to cloud storage
- Archiving files for secure long-term storage
How to Password Protect a ZIP File Online with FileLocker
FileLocker does not create ZIP archives, but it can add strong AES-GCM encryption to any existing ZIP file. The workflow is:
- 1Create your ZIP first.Use Windows built-in compression, 7-Zip, or macOS tools to compress your files into a ZIP archive.
- 2Open the FileLocker Tool.Go to the File Protection tool.
- 3Select your ZIP file.Choose the ZIP archive you just created.
- 4Set a password.Enter a strong password.
- 5Download the protected file.FileLocker will encrypt your ZIP file and save it as a
.vaultfile. To open it, use the Unlock Tool with the correct password.
This approach gives you the compression benefit of ZIP combined with FileLocker's browser-based encryption. Your file is never uploaded to a server.
How to Password Protect a ZIP File Online with 7-Zip
7-Zip is a free, open-source compression tool for Windows that supports strong AES-256 encryption.
- Download and install 7-Zip from 7-zip.org.
- Right-click the file(s) or folder you want to compress.
- Select 7-Zip → Add to archive…
- In the dialog, set Archive format to
7z(for AES-256) orzip. - Enter a password in the Encryption section and click OK.
When using the ZIP format in 7-Zip, the default encryption is ZipCrypto, which is weaker than AES-256. For stronger protection, use the 7z format or switch to AES-256 in the encryption settings.
How to Password Protect a ZIP File Online on Windows
Windows 10 and Windows 11 include built-in ZIP compression, but the native Windows tool does not support password protection for ZIP files. To add a password on Windows, use 7-Zip (above) or FileLocker.
How to Password Protect a ZIP File Online on macOS
macOS does not include a native GUI option to password-protect a ZIP file directly. The most reliable options on Mac are:
- Terminal (zip command):
zip -e archive.zip file1.txt file2.txt— macOS will prompt you for a password. - FileLocker: Create a ZIP using Finder's built-in compression, then protect it with FileLocker as described above.
Which ZIP Password Protection Method Should You Use?
| Method | Platform | Requires Install? | Encryption |
|---|---|---|---|
| FileLocker | Any (browser) | No | AES-GCM |
| 7-Zip (.7z format) | Windows, Linux | Yes | AES-256 |
| macOS Terminal | macOS | No | Legacy ZipCrypto |
Frequently Asked Questions
How do I password protect a ZIP file?
You can use 7-Zip (Windows), macOS Terminal, or FileLocker. 7-Zip is the most commonly used free tool on Windows. FileLocker provides additional encryption for any existing ZIP file directly in your browser.
Does FileLocker create ZIP files?
No. FileLocker does not create ZIP archives. It password-protects any existing file, including ZIP files. Create the ZIP first using your OS tools or 7-Zip, then protect that ZIP with FileLocker.
Is 7-Zip password protection secure?
7-Zip uses AES-256 when using the .7z format, which is considered strong. For .zip format, it defaults to weaker ZipCrypto. For best security, use the .7z format or protect your file with FileLocker.
Is my ZIP file uploaded when I use FileLocker?
No. FileLocker processes your ZIP file entirely within your browser on your local device. Your file is never uploaded to a server.