Use Face ID, Touch ID, or a Custom Code to Protect Specific Apps
You can lock individual apps on your iPhone so that opening them requires your face, fingerprint, or a four-digit code. This works separately from your device password — someone with your iPhone passcode still cannot open a locked app without the right biometric or app-specific password. The feature is built into iOS and works on most iPhone models from iPhone X onward, plus some older models depending on your iOS version.
The process takes about one minute per app. You choose which apps to lock and which authentication method to use for each one. You can lock Mail but not Messages, or require Face ID for Banking but a code for Photos — the settings are independent for every app.
Key Takeaways
- App-level locks use Face ID, Touch ID, or a four-digit code and work independently from your device passcode.
- You turn on app locks in Settings under Face ID & Passcode (or Touch ID & Passcode on older models), then select which apps to protect.
- Locking an app hides its notifications and preview text until you unlock it, even if someone has your device passcode.
- If you forget the four-digit code for an app, you can reset it using your device passcode or Apple ID in the same settings menu.
How to Lock an App Using Face ID or Touch ID
Open Settings and scroll down to find Face ID & Passcode (or Touch ID & Passcode on iPhone models without Face ID). Tap it and enter your device passcode when prompted. Scroll down past the Face ID or Touch ID section until you see Apps or App Lock — the exact label depends on your iOS version.
Tap the toggle next to any app name to turn on the lock. A menu will appear asking which authentication method you want: Face ID, Touch ID, or a custom four-digit code. Choose one. The app is now locked — the next time someone opens it, they will see the authentication screen before the app launches.
You can lock multiple apps and use different methods for each one. For example, you might use Face ID for Mail but a code for Photos. Each app's lock setting is independent.
How to Lock an App With a Custom Four-Digit Code
Follow the same steps as above: Settings > Face ID & Passcode > enter your device passcode > scroll to Apps. Tap the toggle next to the app you want to lock. When the authentication menu appears, select Custom Code.
You will be asked to create a four-digit code. Enter four digits, then enter them again to confirm. This code is separate from your device passcode — you can use the same digits if you want, but you do not have to. Write the code down somewhere safe, because if you forget it, you will need your device passcode or Apple ID to reset it.
A custom code is useful if you want to lock an app but do not want to use your face or fingerprint every time you open it. The tradeoff is that a code is easier to guess than biometrics, so it offers less security.
What Happens When an App Is Locked
When you lock an app, three things change when ready. First, opening the app requires authentication — Face ID, Touch ID, or the code you set. Second, notifications from that app will not show a preview of the message or content until you unlock the app. Third, Siri will not show information from that app in search results or on the lock screen.
This means if someone picks up your iPhone and tries to open a locked app, they see only the authentication screen. They cannot read your email preview, see your message content, or access any data inside the app without passing the lock. The lock persists even if someone knows your device passcode.
How to Change or Remove an App Lock
Go back to Settings > Face ID & Passcode > enter your device passcode > Apps. Find the app you want to change. Tap the toggle to turn the lock off, or tap the app name itself to change the authentication method.
If you want to switch from a code to Face ID, or from Touch ID to a code, tap the app name and select the new method. You will not need to enter the old code — iOS will ask you to set up the new authentication right away. If you want to remove the lock entirely, tap the toggle to turn it off.
What to Do If You Forget Your App Lock Code
If you set a custom four-digit code and forget it, you have two options. Go to Settings > Face ID & Passcode > enter your device passcode > Apps > tap the app with the forgotten code. You will see an option to Reset Code or Unlock with Face ID. Tap it and authenticate with your device passcode or Apple ID.
If you cannot remember your device passcode either, you will need to reset your iPhone through Settings > General > Transfer or Reset > Reset > Erase All Content and Settings. This erases your device, so use this only as a last resort. After setup, you can set new locks on your apps.
Which iPhones and iOS Versions Support App Locks
App Lock is available on iPhone X and newer models running iOS 17 or later. If you have an older iPhone or an older version of iOS, this feature is not available. You can check your iOS version in Settings > General > About and look for the number next to Software Version.
If your device supports the feature but you do not see the Apps section in Face ID & Passcode, make sure you are running the latest iOS version. Go to Settings > General > Software Update and install any available updates.
Frequently Asked Questions
Can I lock some apps but not others?
Yes. You choose which apps to lock individually. You can lock Mail and Photos but leave Messages, Safari, and Calendar unlocked. Each app has its own toggle in the Apps section of Face ID & Passcode settings.
What if someone knows my device passcode but I have an app locked?
They still cannot open the locked app without the app-specific authentication. App locks are separate from your device passcode, so knowing one does not unlock the other. This is the main reason to use app locks — they protect sensitive apps even if your device passcode is compromised.
Can I use the same code for multiple apps?
Yes. When you set a custom code for an app, you can use any four-digit combination. If you want the same code on multiple apps, you can enter it for each one. However, using different codes for different apps is more find.
Does locking an app hide it from the home screen?
No. The app still appears on your home screen and in the app library. Locking only requires authentication when you try to open it. If you want to hide an app completely, you can move it to a hidden folder or use the App Library's hide feature, which is a separate setting.
What happens to app locks if I restart my iPhone?
App locks remain active after a restart. You will still need to authenticate to open locked apps. The locks do not reset or turn off when your device restarts.