Secure ZIP Files on Mac with Password Protection
Creating an encrypted archive on macOS safeguards your sensitive files from access by unauthorized users during storage or transit. This walkthrough explains native Terminal commands, native OS limitations, and dedicated software solutions for adding AES-256 passwords to your folders.
Finder can create and expand ordinary ZIP files, but it does not offer a password field. For a password-protected ZIP without installing another app, open Terminal and run zip -er archive_name.zip folder_to_zip/, then enter the password twice. This command uses legacy ZipCrypto rather than AES. If you need stronger archive encryption, use a tool and format that explicitly supports AES-256, such as an AES-encrypted 7z archive, and confirm that the recipient has a compatible extractor.

Mac Terminal Method
The native way to encrypt using standard ZIP security.
Jump to tutorial ↓Dedicated Software
Graphical tools utilizing strong AES-256 encryption protocols.
See top picks ↓Fixing Locked Archives
What to do if a ZIP won't open or throws permissions errors.
Read the guide ↓Reasons macOS Doesn't Make ZIP Passwords Easy
If you have ever right-clicked a folder on your Mac desktop and selected "Compress," you likely noticed a glaring omission: macOS gives you a standard ZIP file but offers absolutely no graphical prompt to add a password.
Apple's documented Finder workflow lets you Control-click an item and choose Compress, but it does not include a password option. The built-in zip command can add legacy password protection from Terminal. See Apple's current ZIP instructions for Finder's supported workflow.

Compatibility Note: Ventura, Sonoma & Sequoia
The zip command shown below is available on the macOS versions covered by this guide. If Terminal cannot read a folder, review the app's Files & Folders or Full Disk Access setting in Privacy & Security and grant only the access needed for that location.
Using software: NewSoftwares states that Folder Lock 10 for Mac supports macOS 13 and newer. Check the current product requirements before installing.
Which ZIP Protection Method is Right for You?
Before diving into commands or downloads, let's identify what you are actually trying to achieve with your Mac's files.

I need to protect my ZIP file because...
Emailing requires cross-platform compatibility. Terminal creates a legacy-encrypted ZIP that many tools can open, but its encryption is weak. For stronger encryption, agree on a compatible AES-capable archive format and share the password through a separate channel.
You don't need external apps. Jump to the Terminal zip command below. It uses
zip -er and gets the job done instantly natively in macOS.
Terminal can handle batching via scripts, but it's prone to error. Look at our software recommendation (Folder Lock) for bulk processing without writing bash loops.
Encrypt sensitive contents before uploading so the cloud service receives ciphertext. Archive formats differ in whether filenames and other metadata remain visible, so test the chosen format before relying on it.
Create Password Protected ZIP on Mac — All Methods
Method 1: Mac Terminal ZIP Encryption Command
This built-in method requires no download, but it uses legacy ZIP encryption. Use it for compatibility and low-risk transfers, not as the strongest option for highly sensitive material.
- Open Spotlight (Cmd + Space), type Terminal, and hit Return.
- Type
cdfollowed by a space, then drag the folder containing your files into the Terminal window (this sets the directory path). Press Return. - Copy and paste the command below, replacing ArchiveName and FolderName with your actual names.
zip -er ArchiveName.zip FolderName/

- Press Return. You will be prompted to
Enter password:. Type it (keystrokes will remain invisible for security) and press Return. - Verify the password and press Return again. The ZIP will generate in the same folder.
zip command uses standard ZIPcrypto, not AES-256. While it prevents casual snooping, it is not considered secure against brute-force attacks.
Method 2: Using Free Third-Party Archivers (e.g., Keka)
Graphical archivers such as Keka avoid Terminal. Keka documents AES-256 for 7z archives and legacy Zip 2.0 encryption for ZIP archives, so choose 7z when stronger archive encryption matters and ZIP when recipient compatibility matters more.

- Download and install Keka from their website or the Mac App Store.
- Open Keka and select the archive format. Choose 7z for AES-256 or ZIP for broader compatibility with legacy encryption.
- Type a password in the "Password" and "Repeat" fields.
- Drag your folder directly onto the Keka window. It will generate the protected archive.
ZIP Encryption Methods Compared
| approach | Difficulty | Encryption Standard | Cost | Best For |
|---|---|---|---|---|
| macOS Terminal | Moderate (Command Line) | Standard ZIPcrypto | Free | Quick, native compression without installing apps. |
| Keka / 7-Zip (Mac) | straightforward (Graphical UI) | 7z: AES-256; ZIP: legacy Zip 2.0 | Free / Tipware | Graphical archiving; choose 7z when AES-256 is required. |
| Folder Lock 10 (Mac) | Very straightforward (Drag & Drop) | AES-256 Military-Grade | Free (1GB limit) / $39.95 Pro | Users who prefer encrypted lockers, cloud integration, and supported cross-device workflows. |

Reasons We Recommend Folder Lock for Mac
While Terminal is free and Keka is functional, neither offers comprehensive document security. A ZIP file is just a container. If you need to lock files from editing, restrict document access, or prevent document copying across platforms, standard ZIP archives fall short.
We recommend Folder Lock 10 for macOS since it transforms file protection into a seamless, daily workflow. Instead of manually zipping folders, it creates permanent, virtual encrypted drives. You can drop files in, edit them securely on the fly, and even sync your protected lockers across your iPhone, iPad, or Windows PC.

Folder Lock AES-256
Locker: Secure_Docs.flk
Status: Encrypted & Locked
Security Beyond Standard ZIPs
When protecting sensitive office files or PDFs on Mac, here is why a dedicated locker outpaces a traditional ZIP file.
Edit Without Extracting
With a normal ZIP, to edit a Word document, you must extract it, type your password, edit the file, delete the old ZIP, and re-create a new password-secured ZIP. With Folder Lock, the locker mounts as a secure drive. Edit your files natively in Word or Pages, and the moment you close the locker, the encryption is automatically updated.

