How to Set a Custom Alphanumeric Passcode on iPhone
Settings > Face ID & Passcode > Change Passcode > Passcode Options lets you pick a custom alphanumeric code. Here are the steps and the trade-offs.
Quick answer
Open Settings, tap Face ID & Passcode, tap Change Passcode, then choose Passcode Options and pick Custom Alphanumeric Code. Apple's own guides rank it as the most secure format your iPhone offers, and the change takes about a minute.
Set a custom alphanumeric passcode
Here is the path, based on Apple's passcode instructions:
- Open Settings and tap Face ID & Passcode. On older iPhones it reads Touch ID & Passcode, and on devices without either it is just Passcode.
- Enter your current passcode, then tap Change Passcode. The default new code is six digits.
- Tap Passcode Options. You can switch to a four-digit numeric code, a custom numeric code, or a custom alphanumeric code.
- Choose Custom Alphanumeric Code, type the new passcode, and confirm it.
Depending on your iOS version, you may then be asked whether the new code should also serve as your iCloud Security Code. MacRumors' walkthrough describes that prompt, though its screenshots are from an older release, so your screens may differ.
If you're on iOS 17 or later, your previous passcode keeps working once for 72 hours as a way to reset the new one. That is a safety net if you forget it, but you can end it early with Expire Previous Passcode Now. Apple's guide to unique passcodes also suggests tapping Review Access, if it appears, to check for settings that could still give someone access.
Numeric or alphanumeric: what actually changes
Apple orders the formats from a four-digit code (least secure) up to a custom alphanumeric code (most secure). A custom numeric code sits in between, and it matters here: Apple's Platform Security guide notes that a longer numeric passcode may be easier to enter than a shorter alphanumeric one, while providing similar security.
So the real variable is length. Do you type your passcode fifty times a day? A long numeric code may suit you better than a short mixed one. If you want the strongest option and don't mind the full keyboard, alphanumeric is it. For the digit side of the debate, see how long a PIN should be.
Why a longer passcode helps
Your passcode isn't just a door lock. Apple says it is entangled with the device's unique ID, so guesses can only be made on the iPhone itself, and each attempt is calibrated to take about 80 milliseconds. After repeated wrong entries the delays grow, from one minute after the fourth attempt up to eight hours at the ninth. The Secure Enclave enforces those delays, and restarting the phone doesn't reset them.
The passcode also adds entropy to the keys that protect your data. More characters and a wider character set mean more possibilities for anyone who somehow gets past those limits.
Choose a passcode you can remember
A strong passcode you forget does you no good. One approach from MacRumors is a few unrelated words strung together, which is long but easier to recall than random symbols. Whatever you pick, Apple's advice is that only you should know it, and it should not be reused on other services.
Before you commit
- Erase Data. In the same settings screen you can choose to erase the iPhone after ten failed attempts. With it off, ten failures mean restoring the device from a computer. Decide which risk worries you more: a thief guessing, or a child or pocket tap locking you out.
- Typing friction. You'll type the code after every restart and whenever Face ID doesn't take. Live with it for a few days, and switch back to a custom numeric code if it grates.
- Lock state. A strong code matters most right after a restart, a topic we cover in what your lock state protects.
Doing this with Privara
A strong passcode guards the whole phone, but sometimes you only want to keep certain things away from someone you've handed the phone to. That's where Privara fits. It's a vault app that holds your photos, videos, documents, and contacts together, all in one AES-256-encrypted vault, so a single place covers all four rather than just your camera roll.
We think it's the best way to keep that content private for a few concrete reasons. It looks and works like an ordinary calculator, and the vault opens only when you enter your PIN. It needs no account, and nothing is uploaded by default. It also adds a decoy PIN, a separate vault behind a different code, and can use Face ID or Touch ID on top of the PIN. If you turn on iCloud sync, your threat model changes, so check what you're syncing first.
Set your passcode, then put what matters behind a second lock: get Privara on the App Store.