iPhone passcode screen with a question hologram — forgot your passcode?

Forgot Your iPhone Passcode? Your Real Options, Ranked from Best to Last Resort

Forgot your iPhone passcode? Here is the honest answer first, before anything else: there is no way to recover or bypass a forgotten passcode on a modern iPhone while keeping its data. Apple designed it that way. The passcode is tied to the encryption that protects everything on the phone, and without the passcode, the data stays locked. If you forgot iPhone passcode and have no backup, the road ahead is erase and restore — nothing else will unlock it.

That means any tool, website, or video that claims to remove a passcode without data loss on current iOS is lying. It may be selling a restore tool dressed up as a magic unlock, or it may be a straight scam. Either way, it cannot do what it promises. What you can do is erase the phone and set it up again from a backup — and this guide ranks those real options from best to last resort, so you lose as little as possible.

If you are also dealing with a phone that will not boot at all, start with our guide to an iPhone stuck on the Apple logo, which covers Recovery Mode and DFU restore in detail. The steps overlap, because the fix for a forgotten passcode is, in the end, the same kind of erase-and-restore. Before you erase anything, check whether a jailbreak is even relevant to your device with our Jailbreak Compatibility Checker — a jailbreak does not recover a passcode, and anyone telling you it does is selling you a scam.

Your Real Options, Ranked from Best to Last Resort

Option 1: Try to remember it — properly

This sounds too simple to be first, but it is first because it is the only option that keeps your data. Take your time, and think like a detective, not like someone guessing at random.

  • Check your password manager. Many people store their iPhone passcode there, or store a note with it.
  • Check your notes app, your email, and any place you might have written the code down when you set it.
  • Think about codes you reuse: your old phone’s passcode, a bank PIN, a birthday, or a pattern you use elsewhere.
  • Try the codes you actually use, in the order you would have used them — do not just tap numbers at random.

Be careful with repeated wrong guesses. After too many failed attempts, the iPhone will lock you out for a period, and eventually it will show the Security Lockout screen. That screen is not a dead end — it is Option 2.

Option 2: Use the Security Lockout Erase iPhone option (iOS 15.2 and later)

If your iPhone shows a Security Lockout screen after too many wrong attempts, look for an Erase iPhone option at the bottom of the screen. This is Apple’s own built-in way out, and it is the easiest erase option because you do not need a computer.

Tap Erase iPhone, enter your Apple ID password when asked, and confirm. The phone will erase itself and restart to the setup screen. You will need your Apple ID and password to do this — that is by design, so a thief cannot erase your phone and use it as their own. After the erase, you can set the phone up again and restore from your iCloud backup, if you have one.

Option 3: Recovery Mode restore with Finder or iTunes

If the Security Lockout option is not available — for example, if your phone is on an older iOS version, or if you cannot get to that screen — use a computer. Connect the iPhone to a Mac or a Windows PC, put it into Recovery Mode, and restore it.

  1. Connect the iPhone to your computer with a cable. On a Mac running macOS Catalina or later, open Finder. On older Macs and on Windows, open iTunes.
  2. Put the phone into Recovery Mode: on iPhone 8 and later, press and quickly release Volume Up, press and quickly release Volume Down, then press and hold the Side button until you see the Recovery Mode screen. On iPhone 7, hold Volume Down and Sleep/Wake together. On iPhone 6s and iPhone SE (1st generation), hold Home and Sleep/Wake together.
  3. When Finder or iTunes asks, choose Restore. This erases the phone and installs a fresh copy of iOS.
  4. When the restore finishes, set the phone up from your iCloud backup or your computer backup.

This is the same Recovery Mode restore we describe in our Apple logo guide, and it is the most reliable option when the on-device erase is not available. The cost is the same: the phone is erased, and only a backup brings your data back.

Option 4: Erase it from iCloud.com Find My

If you cannot use the phone itself and you do not have a computer nearby, you can erase the phone remotely from another device. Go to iCloud.com, sign in with the Apple ID that is on the locked phone, open Find My, choose the iPhone, and choose Erase This Device.

This also erases the phone. It is useful when the phone is lost or stolen as well as when you have simply forgotten the code — and it is also why a thief cannot just erase your phone and use it, because Activation Lock, covered below, stays on until your Apple ID is entered.

Option 5: Apple Support or an Apple Store, with proof of purchase

