Skip to content
Vaultdit
Download

Guide

How to password-protect a folder on Mac

macOS has no “lock this folder” button in Finder. What it does have is encrypted disk images: a single file that holds a folder’s contents and opens only with a password. Here are the ways to use them, and the one shortcut to avoid.

The short answer

Put the folder inside an AES-256 encrypted disk image. You can make one yourself with Disk Utility, which is free and built in, or use an app like Vaultdit that creates and manages them for you with Touch ID and automatic locking. Either way, the files are encrypted by macOS, and nobody can open them without the password.

Option 1: Disk Utility (free, built in)

  • Open Disk Utility (in Applications › Utilities).
  • Choose File › New Image › Image from Folder… and select the folder you want to protect.
  • Set Encryption to 256-bit AES and enter a strong password. Set Image Format to read/write so you can add files later.
  • Click Save. Open the new image and check your files are there.
  • Delete the original folder, then empty the Trash.

To open it, double-click the image and enter the password. To lock it, eject it in Finder. When macOS asks for the password, leave Remember password in my keychain unticked: if it’s ticked, anyone using your Mac account can open the image without knowing the password.

This works well for an archive you rarely open. For files you use often, the gaps show: the image stays open until you remember to eject it, there’s no Touch ID, and you have to keep track of where each image lives.

Option 2: An encrypted vault app like Vaultdit

Vaultdit does the same thing with less effort. It creates each vault as a standard macOS encrypted disk image (Apple sparse image, APFS, AES-256) and adds what Disk Utility lacks:

  • One window with all your vaults, locked or unlocked at a glance.
  • Optional Touch ID unlock, per vault.
  • Automatic locking after idle minutes, when the screen locks, when the Mac sleeps, or when you quit.
  • Drag and drop, search and Quick Look inside the vault, which is mounted hidden from Finder and Spotlight.
  • No accounts and no network connections. Your vault is a file on your disk, nothing more.

Because the vault is Apple’s own format, it still opens with a double-click in Finder on any Mac with macOS 26 or later, even without Vaultdit installed. You’re never locked into the app. Read the security model for the details.

Why not a password-protected zip?

You can make one in Terminal with zip -er archive.zip folder, but the zip tool in macOS uses the old ZipCrypto scheme, which is weak and can be broken. A zip also has to be fully extracted to use its files, leaving unencrypted copies behind. It’s fine for keeping casual eyes off an email attachment, not for keeping files private.

Isn’t FileVault enough?

FileVault encrypts your entire startup disk. It protects everything if your Mac is lost or stolen while it’s turned off. But as soon as you log in, every file is readable: by you, by any app you run, and by anyone who sits down at your unlocked Mac.

A password-protected folder adds a second lock for the files that matter most. They stay encrypted while you’re logged in, until you unlock that one vault. Keep FileVault on, and use a vault as well.

At a glance

MethodHow it holds up
Disk Utility encrypted imageStrong AES-256 encryption; manual locking, no Touch ID
VaultditThe same AES-256 images, plus Touch ID, automatic locking and one place for all your vaults
Password-protected zipWeak legacy encryption; leaves unencrypted copies when extracted
FileVault aloneProtects a powered-off Mac; files are readable once you log in

Before you start

  • Don’t forget the password. An encrypted disk image can’t be recovered without it, by anyone. Keep it in a password manager.
  • Deleting the originals isn’t a secure erase. On an SSD with FileVault on, deleted data is still encrypted at rest; without FileVault, it may remain recoverable.
  • Back up the vault file. It’s an ordinary file: Time Machine and external drives back it up still encrypted.

Try Vaultdit free for 14 days

Create a vault, drag your folder in, and lock it. No account and no card. US$9.90 once for all your Macs.

Download for Mac

macOS 26 Tahoe or later · Apple silicon and Intel