An Apple Recovery Key is a 28-character code that lets you regain access to your Apple Account (formerly Apple ID) if you forget your password or lose access to your trusted devices. It is not a backup of your data and it does not unlock your iPhone or Mac — it only proves you are the account owner so you can reset the password. You set it up yourself in advance; if you never turned it on, you do not have one and cannot generate one after the fact. To use it, enter it when Apple asks for it during account recovery, then immediately sign in and create a new password.

What You'll Need

  • Your Apple Account email address and password (or access to a trusted device signed in to the account).
  • The 28-character Recovery Key, written down or stored somewhere safe and offline. Apple shows it only once when you generate it.
  • A device running a current version of iOS, iPadOS, macOS, or a browser signed in at appleid.apple.com — menu labels vary slightly by version, device, and region.
  • A way to receive a verification code (trusted phone number or trusted device) unless you are using the key specifically because those are unavailable.

Step-by-Step

  1. Decide whether you need account recovery at all. If you can still sign in with your password, you do not need the Recovery Key — go to your account settings and change the password normally. The key is for the case where you are locked out.
  2. Generate a Recovery Key (do this before you need it). On iPhone or iPad: open Settings, tap your name at the top, then tap Sign-In & Security (older versions call it Password & Security), then Account Recovery, then Recovery Key, and turn it on. On Mac: open System Settings, click your name, click Sign-In & Security, then Account Recovery, then Recovery Key. On the web: sign in at appleid.apple.com, go to Sign-In and Security, then Account Recovery.
  3. Write the key down exactly as shown. It is 28 characters, usually grouped with hyphens. Copy it character by character onto paper and store the paper somewhere private — not in a photo on the same phone, not in a note synced to the same account.
  4. Confirm the key. Apple asks you to re-enter it to prove you recorded it correctly. If you mistype, you will be shown the key again; do not proceed until the confirmation succeeds.
  5. When you are locked out, start account recovery. On the lock screen or sign-in screen, tap or click "Forgot password or don't have an Apple Account?" (wording varies), then follow the prompts. If your account has a Recovery Key enabled, Apple offers the option to use it.
  6. Enter the Recovery Key when prompted. Type all 28 characters. Hyphens are usually optional; if the field rejects the key, retype it slowly and check look-alike characters (0 vs O, 1 vs I, 8 vs B).
  7. Create a new password immediately. Once the key is accepted, you will be asked to set a new Apple Account password. Choose one you have not used before, then sign in on each of your devices so they stay trusted.
  8. Regenerate the key if you are worried it was exposed. Sign in, go back to Account Recovery in settings, turn the Recovery Key off and on again to get a fresh 28-character code, and destroy the old written copy.

Common Mistakes

  • Confusing the Recovery Key with a device passcode or Screen Time passcode. They are different things; the Recovery Key never unlocks a phone by itself.
  • Storing the key only on the device it protects. If that phone or Mac is lost, stolen, or wiped, the key goes with it. Keep a paper copy somewhere else.
  • Assuming you can generate a key after you are locked out. You cannot. The key must be turned on while you still have access, so set it up now if you have not.
  • Mistyping characters. The code contains letters and digits that look alike. Read each character aloud as you type.
  • Thinking the key restores data. It restores account access only. Your photos, messages, and backups depend on iCloud and on your devices, not on the key.
  • Sharing the key. Anyone with the key and your account email can take over the account. Treat it like a password.

Tips

  • Set up the Recovery Key and at least one account recovery contact at the same time, so you have two independent ways back in.
  • Store the written key in a locked drawer, safe, or with a trusted family member — not in cloud notes tied to the same account.
  • Re-check your trusted phone number and trusted devices periodically; outdated ones are a common reason recovery stalls.
  • If you use a password manager, you can store the key there as a secure note, but keep the paper copy too.
  • After any recovery, review your account's devices and sign out any you do not recognize.

Troubleshooting

The key is rejected. Retype it slowly, checking 0/O, 1/I/l, 5/S, 8/B, and 2/Z. If you have tried several times, wait — repeated failed attempts can trigger a longer recovery wait. Make sure you are entering the key for the correct Apple Account.

You never set up a Recovery Key. You cannot create one while locked out. Use account recovery instead: start from the sign-in screen, follow the prompts, and use a trusted phone number or a recovery contact. If none are available, Apple's account recovery process may take several days while it verifies you.

You lost the written key. If you can still sign in, turn the Recovery Key off and back on to generate a new one, then destroy the old copy. If you cannot sign in and have no key, you must go through standard account recovery.

Recovery is taking days. This is normal when Apple cannot verify you quickly. Do not start over repeatedly — each new request can reset the clock. Keep the device and phone number you used available.

Two-factor authentication is also a problem. If you cannot receive codes and have no key, account recovery is the only official route. Do not use third-party "unlock" services; they cannot access Apple's account systems and often take your money.

Frequently Asked Questions

Is the Apple Recovery Key the same as my iPhone passcode?

No. The passcode unlocks the device; the Recovery Key only helps you regain your Apple Account when you are locked out.

Can I get a Recovery Key after I'm locked out?

No. It must be turned on in advance while you still have account access. After a lockout, use account recovery instead.

Does the Recovery Key back up my photos and messages?

No. It restores account access only. Your data depends on iCloud backups and your devices, not on the key.

What happens if someone else gets my Recovery Key?

They could use it with your account email to try to take over the account. If you suspect exposure, sign in and regenerate the key right away, then change your password.

Can I use the Recovery Key on any Apple device?

You can enter it during account recovery on iPhone, iPad, Mac, or through Apple's web sign-in flow. The exact screens differ by version and region.

Does turning on a Recovery Key remove my recovery contacts?

No. Recovery contacts and the Recovery Key can both be active; having both gives you more ways back into the account.