How to Password Protect a Folder on Mac
June 30, 2026
Searching for how to password protect a folder on Mac usually leads to disappointment, because macOS genuinely has no built-in "right-click, add password" option for a regular folder the way some people expect. Here's exactly why that gap exists, and the several real methods that actually work depending on what you're trying to protect and from whom.
Why macOS doesn't offer direct folder password protection
Folders in macOS's file system aren't designed as password-protectable containers the way files inside an encrypted archive are — a folder is fundamentally just an organizational structure pointing to other files, not a self-contained encrypted unit. Apple's security model instead protects data at other layers: your login password protects everything on the Mac while logged out, FileVault encrypts the entire disk, and individual apps can implement their own document-level password protection (like Pages or Numbers files). A generic "password-protect any folder" feature doesn't fit neatly into any of these existing layers, which is likely why Apple has never added it as a native Finder feature despite it being a commonly requested capability.
Method 1: Compress the folder into a password-protected archive (recommended)
This is the most practical real-world equivalent to "password protecting a folder," even though it technically works by converting the folder into an archive first. Compress the folder into a ZIP or 7Z with a password set during creation, then delete the original unprotected folder once you've confirmed the archive extracts correctly. The result functions exactly like a password-protected folder in practice — the content is inaccessible without the password, and it can be extracted back into a normal folder whenever needed. See our full ZIP password protection guide for the exact steps.
The main tradeoff: you're working with a compressed archive rather than a live, directly-editable folder day to day. For folders you access and modify frequently, this adds friction — extract, edit, re-compress, re-protect, every time. For folders you mostly want to store securely and access only occasionally, this tradeoff is minimal and the security benefit is real and immediate.
Method 2: Create an encrypted disk image
macOS's built-in Disk Utility can create an encrypted .dmg disk image, which behaves much more like a genuinely password-protected folder than a compressed archive does. Open Disk Utility, choose File → New Image → Image from Folder, select your folder, and choose an encryption level (128-bit or 256-bit AES) when prompted. The resulting disk image can be "mounted" (double-click, enter password) to reveal its contents as a normal, live, editable folder in Finder for as long as it's mounted, then "ejected" to lock it again — closer to the actual folder-like experience most people are picturing when they search for this.
This method is genuinely underused relative to how well it solves the exact problem. The tradeoff versus archiving: disk images are a macOS-specific format, so this approach doesn't work if you need to send the protected folder to someone on Windows or another platform — it's specifically for protecting content that stays on your own Mac or another Mac.
Method 3: FileVault for full-disk protection
If your actual concern is protecting everything on your Mac rather than one specific folder, FileVault (System Settings → Privacy & Security → FileVault) encrypts your entire startup disk. This doesn't password-protect an individual folder distinctly from everything else — it's all-or-nothing at the whole-disk level, active only while your Mac is powered off or locked. Once logged in, all your files, including that folder, are fully accessible. This is the right tool for protecting against physical theft of your Mac, not for restricting access to one specific folder from someone else who's already logged into your account.
Which method fits which situation
- Sending a protected folder to someone else: compress into a password-protected ZIP or 7Z — cross-platform compatible and portable
- Keeping a folder protected on your own Mac, accessed occasionally: encrypted disk image — closer to a true "locked folder" experience
- Protecting everything on your Mac from theft, not one specific folder: FileVault
- A folder you edit constantly and need password protection with minimal friction: honestly, none of these methods are frictionless for constant editing — an encrypted disk image is the least disruptive of the three for this specific case
A realistic scenario: protecting tax documents on a shared family Mac
Picture a household with one shared Mac and multiple user accounts or one shared login, where you want to keep sensitive tax and financial documents inaccessible to other household members without a password, but don't need to send the folder to anyone externally. An encrypted disk image fits this exactly: create it once, mount it when you need to add or review documents, eject it when done, and the contents remain genuinely inaccessible to anyone without the password — including someone using the same logged-in account, since ejecting locks it regardless of whether the Mac itself is logged in or out.
Step-by-step: creating an encrypted disk image
- Open Disk Utility (Spotlight search "Disk Utility")
- Choose File → New Image → Image from Folder
- Select the folder you want to protect
- Choose a name and destination for the resulting disk image file
- Under Encryption, select 128-bit or 256-bit AES (256-bit is stronger, with negligible practical performance difference for typical folder sizes)
- Enter and confirm your password when prompted
- Under Image Format, choose "read/write" if you want to keep adding or editing files after creation, or "compressed" if the folder is finalized and you want a smaller file size
- Click Save — Disk Utility creates the encrypted image, then you can safely delete the original unprotected folder
To use it going forward: double-click the resulting .dmg file, enter your password, and it mounts as a normal drive/folder in Finder for as long as you need it. Drag it to Trash (or use the eject icon in Finder's sidebar) when done, and it locks again immediately, requiring the password for any future access.
128-bit versus 256-bit AES: does it matter which you choose?
For nearly all practical purposes, both options are secure well beyond what any realistic attacker could brute-force with current technology — the difference between them is more theoretical than practically meaningful for personal or small business use. 256-bit AES is the more future-proof, conservative choice and is what most security guidance defaults to recommending, but 128-bit AES isn't meaningfully "weak" in any practical sense either. If you have no specific reason to choose otherwise, defaulting to 256-bit costs nothing and removes the question entirely.
Troubleshooting
- Forgot the encrypted disk image's password: unfortunately unrecoverable if using strong encryption correctly — see our guide on realistic options for forgotten archive passwords, similar principles apply to disk images.
- Disk image won't mount: verify you're using the exact original password, checking for autocorrect or smart-quote substitution if copy-pasted from a notes app.
- Need to resize an encrypted disk image after creating it: Disk Utility supports resizing existing disk images, though this requires the correct password to modify.
What people actually mean when they search for this
It's worth acknowledging that "password protect a folder" covers a few genuinely different underlying needs, which is part of why no single built-in macOS feature addresses all of them at once. Some people want to hide a folder's existence entirely from anyone browsing their Mac. Others are fine with the folder being visible but want its contents inaccessible without a password. Still others specifically need to send a protected folder to someone else, making portability the real requirement rather than protection on their own machine. None of the methods covered above hide a folder's existence (that's a different, more limited macOS feature involving hidden files), but both archiving and encrypted disk images fully address content inaccessibility, with the choice between them coming down to whether portability or a live-folder editing experience matters more for your specific situation.
Frequently asked questions
Is there a third-party app that adds true folder-level passwords to Finder? Some exist, but they generally work by implementing one of the same underlying methods (archiving or encrypted containers) behind a more folder-like interface, rather than a fundamentally different mechanism macOS doesn't otherwise support.
Which method is most secure? Both password-protected 7Z archives and encrypted disk images use AES encryption when configured correctly, offering comparable real security — the choice between them is about workflow and portability, not security strength.
Can I password-protect a folder in iCloud Drive specifically? The same methods apply — compress into a protected archive or create an encrypted disk image, then store that resulting file in iCloud Drive like any other file.
The bottom line
macOS doesn't offer direct folder password protection, but compressing into a protected archive or creating an encrypted disk image both achieve the practical outcome, depending on whether portability or a live-folder experience matters more for your specific use case. Unzipr handles the archiving route with password protection and optional 7Z header encryption built directly into the compression dialog, with a Password Vault that remembers your passwords so you're never locked out of your own protected folder.