Cyberkracht

Smartphone securityiPhone

Use a strong passcode on your iPhone

Your passcode protects your device and also switches on data protection on the iPhone. Here is how to choose and keep a code that nobody can guess.

Beginner · 4 min read

Your iPhone holds your messages, photos, e-mail, banking app and often access to your other accounts. The passcode is the key to all of that. Anyone who knows your code and gets hold of your device can open almost everything, even if you rely on Face ID or Touch ID as extra security. A passcode also switches on the device's data protection. Without a code, that protection is much weaker.

Many people choose a simple code such as 1234 or their year of birth, because it is easy to remember. Those are exactly the codes that get tried first.

Basic security

Basic security

  • Use a passcode that others do not know.
  • Use Face ID or Touch ID where appropriate.
  • Do not let anyone watch while you enter your code.
  • Change the code if you suspect someone knows it.

How to choose a good code

Changing your passcode

  1. Open Settings on your iPhone.
  2. Choose Face ID & Passcode or Touch ID & Passcode, and enter your current code.
  3. Choose the option to change the passcode.
  4. Preferably choose a longer code or an alphanumeric code instead of a short numeric code.
  5. Enter the new code twice and test it after locking the device.
Screenshot of the Face ID & Passcode screen on an iPhone with the option to change the passcode, without real data
The option is in Settings under Face ID & Passcode.

Tip: Choose a long code made of a few words, or a sentence that has nothing to do with you. It is harder to guess and still easy to remember.

A concrete example

You type in your passcode on a busy terrace and someone at the next table is watching. A little later you leave your iPhone behind and someone takes it. Because that person saw the code, they can unlock the device and get into your e-mail and banking app. If you had shielded the code with your hand, or chosen something other than the well-known combination, it would have been much harder.

Watch out: Never give your passcode to anyone who contacts you or phones you, even if they claim to be your bank, the police or Apple. A genuine service will never ask for it.

Common mistakes

Avoid this

  • Using a code such as 1234, 0000 or your year of birth.
  • Using the same code as for your bank card or other devices.
  • Sharing the code with friends, colleagues or family.
  • Writing the code down and keeping it with the device.
  • Not daring to tell anyone that someone has seen your code.

What if it goes wrong anyway?

Do you suspect that someone knows your code, or have you lost your device? Change the code immediately if you still have access. Also change the passwords of your most important accounts from a safe device and switch on two-step verification. Read our pages My account has been hacked and What to do if a password has leaked. You can read more about extra protection for your apps at Lock sensitive apps on your iPhone. You can find more help at I am a victim.

Frequently asked questions

Is Face ID or Touch ID enough?
No. Your passcode is still needed as a back-up and in certain situations, for example after a restart. So choose a strong one.

How long should my code be?
The longer, the better. A longer code, or a code with letters, is much harder to guess than a short numeric code.

What if I forget my code?
Follow Apple's official recovery procedure. Look up Apple's help page yourself and do not use a link from a message.

Test your resilienceApple: setting a passcode(opens in a new tab)

Log in to save your reading progress.