Can I Password Protect a Folder on iCloud Drive? Mac Guide
Can I password protect a folder on iCloud Drive? Not directly. Here is what Apple offers and how to encrypt a folder before it syncs on your Mac.
No. iCloud Drive has no per-folder password, and macOS has no built-in "lock this folder" option in Finder. What you can do is encrypt the folder before it syncs, using an encrypted disk image or an encrypted container, so iCloud only ever stores scrambled data. The rest of this article covers what Apple does provide, where it stops, and how to set up the workaround.
What iCloud Drive actually gives you
Apple protects iCloud Drive in a few ways. None of them is a password on a single folder.
Standard protection. Your files are encrypted in transit and on Apple's servers. In this default mode, Apple holds some of the encryption keys, which is how features like web access and account recovery work.
Advanced Data Protection (ADP). This is an opt-in setting that extends end-to-end encryption to more iCloud data, including iCloud Drive. With it on, the keys live on your trusted devices rather than with Apple. It protects you against a breach of Apple's servers and against Apple being compelled to hand over readable data. Menu names change between macOS versions, but you will typically find it in System Settings under your name, then iCloud. Expect to set up a recovery contact or recovery key, because Apple cannot help you get back in if you lose access.
Sharing permissions. When you share a file or folder, you can usually choose who can access it and whether they can only view or can also edit. Look at the options in the Share sheet on your version of macOS. These controls decide who else gets access. They do not put a password on your own copy.
Where those options fall short
Advanced Data Protection is good at what it does, but it protects data from Apple and from server-side attacks. It does nothing about the devices that are signed in to your Apple Account. Any Mac, iPhone, iPad or web session that is signed in sees your files normally, with no extra prompt.
The same applies locally. iCloud Drive files are ordinary files in your user account. If someone sits down at your unlocked Mac, or opens a shared login session, they can open every folder in iCloud Drive. FileVault protects the disk when the Mac is off or locked, and it is worth keeping on, but it also does not distinguish between folders once you are logged in.
Here is how the options compare:
| Approach | Protects against | Per-folder password | Readable by anyone at your unlocked Mac |
|---|---|---|---|
| Standard iCloud encryption | Network snooping, some server risks | No | Yes |
| Advanced Data Protection | Apple-side access, server breaches | No | Yes |
| Share permissions | Other people getting access | No | Yes (for you and your devices) |
| FileVault | Lost or stolen powered-off Mac | No | Yes |
| Encrypted disk image or container | Anyone without that folder's password, including on synced copies | Yes | No, while locked |
The last row is the only one that gives you a lock on a specific folder. It works by encrypting the data before iCloud ever sees it.
Option 1: Encrypted disk image (built in to macOS)
macOS can create a password-protected disk image from a folder. You mount it with the password, work inside it, then eject it. When it is ejected, the contents are unreadable without the password. This uses Apple's own tools (Disk Utility or hdiutil), not anything from Finderlock.
Steps
Pick the folder you want to protect, for example
~/Documents/Taxes. Work on a copy first if the data matters.Create the image. Open Terminal and run:
hdiutil create -encryption AES-256 -srcfolder ~/Documents/Taxes -volname "Taxes" -format UDZO ~/Documents/Taxes.dmghdiutilprompts you for a password. Use a long, unique one, and store it in a password manager. If you prefer a graphical route, Disk Utility has a "New Image" option, usually under the File menu, with an image-from-folder choice and an encryption dropdown. The exact wording varies by macOS version.Check it opens. Double-click
Taxes.dmg, enter the password, confirm your files are inside, then eject the volume in Finder.Move the
.dmginto iCloud Drive using Finder.Remove the unencrypted original, but only after you have verified the image.
Warning: this step is destructive. Deleting the original folder removes your only readable copy if the image turns out to be damaged or the password is wrong. Mount the image, open a few files, and keep a separate backup before you delete anything. Emptying the Trash is permanent, and any older versions kept by iCloud or Time Machine may still contain the plain files.
To use the data later, mount it:
hdiutil attach ~/Documents/Taxes.dmg
and when finished, eject it in Finder or run:
hdiutil detach /Volumes/Taxes
Limits of the disk image approach
- A single
.dmgis one big file. Each time you change something inside, the whole file changes, and iCloud may need to upload much more than the edit itself. I would not promise exactly how efficiently Apple handles this, so test with your own data size. - While the image is mounted, its contents are readable by anyone using your Mac, so eject it when you step away.
- You have to remember to eject. Nothing locks it for you.
- Editing the same image on two Macs at once is a recipe for conflicts (see below).
The other built-in format, a sparse bundle, splits data into many small files. That can sync better, but it is more fragile and harder to repair if something goes wrong. Treat it as an advanced option.
For a wider look at built-in and third-party choices, see how to password protect a folder on Mac: 4 encryption options compared.
Option 2: Encrypted archive
If you rarely need the files, an encrypted archive is simpler than an image. You compress the folder with a password-protected format and store the archive in iCloud Drive. The weakness is that many archive formats offer weak encryption, and every edit means unpacking and repacking. The details matter, and we covered them in how to password protect a zip file on Mac.
Sync conflicts and backups
Encrypting before sync changes how iCloud sees your data. It no longer sees many small files. It sees one opaque file or container. That brings a few risks.
- Conflicts. If two devices change the same container while offline, iCloud may keep both versions, and you will have to decide which one to keep. You cannot merge two encrypted versions. Edit on one Mac at a time and let sync finish before switching.
- Partial syncs. Opening a container before it has fully downloaded, or while a Mac is set to keep only recent files locally, can cause errors. Check that the file is fully downloaded first.
- Deleting is propagated. Delete the container on one device and it is removed from the others. Recently deleted items may be recoverable for a limited time, but do not rely on that.
- Forgotten passwords are final. There is no reset. Keep the password somewhere safe and separate.
Keep at least one backup that is independent of iCloud Drive, such as Time Machine or an external drive, and test restoring from it.
Option 3: Finderlock
Finderlock is a Mac app that handles the encrypt-before-sync step without disk images. We make it, so weigh this section accordingly.
How it works:
- Right-click a file or folder in Finder and choose Protect (the Finder right-click menu needs macOS 14; the app itself needs macOS 13.5 or later). Folders are archived first.
- Finderlock encrypts the item into its own
.securedcontainer using AES-256-GCM through Apple CryptoKit. Folders are sealed in independent 4 MB chunks. The key comes from your password via PBKDF2-HMAC-SHA256 with 150,000 iterations and a random 32-byte salt. - A placeholder file stays at the original location. Because it sits in the same folder, it is a regular file that iCloud Drive can sync like any other. Double-clicking the placeholder unlocks the item without opening the main app window, and Lock seals it again.
- You can use a per-item password (kept in the macOS Keychain) or Touch ID on paid plans. Auto-lock can trigger on inactivity or sleep, and lock-on-close detects when the app that opened a file quits.
Finderlock does not use hdiutil, sparse bundles or encrypted disk images. It does not integrate with iCloud Drive beyond one feature: it can back up encrypted containers to iCloud (and Google Drive). That gives you an offsite copy of the .secured file, and a recovery tool that uses your master password can restore from it. The backup holds only encrypted data.
Honest caveats:
- Do not assume a synced placeholder alone will unlock on another Mac. Test your setup on a second machine before you depend on it, and treat the encrypted backup as your recovery copy.
- The same conflict rules apply. Lock the item and let sync settle before working on another device.
- Everything runs locally. The only network use is the license check, optional opt-in analytics, updates, and backups you choose to turn on. Details are on the security page.
The free plan covers 3 protected items, which is enough to try this on a sensitive folder or two. Touch ID starts on the Personal plan. You can read the setup guides in the docs, or see how it compares in our roundup of Mac encryption apps.
FAQ
Can I password protect a folder on iCloud Drive?
Not natively. iCloud Drive and Finder have no per-folder password. Encrypt the folder first, with an encrypted disk image or a tool like Finderlock, and then let the encrypted result sync.
Does Advanced Data Protection lock individual folders?
No. It adds end-to-end encryption for iCloud data, so Apple cannot read it. Devices signed in to your Apple Account still see your files normally, and so does anyone using an unlocked session on them.
Is iCloud Drive private enough without extra encryption?
It depends on your threat. For protection against server breaches and Apple access, Advanced Data Protection helps a lot. For protection against someone using your unlocked Mac or another signed-in device, it does not. Sensitive folders benefit from their own encryption layer.
Will an encrypted disk image sync properly in iCloud Drive?
It can, but a single image is one large file, so changes may mean large re-uploads, and editing from two Macs risks conflicts. Eject the image before it syncs, and keep a separate backup.
What happens if I forget the password?
For encrypted images and containers, the data is generally unrecoverable without it. Store passwords in a password manager. Finderlock's recovery tool needs the master password, so set one and keep it safe.
Next step
Decide what you are defending against. If it is Apple or a server breach, turn on Advanced Data Protection. If it is anyone with access to your unlocked Mac or another signed-in device, encrypt the folder itself. Start with one test folder, verify you can reopen it, and take a separate backup before you delete the original. To try the container approach, download Finderlock and protect up to 3 items on the free plan.