Military-Grade AES-256
Terminal ZIP uses legacy ZipCrypto, which is unsuitable for strong protection. Folder Lock's developer states that its lockers use AES-256 encryption. Security still depends on a strong, unique password, current software, and safe handling of the unlocked files.

Pre-Encrypted Cloud Syncing
Cloud providers routinely scan your uploads. By utilizing Folder Lock's dedicated Cloud Lockers for Google Drive, Dropbox, or OneDrive, your files are encrypted locally on your Mac before a single byte transfers to the internet. Furthermore, the software automatically syncs your secure data across up to 5 devices, including your iPhone or Android.

Share Without Sending Passwords
A password-protected archive still requires a safe way to share its password. Send the archive and password through separate channels. NewSoftwares documents public-key sharing for Folder Lock, but recipients need a compatible Folder Lock workflow; confirm access with a non-sensitive test file first.

Advanced ZIP & Document Security Concepts
When securing PDFs or Office files before zipping them, understand the difference:
- Open Password: Encrypts the entire file. The user cannot view the contents without the password.
- Permissions Password: Leaves the document readable, but locks editing, printing, or copying. Note: ZIP files only support Open Passwords. They cannot apply granular permissions.

A frequent problem: you create a ZIP on Mac, send it to a Windows user, and they get an error saying the folder is empty or corrupted. This is often caused by Mac's hidden __MACOSX folders and .DS_Store metadata. Using a dedicated security tool ensures the encrypted payload is clean and universally readable.
Legacy ZIP encryption commonly leaves filenames and archive structure visible even when file contents require a password. If filenames are sensitive, use a format and setting that encrypts archive headers, then inspect the finished archive without entering the password to confirm what remains exposed.
Problem Solving Locked Documents & ZIPs
"Couldn't be opened for import if the file is password protected"
This is a highly frequent error when uploading a password-secured Excel, CSV, or ZIP file to Google Sheets. Can Google open a password-secured Office file? No. Google's cloud converters cannot bypass local AES encryption.
The fix: If the service must import or convert the file, decrypt a local copy only in a trusted location, upload it, and remove the temporary plaintext copy when finished. If conversion is unnecessary, keep the encrypted archive and store or share it as a file.
Ways to Recover Access to a Locked Folder You Own
Users frequently search for "ways to open folder lock if password forgotten" or "how to crack folder lock password". If you used strong AES-256 encryption on a ZIP or locker, there is no backdoor.

Legitimate Recovery Steps:
- Check the password manager or secure notes you normally use, plus any documented handoff from the archive's creator. The Terminal
zipcommand itself does not offer a "save to Keychain" option. - Confirm the archive format and encryption method before choosing a recovery tool. Work on a copy so failed repair attempts cannot damage the original.
- For Folder Lock, follow the developer's official recovery guidance. Its documentation states that lost encryption credentials cannot be recovered through a backdoor.
Mac ZIP vs. Folder Lock Versions
| function | Standard Mac ZIP | Folder Lock (Free) | Folder Lock Pro (check current price) |
|---|---|---|---|
| Maximum Protected Size | Limited by Drive | 1 GB Limit | Unlimited |
| Encryption Strength | ZipCrypto (Weak) | AES-256 | AES-256 |
| Cross-Device Syncing | ✗ No | Up to 2 Devices | Up to 5 Devices |
| Secure File Sharing | ✗ No (Must share password) | ✗ No | ✓ Yes (Asymmetric) |
| Secure Digital Wallets & Notes | ✗ No | ✗ No | ✓ Yes |

Common Questions and Answers
Basic Operations
-
How to zip and password protect a file on Mac?
Open Terminal, change to the file's parent folder, and runzip -e ArchiveName.zip FileName. For a folder, usezip -er ArchiveName.zip FolderName/. Enter the password twice, then test the archive before deleting the original. This built-in method uses legacy ZipCrypto; choose an AES-capable format for stronger protection. For another Mac-specific protection workflow, see password-protecting an Excel file on Mac. -
How to add a password to an existing ZIP file on Mac?
Create a new encrypted archive from the extracted files. Adding a password changes the archive structure; it is not a metadata switch on the existing ZIP. -
Can I password protect a document in Google Drive?
Google Drive does not have a native "folder password" function. To create a password-secured folder in Google Drive from a Mac, you must encrypt the folder locally (as a ZIP or Locker) and then sync that locked file to the cloud.
Security Standards
-
What encryption does macOS use for password-secured ZIPs?
By default, the Terminal `zip -e` command uses standard PKZIP encryption (ZipCrypto), which is considered weak. For AES-256, you must use external software. -
Can a password-secured document be hacked?
ZipCrypto is weak and should not protect sensitive data. AES-256 with a strong, unique passphrase is substantially stronger, but no setup is immune to password theft, malware, exposed plaintext copies, or implementation flaws.
Platform Limitations
-
Can I password protect a Chrome profile?
Chrome browser doesn't have any native function to password protect profiles. You must use OS-level account switching or external app lockers to restrict access to the entire browser application. -
Is PDF password security the same as encryption?
Applying an "Open Password" to a PDF encrypts the contents. That said, applying a "Permissions Password" (to lock editing) often leaves the text unencrypted, meaning specialized tools can sometimes strip the permission restrictions.
Our Verdict
If you rarely need to zip files and simply want to send a one-off compressed folder, the Mac Terminal zip -e command is sufficient. That said, for professionals dealing with tax documents, client data, or batch document protection, native macOS tools are cumbersome and rely on outdated encryption protocols. For those users, Folder Lock offers the necessary AES-256 security with a vastly superior daily workflow.
