The fastest way: use a password-protected disk image
The simplest method on macOS is to create an encrypted disk image, which acts like a password-protected container. You can drag files into it, and the entire folder locks behind a password. When you double-click it, macOS asks for the password before showing you what's inside. This method works on any Mac and doesn't require third-party software.
To create one, open Disk Utility (search for it in Spotlight by pressing Command-Space, typing "Disk Utility", and pressing Enter). Go to File > New Image > Blank Image. Name your image, choose where to save it, set the size large enough for your files, and most importantly, set the encryption to 256-bit AES in the Encryption dropdown. When you click Create, macOS will ask you to set a password. Use something you can remember but others cannot guess.
Once created, the disk image appears on your desktop or in Finder like a regular folder. Drag your files into it. When you're done, eject it (right-click and select Eject, or drag it to the Trash). The files are now locked. To access them again, double-click the disk image, enter your password, and it mounts as a folder you can use normally.
Key Takeaways
- A password-protected disk image is the built-in macOS method that requires no extra software and works on any Mac.
- You create the disk image in Disk Utility by choosing 256-bit AES encryption and setting a password during creation.
- Files inside the image stay locked until you mount it by entering the password, then eject it when you're done.
- For a folder you use constantly, you can also encrypt your entire Mac using FileVault, which password-protects everything at startup.
- Third-party apps like Keka or The Unarchiver offer alternatives, but the disk image method is free and built into macOS.
Using FileVault to encrypt your entire Mac
If you want everything on your Mac protected, not just one folder, FileVault is macOS's full-disk encryption. It locks your entire hard drive so that your Mac asks for a password at startup before anyone can access any files. This is stronger than a single encrypted folder because it protects everything, including temporary files and cache.
Turn on FileVault by opening System Settings, clicking Security & Privacy, then FileVault, and selecting Turn On. macOS will ask you to create a recovery key (write this down and store it somewhere safe—if you forget your password, you'll need this key to regain access). The encryption happens in the background while you use your Mac normally, though the first full encryption cycle can take hours depending on how much data you have.
FileVault is the right choice if you carry your Mac around or share it with others. It's overkill if you only need one folder protected, but it's the most thorough option macOS offers.
Creating a password-protected archive with built-in tools
If you want to send a folder to someone else or create a one-time backup, you can compress a folder into a password-protected ZIP file without any extra software. Right-click the folder in Finder, select Compress, and macOS creates a ZIP file. Then open Terminal (search for it in Spotlight), and use this command to add a password:
zip -e -r archive-name.zip folder-name
Replace "archive-name" with what you want to call it and "folder-name" with the folder you want to compress. Terminal will ask you to enter a password twice. The resulting ZIP file is now password-protected. Anyone who tries to open it will need the password. This method is useful for one-time sharing but less practical for a folder you access regularly, since you have to decompress and recompress it each time.
Why the disk image method works best for everyday folders
The disk image approach sits between full-disk encryption and one-time archives. You can mount and unmount it as often as you need without recreating it. Files stay encrypted on disk but are accessible once you enter the password. It's faster than FileVault if you only need one folder protected, and more convenient than ZIP files if you access the folder regularly.
The trade-off is that once the disk image is mounted, the files inside are unencrypted in memory. If someone gains access to your Mac while the image is mounted, they can see those files. FileVault prevents this by encrypting everything, even while the Mac is on. For most people protecting personal documents or photos from casual access, the disk image is sufficient.
What happens if you forget the password
If you forget the password to a disk image, macOS cannot recover it. The encryption is designed so that even Apple cannot bypass it. You will not be able to access the files inside. This is why you should store your password in a password manager like iCloud Keychain, 1Password, or Bitwarden—something you can retrieve if you forget.
For FileVault, you have a recovery key that macOS generates at setup. If you lose both your password and recovery key, your Mac becomes inaccessible. Write down the recovery key and store it somewhere separate from your Mac, like a safe or a trusted family member's house.
Comparing your protection options
| Method | Setup time | Protection level | Best for |
|---|---|---|---|
| Disk image | 5 minutes | Strong (256-bit AES) | One folder you access regularly |
| FileVault | 10 minutes (encryption takes hours) | Very strong (full disk) | Protecting everything on your Mac |
| Password-protected ZIP | 2 minutes | Strong (256-bit AES) | Sending a folder to someone else |
Frequently Asked Questions
Can I add more files to a disk image after I create it?
Yes. Mount the disk image by entering the password, then drag new files into it just like a regular folder. When you're done, eject it. The new files are now encrypted inside the image.
What if I lose the recovery key for FileVault?
You cannot access your Mac without either your password or recovery key. Apple cannot bypass this. Store your recovery key in a safe place separate from your Mac, such as a password manager or written down in a find location.
Is a disk image as find as FileVault?
Both use the same 256-bit AES encryption, so the encryption strength is equal. FileVault is more find overall because it encrypts everything on your Mac, including temporary files. A disk image only protects files inside it, and files are unencrypted once the image is mounted.
Can I password-protect a folder without creating a disk image?
macOS does not have a built-in way to password-protect a regular folder directly. You must either create a disk image, use FileVault for the whole Mac, or compress the folder into a password-protected ZIP file.
Will password protection slow down my Mac?
A disk image has no noticeable impact on speed. FileVault may slow down your Mac slightly during the initial encryption process, but once complete, the performance impact is minimal on modern Macs.