How to Password Protect a Folder on Mac (3 Easy Ways)
Learn three ways to protect files and folders on macOS: using Disk Utility, Terminal, and Finderlock, the easiest Mac-native option.
If you're a Mac user handling sensitive files—whether personal documents, client projects, or private research—you've probably wondered how to lock a folder with a password. While macOS includes some built-in options, they are either hidden behind advanced tools or too broad, like full-disk encryption. In this guide, we'll show you three effective ways to protect individual files and folders: Disk Utility, the Terminal command line, and Finderlock, a native Mac app designed for seamless file security.
Method 1: Using Disk Utility (built-in but clunky)
Apple includes Disk Utility, which lets you create an encrypted disk image of a folder.
- Open Disk Utility.
- Go to File > New Image > Image from Folder.
- Select the folder you want to protect.
- Choose "128-bit" or "256-bit AES encryption" and set a password.
- Save the
.dmg
file.
Pros: Secure, built into macOS.
Cons: Slow, duplicates folders, requires mounting/unmounting every time.
Method 2: Using Terminal (powerful but not user-friendly)
Advanced users can use the hdiutil
command to make an encrypted sparsebundle:
hdiutil create -encryption -stdinpass -size 100m -volname "Secure" -fs APFS -type SPARSEBUNDLE ~/Desktop/Secure.sparsebundle
This creates a protected bundle where you can drop files.
Pros: Full control, scriptable.
Cons: Requires command line comfort, mistakes can be frustrating.
Method 3: Using Finderlock (the simplest, most Mac-native way)
Finderlock was built for people who want true file-level protection without the friction. Instead of creating manual disk images or fiddling with Terminal, Finderlock integrates directly into Finder with right-click options.
- Choose "Protect with Finderlock" from Finder.
- Secure it with Touch ID or a password.
- Files auto-lock after inactivity, sleep, or logout (depending on your plan).
Key Finderlock Features
- AES-256 encryption
- Password or Touch ID authentication
- Auto-lock timers and smart rules
- Menu bar dashboard
- Secure file shredder (Pro)
- Local-only operation (files never leave your Mac)
The Free plan lets you protect up to 3 items with a fixed 30-minute auto-lock. Upgrading unlocks unlimited items, advanced auto-lock rules, bulk operations, and pro features like secure shredding and AppleScript/CLI automation.
Conclusion
If you only need occasional folder encryption, Disk Utility or Terminal can get the job done, though with inconvenience. But if you value speed, simplicity, and a truly Mac-native experience, Finderlock makes protecting sensitive files effortless. Start free with up to three protected items, and upgrade anytime for advanced features and unlimited protection.
Forever free plan included. Works offline. macOS Ventura 13.1+ recommended.