How to Make a Private Photo Vault on a Mac
A private photo vault is an encrypted container that opens only with a password or key. On a Mac, make one with Disk Utility: create an encrypted sparse bundle image, move your photos in and eject it to lock. The hard part is leaving no plaintext copies behind, so check Photos, Time Machine and cached previews.
Steps use macOS 14 and later names. Menu wording can differ slightly between versions.
Build the vault with Disk Utility
-
Open Disk Utility
Press ⌘Space, type Disk Utility and press Return.
-
Create a blank image
Choose File > New Image > Blank Image…
-
Set the options
Name it, for example
Photos Vault. Choose a size with room to spare. Use APFS for the format, 256-bit AES encryption for Encryption, and sparse bundle disk image for Image Format. Apple describes a sparse bundle as a read/write image that grows with the data in it. -
Pick the partition layout
Apple's settings for a secure image list Single partition - GUID Partition Map for Partitions.
-
Choose a password
Enter it twice. Store it in a password manager or on paper. Untick any option that saves it to your keychain. Apple warns that if you forget the password, you cannot open the image or view its files.
-
Save
Pick a location and click Save. You get a
.sparsebundle. -
Use it
Double-click the image and enter the password. It appears as a drive. Drag photos in. Eject it when done. Apple warns that while the image is mounted, anyone with access to your computer can use the files in it.
-
Check before you delete anything
Eject the image, double-click it again, enter the password and open a few photos. Only then delete the originals.
Optional: keep a separate Photos library inside
Quit Photos, hold Option and click the Photos icon in the Applications folder or the Dock. Click Create New in the Choose Library dialog, then choose the mounted image as the place to store it. The library is encrypted while the image is ejected. This works when the image uses APFS or Mac OS Extended. Apple says only the System Photo Library uploads to iCloud, so this second library does not upload. To open it later, mount the image, hold Option while you open Photos and pick it. If it is not listed, click Other Library and browse to it.
The leaks people miss
| Leak | Why it happens | Fix |
|---|---|---|
| Original photos in Photos | Moving a copy leaves the original behind | Delete the original, then empty Recently Deleted. Items stay there about 30 days. Apple says you can delete them early from that album, which may ask for Touch ID or your password. |
| Time Machine | Old backups still hold the plain photos | Delete those photos from past backups, or exclude the folder from now on. Apple says excluded items still appear in local snapshots, so this is not a clean erase. |
| Previews and thumbnails | macOS may cache previews and recent-file names outside the image | Use the image only for storage, and view photos in an app that does not keep history. |
| Spotlight search | A mounted image is a disk, and search may list names from it | Add the mounted image in System Settings > Spotlight > Search Privacy. Apple says you can add a folder or a disk. |
| Recent items | Apple menu > Recent Items lists documents you opened | Choose Clear Menu after a session. |
| The image left mounted | A mounted image is open to anyone at your Mac | Eject it, and lock the screen when you leave. |
| AirDrop, Messages, Downloads | Copies you sent or saved earlier | Search these places and delete the copies. |
| Location data in the files | Phones store GPS in photos | Strip it with the metadata remover before you share. |
Test that the vault works
- Eject the image. It should leave the Finder sidebar and the desktop.
- Double-click the
.sparsebundle. It must ask for the password. If it opens without asking, the password is in your keychain. Make a new image with that option off, then copy the photos across. - With the image ejected, search Finder and Spotlight for the name of a photo you moved in. Nothing should match outside the image.
- Hash one photo with the file hash tool before you move it. Hash the copy inside the image. The values should match.
- Open Photos and look in Recently Deleted. Your deleted originals should be gone or inside the 30-day window.
When something goes wrong
- The image will not open. Check Caps Lock and your keyboard layout, then try again. If you forgot the password, Apple warns that you cannot open the image. Read what recovery is possible.
- Photos cannot find the library. Mount the image first. Hold Option while you open Photos, then choose the library. If it is not listed, click Other Library and browse to it.
- You left the image mounted. Eject it now. In System Settings > Lock Screen, shorten the setting named "Require password after screen saver begins or display is turned off".
- The image sits in a synced folder. Let the sync finish before you copy or move it. Read encrypt files before cloud sync.
Who this vault protects against, and who it does not
- Protects: a person using your Mac while the image is ejected, and someone who copies your disk or backup without the password.
- Does not protect: anyone at your Mac while the image is mounted, or anyone who already knows the password. Malware that records your typing is also out of reach.
- Does not cover: the copies you left in Photos, iCloud, AirDrop or Messages. Read photos you do not want in iCloud and where to store private photos safely.
- A partner who knows your Mac password can open the Hidden album but not an ejected image. See the partner scenario.
What a purpose-built vault changes
Frequently asked questions
What is the easiest way to make a private photo vault on Mac?
An encrypted sparse bundle from Disk Utility. It takes a few minutes and uses AES encryption built into macOS.
Does moving photos in delete them from Photos?
No. Moving a copy leaves the originals. Delete them in Photos and empty Recently Deleted.
Will the vault protect me if I forget to eject?
No. A mounted image is readable. Eject it, and set your Mac to lock the screen quickly.
Can I keep the vault in iCloud Drive?
A sparse bundle works with cloud sync because it is stored in small pieces. It is encrypted before it syncs. Make sure the password is stored somewhere other than the cloud.
Is a vault app better than a disk image?
It can be easier and add features like hidden vaults and a recovery phrase. A disk image is free and built in.
What if I forget the vault password?
Apple warns that you will not be able to open the image or view its files. Keep the password in a password manager or on paper. See the guide on forgotten vault passwords.
Can I put videos in the same vault?
Yes. A disk image holds any files. See how to hide videos on a Mac for the same leaks to check.
References
- Apple Support: Create a disk image in Disk Utility
- Apple Support: Hide photos and videos in Photos on Mac
- Apple Support: Create additional photo libraries in Photos on Mac
- Apple Support: Delete photos and videos or recover deleted ones on Mac
- Apple Support: Exclude files from a Time Machine backup on Mac
- Apple Support: Prevent Spotlight searches in specific folders or disks
- Apple Support: Open recently used items on Mac
- Apple Support: Change Lock Screen settings on Mac
Your files. Your Mac. Locked.
Coming soon. Join the waitlist and we email the link.
Get early access