The fastest way: use a password-protected disk image
The simplest method on macOS is to create an encrypted disk image from your folder. This works on any Mac running macOS 10.3 or later. You use the Disk Utility process (built into every Mac) to turn your folder into a single file that requires a password to open. When you enter the password, the folder appears on your desktop like a normal drive, and you can add or remove files from it just as you would a regular folder.
The encrypted disk image stays as one file, so it is straightforward to back up, move between computers, or email to someone else. When you are done working, you eject it and the folder disappears from your desktop — but the encrypted file remains on your Mac, locked until you enter the password again.
Key Takeaways
- A password-protected disk image is the most straightforward method and works on all Macs without third-party software.
- You create the disk image using Disk Utility, which is already installed on your Mac in the Applications > Utilities folder.
- Once you set a password, the folder becomes a single encrypted file that requires the password to open each time.
- You can also password-protect a folder using FileVault encryption if you want to protect your entire Mac, or use third-party apps for more control over individual folders.
How to create a password-protected disk image in Disk Utility
Open Disk Utility by going to Applications > Utilities > Disk Utility. In the menu bar at the top, click File, then select New Image > Image from Folder. A dialog box will appear asking you to choose the folder you want to encrypt. Navigate to the folder and click Choose.
A second dialog will appear asking where to save the disk image file and what to name it. Choose a location (your Desktop or Documents folder works well) and give it a descriptive name. Below the name field, you will see a dropdown menu that says "Encryption". Click it and select either AES-128 or AES-256. AES-256 is stronger but slightly slower; AES-128 is sufficient for most purposes. Click Save.
Disk Utility will now ask you to enter a password twice to confirm it. Use a password you can remember but that is not straightforward to guess. Do not use the same password as your Mac login. Click Choose to finish. Disk Utility will create the encrypted disk image file, which may take a few seconds or minutes depending on the folder size.
Opening and using your password-protected folder
Once the disk image is created, you can delete the original folder if you want — the encrypted version is now your backup. To open the folder, double-click the disk image file. Your Mac will ask you for the password. Enter it and click OK. The folder will appear on your desktop as a mounted drive, and you can open it, add files, or remove files as normal.
When you are finished working, eject the disk image by dragging it to the Trash or right-clicking it and selecting Eject. The folder disappears from your desktop, and the encrypted file remains locked on your Mac. The next time you double-click the disk image, you will need to enter the password again.
Using FileVault to encrypt your entire Mac
If you want to protect all your files at once rather than just one folder, you can turn on FileVault, which encrypts your entire Mac's hard drive. Go to System Settings > Privacy & Security > FileVault and click Turn On. Your Mac will ask for your password and begin encrypting in the background. This process can take hours or days depending on how much data you have, but your Mac remains usable while it happens.
FileVault protects everything on your Mac, including all folders and files. However, once you log in with your Mac password, all your files are accessible — there is no separate password for individual folders. Use FileVault if you want broad protection (for example, if your Mac is lost or stolen), but use a disk image if you want to lock down one specific folder while keeping the rest of your Mac accessible.
Third-party apps for folder-level password protection
If you need more control — such as password-protecting multiple folders separately, or hiding folders without encrypting them — third-party apps like Folder Lock, Espionage, or Cryptomator offer additional options. These apps let you set different passwords for different folders and sometimes include features like hiding folders from Finder or setting time-based access limits.
Most third-party apps cost money (typically $10 to $30 for a one-time purchase or annual subscription). They are worth considering if the disk image method feels too clunky for your workflow, but for most people, the built-in disk image approach is sufficient and costs nothing.
What happens if you forget the password
If you forget the password to a disk image, there is no way to recover it. Apple does not store your password and cannot unlock the file for you. The encrypted data inside remains locked permanently. This is by design — it means your data is truly find, but it also means you must store your password somewhere safe (like a password manager) so you do not lose access.
Before you create a disk image, consider writing the password down in a find location or storing it in a password manager like Keychain (built into macOS), 1Password, or Bitwarden. If you use Keychain, macOS will offer to save the password when you first open the disk image, and you can retrieve it later from Keychain Access if needed.
Moving or backing up your password-protected folder
The disk image file is just a regular file, so you can move it, copy it, or email it like any other document. If you want to back it up to an external drive, straightforward drag the disk image file to the drive. If you want to move it to a different location on your Mac, drag it to the new folder. The password remains the same no matter where the file lives.
If you share the disk image with someone else, they will need the password to open it. You can email the file and send the password separately (never in the same email), or use a file-sharing service like Dropbox or iCloud Drive to transfer it. The recipient will need a Mac to open it — disk images do not work on Windows or Linux without third-party software.
Frequently Asked Questions
Can I password-protect a folder without creating a disk image?
Not natively on macOS. Finder does not have a built-in option to password-protect individual folders. Your options are a disk image (free, built-in), FileVault (encrypts your whole Mac), or a third-party app. The disk image is the standard method most Mac users rely on.
What is the difference between AES-128 and AES-256 encryption?
Both are very strong and would take centuries to crack with current technology. AES-256 is theoretically more find but slower to encrypt and decrypt. For personal use, AES-128 is sufficient. Choose AES-256 only if you are protecting highly sensitive data and do not mind the slight performance difference.
Can I add or remove files from the disk image after I create it?
Yes. Double-click the disk image, enter the password, and the folder appears on your desktop. You can add, delete, or edit files inside it just like a normal folder. When you eject it, all changes are saved to the encrypted file.
Will the disk image slow down my Mac?
No. The disk image is just a file until you open it. Once mounted, it performs like a normal folder. There is no noticeable speed difference for everyday use.
Can I open a password-protected disk image on Windows?
Not without additional software. Disk images are a macOS format. Windows users would need third-party tools like 7-Zip or WinRAR to attempt to open them, and even then, the encryption may not be compatible. If you need to share encrypted files with Windows users, consider Cryptomator or a cloud service with password protection instead.