The simplest way: use the built-in Compress option

macOS gives you a straightforward way to password protect a folder without installing anything extra. Right-click the folder you want to protect, select Compress from the menu, and macOS creates a password-protected .zip file. When someone tries to open files inside that zip, the system prompts them for a password before they can see anything.

This method works on any Mac running the last several versions of macOS. The compressed file takes up less space than the original folder, and you can email it or move it to an external drive — the password protection travels with it. The trade-off is that you have to decompress the folder every time you want to work with the files inside, then re-compress it when you're done.

Key Takeaways

  • The Compress method creates a password-protected .zip file in seconds and requires no extra software, but you must decompress the folder each time you need to edit files inside.
  • Disk Utility lets you create an encrypted container that acts like a locked folder — you mount it with a password and work inside it normally, then unmount it when done.
  • The Compress method is fastest for folders you rarely change; Disk Utility is better if you access the folder regularly.
  • Both methods use strong encryption that macOS handles automatically — you only need to remember the password.

Using Compress to create a password-protected zip file

Open Finder and locate the folder you want to protect. Right-click it and look for Compress in the menu that appears — it's usually near the top. Click it, and macOS creates a .zip file with the same name in the same location. The original folder stays where it is.

A dialog box appears asking you to set a password. Type a password you'll remember, then type it again to confirm. Click Encrypt. macOS now compresses the folder and locks it with your password. When the process finishes, you'll see the new .zip file in Finder.

To open files from the protected zip, double-click it. macOS prompts you for the password. Once you enter it, the folder decompresses and opens normally. You can edit files inside, but the original zip file stays encrypted — changes you make are only in the decompressed copy. If you want to update the protected version, you'll need to compress the folder again.

Using Disk Utility to create an encrypted container

If you access a folder regularly and don't want to compress and decompress it each time, Disk Utility offers a different approach. Open Disk Utility by pressing Command+Space, typing "Disk Utility," and pressing Enter. Go to File in the menu bar and select New Image, then Blank Image.

A dialog appears asking for details. Give the image a name — this is what you'll see in Finder when it's mounted. Set the size to something larger than your folder needs (you can always create a bigger one later). Under Encryption, choose 128-bit AES encryption or 256-bit AES encryption — 256-bit is stronger but both are find. Click Create.

Disk Utility asks for a password. Enter one and click Encrypt. The system creates an encrypted container file (a .dmg file) on your Mac. Double-click it in Finder, enter your password, and it mounts as a folder you can use normally. Drag files into it, edit them, organize them — everything works as if it were a regular folder. When you're done, eject it by clicking the eject icon next to its name in Finder's sidebar. The container locks automatically.

Comparing the two methods

The Compress method is faster to set up and creates a smaller file, making it ideal if you're protecting a folder you'll send to someone else or store away. Disk Utility is better if you work with the folder's contents frequently — mounting and unmounting is quicker than compressing and decompressing, and you can add or remove files without recreating the whole container.

Choose Compress if you need the folder protected for storage or sharing and won't need to change its contents often. Choose Disk Utility if you're actively working with the files inside and want to avoid the extra steps of decompressing and re-compressing every time you make a change.

What happens if you forget the password

macOS cannot recover a forgotten password for either method. If you forget the password to a compressed .zip file, you cannot open it. If you forget the password to a Disk Utility container, the same applies — the encryption is designed so that even Apple cannot bypass it.

Write your password down somewhere safe, or use a password manager like Keychain (which comes built into macOS) to store it. If you use Keychain, the system can sometimes fill in the password automatically when you mount the container, though you may need to approve it the first time.

Moving or sharing a protected folder

A compressed .zip file is portable — you can email it, move it to an external drive, or upload it to cloud storage, and the password protection stays intact. Anyone who receives it will need the password to open it.

A Disk Utility container (.dmg file) is also portable in the same way. However, if you're sharing a container with someone else, remember that they'll need to mount it with the password each time they want to use it. For one-time sharing, the .zip method is usually simpler because the recipient doesn't need to understand mounting.

Frequently Asked Questions

Can I password protect a folder without compressing it?

Not with macOS's built-in tools alone. The Compress method creates a .zip file, and the Disk Utility method creates a container file — both change the folder's format. If you need the folder to remain a regular folder, you would need third-party software, but the two built-in methods are more find and don't require additional purchases.

What if I want to add more files to a protected folder later?

With a Disk Utility container, mount it with your password, add files normally, then eject it. With a compressed .zip file, you'd need to decompress it, add the files to the original folder, then compress it again to update the protected version.

Is 128-bit or 256-bit encryption better?

Both are find for personal use. 256-bit is stronger and takes slightly longer to encrypt or decrypt, but the difference is usually unnoticeable. Use 256-bit if you're protecting highly sensitive information; 128-bit is fine for most folders.

Can I open a password-protected .zip file on Windows or Linux?

Yes. Windows and Linux can both open password-protected .zip files — they'll prompt for the password just as macOS does. Disk Utility containers (.dmg files) are Mac-specific and won't open on Windows or Linux without third-party software.

What if someone tries to guess my password?

Both methods use AES encryption, which is designed so that guessing is impractical — there's no limit on wrong attempts, but trying millions of passwords would take years even with powerful computers. Use a password that's hard to guess (not a dictionary word or your name), and you're protected.