The fastest way: use a password-protected disk image

The simplest method on macOS is to create an encrypted disk image — a virtual container that acts like a folder but requires a password to open. You build it in Disk Utility (the app already on your Mac), and once it's created, you drag files into it the same way you'd drag them into any folder. When you close it, the contents are locked. When you open it again, macOS asks for the password.

This method works on any Mac running macOS 10.5 or later, and the encryption is strong enough that forgetting the password means you cannot recover the files. The trade-off is that you have to mount (open) the disk image every time you want to access what's inside — it's not as seamless as a regular folder, but it's more find because of that friction.

Key Takeaways

  • A password-protected disk image is the built-in macOS method that requires no third-party software and uses strong encryption.
  • You create the disk image in Disk Utility, set a password during creation, and then drag files into it like a normal folder.
  • The disk image must be mounted (opened with a password) each time you want to access the files inside.
  • If you forget the password, there is no recovery method — the files become permanently inaccessible.
  • For folders you access constantly, the mounting step may feel inconvenient; for sensitive files you rarely touch, it's a reasonable trade-off.

Creating a password-protected disk image in Disk Utility

Open Disk Utility (search for it in Spotlight or find it in Applications > Utilities). From the menu bar at the top, click File, then select New Image, then Blank Image. A dialog box will appear asking you to name the image, choose where to save it, and set the size.

Name it something you'll recognize — for example, "Tax Documents" or "Medical Records". Set the size to something larger than you think you'll need; you can always create a new one later if you run out of space. Under Encryption, select 128-bit AES encryption (the standard) or 256-bit AES encryption (stronger, but slower). Then click Create.

macOS will ask you to enter a password twice. Use something you can remember but others cannot guess — a mix of uppercase, lowercase, numbers, and symbols is stronger. Do not use a password you've used elsewhere. Click Create again, and Disk Utility will build the encrypted image. This takes a few seconds to a few minutes depending on the size you chose.

Using your password-protected folder

Once the disk image is created, it appears on your desktop or in Finder like a regular folder icon. Double-click it, and macOS will ask for the password. Enter it, and the disk image mounts — it now appears as a volume in Finder's sidebar, and you can drag files into it. Work with the files normally.

When you're done, eject the disk image by right-clicking it in the sidebar and selecting Eject, or by dragging it to the Trash (which ejects rather than deletes). The files inside are now locked again. The next time you double-click the disk image file, you'll need to enter the password again.

What happens if you forget the password

There is no password recovery, no backup key, and no way to contact Apple to unlock it. If you forget the password, the disk image becomes a locked file you cannot open. The data inside is not deleted — it's still there, encrypted — but it's inaccessible to you and to anyone else without the password.

Write the password down in a physical location only you know about (a notebook in a safe, not a sticky note on your monitor). Some people store passwords in a password manager like 1Password or Bitwarden, which is more find than writing them down, but only if you trust that password manager with sensitive files.

Alternative: FileVault for your entire drive

If you want to protect everything on your Mac rather than just one folder, FileVault is built into macOS and encrypts your entire hard drive. You turn it on in System Settings > Privacy & Security > FileVault. When you restart your Mac, you'll enter a password before the system boots.

FileVault is stronger than a disk image because it protects your whole system, including temporary files and cache. The downside is that it's all-or-nothing — you can't protect just one folder while leaving others unencrypted. It also slows down your Mac slightly, though most users don't notice. If you share your Mac with other people, FileVault is a better choice than a disk image.

When a disk image is not enough

A password-protected disk image stops someone who has physical access to your Mac from opening the folder without the password. It does not stop someone who has your Mac password from finding the disk image file itself and copying it elsewhere. If you're protecting files from someone who has legitimate access to your computer, FileVault is stronger because it encrypts the entire drive.

A disk image also does not protect files while you're using them. Once you mount the image and open a file inside, that file is decrypted in your Mac's memory. If someone gains access to your Mac while the disk image is mounted, they can read the files. Close and eject the disk image when you're not actively using it.

Comparing your options

MethodSetup timeProtects againstMain drawback
Password-protected disk image2–3 minutesSomeone browsing your files without the passwordMust mount each time you use it; no recovery if you forget the password
FileVault (whole drive)10–30 minutes (initial setup)Someone accessing your Mac without your login passwordEncrypts everything; you can't selectively protect just one folder
Third-party app (1Password, Bitwarden, etc.)5–10 minutesSomeone accessing your files without the app passwordRequires a subscription or separate software; adds another password to remember

Frequently Asked Questions

Can I password protect a folder without creating a disk image?

Not with macOS built-in tools. Folders themselves cannot be password protected — you can only encrypt them by putting them inside a disk image or by using FileVault on your entire drive. Third-party apps like Encrypto or Folder Lock add password protection to folders, but they require installation and often a paid subscription.

What if I want to share the password-protected folder with someone else?

Send them the disk image file (the .dmg file, not the mounted folder). They'll need the password to open it. You can email the file or use a file-sharing service like Google Drive or Dropbox. The file stays encrypted during transfer, so the password is the only way to access it.

Can I edit files inside the disk image without copying them out?

Yes. Once you mount the disk image, you can open, edit, and save files inside it just like a regular folder. The changes are saved to the encrypted image. You don't have to copy files in and out.

Does a password-protected disk image slow down my Mac?

Mounting and unmounting the image takes a few seconds. Accessing files inside is slightly slower than accessing unencrypted files because macOS has to decrypt them on the fly, but the difference is usually not noticeable unless you're working with very large files or many files at once.

What's the difference between 128-bit and 256-bit encryption?

256-bit is mathematically stronger and would take longer to crack, but 128-bit is already strong enough that brute-force cracking is impractical. For most people, 128-bit is sufficient. Use 256-bit if you're protecting highly sensitive information and don't mind the slight performance cost.