If you’ve forgotten your iPhone 5s passcode, the only official way to regain access is to erase the device and restore it from a backup or set it up as new. This process removes the passcode and all data on the phone, so it’s essential to have a recent backup. Below, we explain the exact steps for each method, what to do if you never backed up, and how to avoid common pitfalls.
Why You Can’t Just “Bypass” the Passcode
The iPhone 5s, like all modern iPhones, uses hardware-based encryption. Your passcode is tied to a unique key that’s stored in the Secure Enclave—a dedicated security chip. Without the correct passcode, the system cannot decrypt your data. This is a deliberate security feature: it prevents anyone (including Apple) from accessing your files without your passcode. As a result, there is no hidden backdoor or software trick that can unlock the phone while preserving its data. The only way to get back in is to erase the device, which resets the encryption key and allows you to set a new passcode.
Method 1: Erase with iTunes (or Finder)
This is the most straightforward method if you have previously synced your iPhone 5s with a computer. It works even if the phone is disabled (showing “iPhone is disabled” message). Here’s what to do:
- Connect your iPhone 5s to the computer you normally sync with, using a USB cable.
- Open iTunes (on Windows or macOS Mojave and earlier) or Finder (on macOS Catalina and later).
- If asked to trust the computer, tap “Trust” on your iPhone (if you can’t, skip this step—the next step will still work).
- Select your iPhone when it appears in the app.
- Click “Restore iPhone…” in the Summary panel.
- Confirm that you want to restore. iTunes/Finder will download the latest iOS software for your device and erase it.
- After the restore finishes, you’ll see the “Hello” screen. You can then set up your iPhone as new or restore from a backup.
If your iPhone 5s is disabled and you’ve never synced with this computer, you’ll need to put it into Recovery Mode first (see below).
Method 2: Use Recovery Mode
Recovery Mode is a fallback that works even if you’ve never synced with the computer. It forces your iPhone to enter a state where iTunes/Finder can restore it. This method also works if your iPhone is disabled or if the screen is stuck on the passcode screen. Here are the steps:
- Turn off your iPhone 5s. If you can’t turn it off normally (because it’s disabled), press and hold the Sleep/Wake button and the Home button together for about 10 seconds until the power-off slider appears, then slide to power off. If that doesn’t work, just proceed to the next step.
- Connect your iPhone to your computer with a USB cable, but don’t open iTunes yet.
- Press and hold the Home button (the round button on the front) while connecting the cable. Keep holding the Home button until you see the Connect-to-iTunes screen (a Lightning cable pointing to a computer icon).
- Release the Home button. Your iPhone is now in Recovery Mode.
- Open iTunes or Finder. You’ll see a pop-up saying your iPhone is in Recovery Mode and needs to be restored.
- Click “Restore” to erase your iPhone and install the latest iOS.
After the restore, your iPhone will restart and show the “Hello” screen. You can then set it up as new or restore from a backup.
Method 3: Use iCloud Find My iPhone (If Enabled)
If you had “Find My iPhone” turned on before you forgot the passcode, you can erase your device remotely using iCloud.com. This is useful if you don’t have access to a computer with iTunes. Here’s how:
- Go to iCloud.com/find on any web browser and sign in with your Apple ID.
- Click “All Devices” at the top, then select your iPhone 5s.
- Click “Erase iPhone”. This will remotely wipe your device, removing the passcode.
- After the erase completes, you can either set up your iPhone as new or restore from an iCloud backup (if you have one).
Note: This method requires that your iPhone is connected to the internet (Wi-Fi or cellular) and that Find My iPhone is enabled. If your iPhone is offline, the erase will happen the next time it connects.
What If You Never Backed Up?
If you never backed up your iPhone 5s, the only way to regain access is to erase it, which means you’ll lose all your photos, messages, contacts, and other data. There’s no official way to recover data from a passcode-locked iPhone without a backup. Some third-party tools claim to bypass the passcode, but they are not reliable and often require a computer that has previously been trusted with the device. Even then, they typically only work on older iOS versions and may not preserve data. The safest approach is to regularly back up your iPhone using iCloud or iTunes/Finder so you can restore your data after a forgotten passcode.
Common Problems and Misconceptions
- “iPhone is disabled, try again in 15 minutes” – This is a temporary lockout. You can wait, but if you keep trying wrong passcodes, the lockout period increases, eventually leading to “iPhone is disabled, connect to iTunes.” At that point, you must erase the device.
- “I can use Siri to bypass the passcode” – There were old tricks that used Siri or VoiceOver to access contacts or the clock, but these have been patched for years. They don’t work on iOS 9 or later, which is the latest iOS the iPhone 5s supports (iOS 12.5.7).
- “I can use a third-party tool to unlock without erasing” – Some tools claim to unlock a disabled iPhone without erasing, but they usually require the phone to be in Recovery Mode, which still erases the device. Others may ask for a computer that has previously been trusted, which is rare. These tools are not guaranteed to work and can be risky.
- “I can reset the passcode by restoring from a backup” – Restoring from a backup does not remove the passcode from the backup itself. If you restore a backup that was made when the passcode was set, the passcode will still be required. You must erase the device first, then restore the backup.
How to Avoid This in the Future
The best way to avoid the stress of a forgotten passcode is to take preventive measures:
- Use a passcode you can remember, but avoid obvious ones like 1234 or your birth year.
- Enable Touch ID (fingerprint) on your iPhone 5s so you can unlock without typing the passcode most of the time.
- Set up iCloud Backup and/or regularly sync with iTunes/Finder. This ensures you have a recent backup to restore after an erase.
- Write down your passcode and store it in a secure place, like a password manager.
- Consider using a longer alphanumeric passcode (Settings > Touch ID & Passcode > Change Passcode > Passcode Options) for better security, but make sure you can remember it.
Frequently Asked Questions
Will erasing my iPhone 5s remove the passcode?
Yes, erasing the device removes the passcode and all data. After the erase, you’ll be able to set up your iPhone as new or restore from a backup, and you’ll be asked to create a new passcode.
Can I unlock my iPhone 5s without a computer?
If you have Find My iPhone enabled, you can erase it remotely via iCloud.com from any browser. If not, you’ll need a computer with iTunes or Finder to restore the device.
What if I forgot my Apple ID password too?
If you also forgot your Apple ID password, you’ll need to reset it first (at iforgot.apple.com) before you can use iCloud or restore from a backup. If you can’t reset it, you may be unable to use the phone after the erase, as it will ask for the Apple ID password during setup (Activation Lock).
Will I lose my photos and contacts if I erase my iPhone?
Yes, unless you have a backup. If you have an iCloud backup or an iTunes/Finder backup, you can restore that backup after the erase to get your photos, contacts, and other data back.
Is there any way to bypass the passcode without erasing?
No, not officially. Apple’s security design makes it impossible to decrypt the device without the correct passcode. Any third-party tool that claims to do so is either a scam or only works in very limited, outdated circumstances.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- Factory Reset on Samsung Galaxy: What It Erases