How to lock apps on a Mac
macOS has no built-in way to lock an app behind Touch ID or a password. To lock apps on a Mac, install a free app lock like Fortify, pick the apps, and they ask for Touch ID or a PIN every time they open. Here's how, plus what macOS can do on its own.
By mambacodes ยท Updated
Short answer:
- Download Fortify. Download the free Fortify .dmg from the latest release on GitHub, open it and drag Fortify into Applications.
- Create a PIN. Open Fortify and choose a 4 or 6 digit PIN. Touch ID works too; the PIN is the backup, and it works with the lid closed.
- Allow Accessibility. When asked, allow Fortify under System Settings > Privacy & Security > Accessibility. macOS needs this before one app can hide another.
- Switch on the apps to lock. Fortify lists the apps installed on your Mac by category. Turn on the switch next to each app you want locked, such as Messages, WhatsApp or Photos.
- Open a locked app. The app hides at once and a card drops from the notch. Unlock it with Touch ID or your PIN, and the app comes back where you left it. It locks again when you close, hide or minimize it, or when your Mac sleeps.
Can a Mac lock apps on its own?
Partly. macOS can lock your whole account, and a few Apple apps can lock some of what's inside them. What it can't do is put a password or Touch ID in front of any app you choose. These are the built-in options and where each one stops:
- Lock screen. Press Control-Command-Q to lock your Mac. It protects everything, but you can't hand your Mac to someone while it's locked.
- Notes. You can lock single notes with your Mac login password or a separate password, and unlock them with Touch ID. The Notes app itself, and every unlocked note, stays open.
- Photos. The Hidden and Recently Deleted albums ask for Touch ID or your password (Photos > Settings > General). The rest of your library stays open.
- Screen Time. An App Limit with a Screen Time passcode blocks an app once its daily time is used up. Set the limit to one minute and it acts a bit like a lock, but it's built for limiting time, not for privacy: the app opens freely until the minute runs out, and it uses a passcode instead of Touch ID.
- A separate user account. The strongest option when someone uses your Mac often: give them their own account or turn on the Guest User. It's also the most hassle for a quick "can I check something?"
For anything in between, like lending your Mac for a minute without someone reading your messages, you need an app lock.
How to lock any app with Touch ID, step by step
Fortify is a free, open-source app lock for Mac. It runs in the menu bar and locks the apps you pick. It works on macOS 14 Sonoma or later, on Apple silicon and Intel Macs.
1. Download Fortify
Download the free Fortify .dmg from the latest release on GitHub, open it and drag Fortify into Applications. Get the latest release. The app is signed and notarized by Apple, so it opens like any other download.
2. Create a PIN
Open Fortify and choose a 4 or 6 digit PIN. Touch ID works too; the PIN is the backup, and it works with the lid closed.
3. Allow Accessibility
When asked, allow Fortify under System Settings > Privacy & Security > Accessibility. macOS needs this before one app can hide another.
4. Switch on the apps to lock
Fortify lists the apps installed on your Mac by category. Turn on the switch next to each app you want locked, such as Messages, WhatsApp or Photos.

5. Open a locked app
The app hides at once and a card drops from the notch. Unlock it with Touch ID or your PIN, and the app comes back where you left it. It locks again when you close, hide or minimize it, or when your Mac sleeps.

To lock an app you're using right away, press Control-Command-L. To lock everything at once, choose Lock All Apps Now from the Fortify menu bar icon.
Locking specific apps
Fortify locks any app on your Mac the same way. A few notes on the apps people ask about most:
How to lock WhatsApp on a Mac
Switch on WhatsApp in Fortify. Opening WhatsApp from the Dock, Spotlight or a notification brings up the unlock card first, and WhatsApp stays hidden until you unlock it. If you use WhatsApp Web, install it as a web app from Chrome, Edge, Brave or Safari and lock that too; Fortify lists installed web apps alongside regular ones.
How to lock Messages (iMessage) on a Mac
Switch on Messages. Messages has no lock of its own on macOS, so this is the way to keep iMessage and SMS conversations private when someone else is using your Mac. FaceTime can be locked the same way.
How to lock the Photos app on a Mac
Photos only locks its Hidden and Recently Deleted albums. To lock the whole library, switch on Photos in Fortify; the Hidden album keeps its own Touch ID lock on top.
How to lock the Notes app on a Mac
Locking single notes in Notes protects those notes only. Locking the Notes app in Fortify keeps every note, folder and tag out of sight until you unlock it.
How to lock Mail on a Mac
Switch on Mail, or whichever mail app you use, such as Outlook or Spark. Notification banners come from macOS, not the app, so to keep new-mail previews private too, set Show Previews to "Never" for that app in System Settings > Notifications.
How to lock Safari, Chrome or another browser on a Mac
Switch on the browser in Fortify. Locking it keeps your history, open tabs and signed-in accounts private. Web apps you installed from that browser, such as Gmail or WhatsApp Web, show up as separate apps you can lock on their own.
How to lock System Settings on a Mac
Switch on System Settings so nobody can open it and change how your Mac is set up without unlocking first.
What an app lock does and doesn't protect
An app lock keeps people who are using your Mac out of the apps you choose: a friend borrowing it, a colleague at your desk, a child. It isn't encryption. Someone signed in to your Mac account with time and know-how could quit the lock or read app data from disk. For that, turn on FileVault and give other people their own user account. Because Fortify is open source, you can read exactly how it works.
Questions
Can you put a password on an app on a Mac?
Not with macOS alone. macOS has no setting that makes an app ask for a password before it opens. A free app lock such as Fortify adds that: pick the app, and it asks for Touch ID or a PIN every time it opens.
How do I lock an app with Touch ID on a Mac?
Install Fortify, set a PIN, and switch on the app you want to lock. From then on, opening that app shows a card that asks for Touch ID, with your PIN as a backup.
Is hiding an app the same as locking it?
No. Hiding an app with Command-H or minimizing it only moves it out of sight. Anyone can click it in the Dock and it comes straight back. A locked app asks for Touch ID or a PIN first.
Should the app lock PIN be different from my Mac password?
It can be, and that is the point: you can share your Mac login with someone without giving them your apps. Keep in mind that your Mac password can reset the PIN (that is how "Forgot PIN?" works), so an app lock protects against people using your Mac, not against someone who knows your Mac password. For that, give them their own user account.
Comparing app lockers? See the best app lock for Mac, which compares Fortify, MakLock, AppCrypt, AppLocker and Screen Time.