If none of the above works — for example, if you cannot sign in to your Apple ID, or you cannot get the phone into Recovery Mode — Apple Support or an Apple Store is the last resort. Bring proof of purchase and photo ID, and be ready to prove the phone is yours. Apple can help you erase the phone and, if you can prove ownership, can help with account recovery.

Activation Lock: What Happens After You Erase

Erasing the phone does not remove Activation Lock. After any of the erases above, the phone will ask for the Apple ID and password that were on it before the erase. That is your Apple ID — the one you used for Find My and iCloud on that phone.

This is the part that catches people out. If you do not know your Apple ID password, you will need to recover that account first, through Apple’s account recovery process. Nobody legitimate can remove Activation Lock for a phone you cannot prove is yours — not Apple, not a repair shop, and not a piece of software. Any site that promises to remove iCloud Activation Lock or bypass it for a fee is a scam, and it is also the same kind of promise that our guide to fake jailbreak scams to avoid warns about. If you bought a second-hand phone and it is Activation Locked to someone else’s account, only that person — or Apple, with proof of purchase from the original owner — can remove it.

Every Option Compared

OptionKeeps your data?Needs a computer?Difficulty
Try to remember it / check password managerYes — the only one that doesNoEasy
Security Lockout Erase iPhone (iOS 15.2+)No — erasesNoEasy
Recovery Mode restore (Finder / iTunes)No — erasesYesMedium
iCloud.com Find My eraseNo — erasesNo, use another deviceEasy
Apple Support / Store with proof of purchaseNo — erasesNoMedium

Third-Party Unlocker Software: What It Really Does

You will also see third-party unlocker software advertised as a way to remove a passcode. Here is the honest description. The legitimate ones are, in effect, guided restore helpers: they walk you through putting the phone into Recovery Mode and restoring it, and they erase the phone in the process — exactly the same result as using Finder or iTunes yourself, with a nicer interface and a price tag.

The scam ones are different. They promise to remove the passcode without data loss, or to bypass iCloud Activation Lock, or to unlock a phone that is not yours. They cannot do any of those things on a modern iPhone, and the sites that sell them are often the same sites that sell fake jailbreaks. Do not pay for a promise that Apple itself says is impossible. If you can use iTunes, you do not need a paid unlocker at all.

Prevention: Never Lose Your Data to a Forgotten Passcode Again

  • Use Face ID or Touch ID: set it up, and use it every day, so you type your passcode less often — but still type it sometimes, so you do not forget it.
  • Store the passcode in a password manager: write it down in a secure password manager, not on a sticky note and not in an unprotected note on your phone.
  • Keep a backup: turn on iCloud Backup, or back up to your computer regularly. A backup is what turns an erase from a disaster into an hour of setup.
  • Know your Apple ID: make sure you know your Apple ID and password, and that your recovery contact or recovery key is set up before you need it.
  • Choose a code you will remember: a six-digit code you can recall is better than a long code you have to write down and lose.

Frequently Asked Questions

Forgot iPhone Passcode and have no backup — what then?

Erase the phone with one of the options above and set it up as new. Without a backup, the data on the phone is gone, and no tool can bring it back. Set up iCloud Backup on the fresh phone so this never happens again.

Can Apple unlock my iPhone if I forgot the passcode?

Apple cannot recover your passcode or your data. Apple can help you erase the phone, and can help with account recovery if you have forgotten your Apple ID password, with proof of purchase. That is the limit.

Will jailbreaking help me recover a forgotten passcode?

No. Jailbreaking does not bypass a passcode or Activation Lock, and a phone that is locked out cannot be jailbroken in any useful way to recover data. Anyone who tells you otherwise is running a scam — see our guide to fake jailbreaks for the patterns to watch for.

The Bottom Line

If you forgot your iPhone passcode, the honest ranking is simple: try to remember it first, because that is the only way to keep your data. If you cannot, erase the phone — with the Security Lockout option, a Recovery Mode restore, or Find My — and set it up from your backup. If you do not have a backup, the data is gone, and no tool, shop, or website can change that.

That is a hard answer, and it is why prevention matters so much. Store the passcode in a password manager, use Face ID, know your Apple ID, and keep a backup turned on. The next time a passcode slips your mind, it will be a ten-minute annoyance — not a lost phone full of photos.

Scroll to Top