If you’ve forgotten your iPhone passcode, you might think the only option is a factory reset that wipes everything. That’s not always true. This guide covers the legitimate methods to regain access to your device without erasing your data, including using your Apple ID, a trusted computer, or a previous iTunes or Finder backup. You’ll need your Apple ID and password, and ideally a computer you’ve previously used to sync or back up your iPhone.
What You’ll Need
- Your Apple ID and password (the one used on the iPhone)
- A computer (Mac or Windows) with the latest version of iTunes or Finder (macOS Catalina or later)
- A USB cable compatible with your iPhone
- If you have a backup (iCloud or computer), you’ll need the backup password if it was encrypted
- If using iCloud, a second trusted device or access to a web browser
Step-by-Step
Method 1: Use iCloud Find My (If Find My iPhone is Enabled)
- On a computer or another device, go to iCloud.com/find and sign in with your Apple ID.
- Click All Devices at the top, then select your locked iPhone.
- Click Erase iPhone. This will erase the device and remove the passcode. Note: This does erase your data, but if you have an iCloud backup, you can restore it after.
- After the erase completes, you can restore from your most recent iCloud backup when setting up the phone. This is not a no-erase method, but it’s the only official way if you don’t have a computer backup.
Important: This method erases your iPhone. It’s included because it’s the only way to regain access if you don’t have a computer backup. If you want to avoid erasing entirely, skip to Method 2 or 3.
Method 2: Restore from a Computer Backup (No Data Loss)
- Connect your iPhone to the computer you normally sync with (the one that has your backup).
- Open Finder (macOS Catalina or later) or iTunes (Windows or earlier macOS).
- If prompted, trust the computer on your iPhone (but you can’t because it’s locked – this method only works if you’ve previously trusted this computer).
- In Finder or iTunes, select your device when it appears.
- Click Restore Backup.
- Choose the most recent backup that doesn’t require a passcode to restore (if you have an encrypted backup, you’ll need the password).
- Wait for the restore to finish. Your iPhone will restart and your data, settings, and apps will be back, but the passcode will be removed (because the backup didn’t contain the passcode).
Note: This method works only if you have a backup that was made before you forgot the passcode, and if you’ve previously trusted the computer. It does not erase your data.
Method 3: Use Recovery Mode (Erases Data, but Restores from Backup)
- Turn off your iPhone (hold the side button and volume down on Face ID models, or the side button on older models).
- Connect your iPhone to your computer and open Finder or iTunes.
- Put your iPhone in recovery mode:
- iPhone 8 or later: Press and release Volume Up, then Volume Down, then press and hold the Side button until you see the recovery mode screen (a computer icon).
- iPhone 7/7 Plus: Press and hold the Side (or Top) button and Volume Down together until you see recovery mode.
- iPhone 6s and earlier: Press and hold the Home button and the Top (or Side) button together until you see recovery mode.
- When you see the option to Update or Restore, choose Update first. This tries to reinstall iOS without erasing your data. If that fails, you’ll need to choose Restore, which erases your device.
- If you choose Restore, after it finishes, you can set up your iPhone and restore from a backup (iCloud or computer).
Method 4: Use a Third-Party Tool (Use with Caution)
- Research reputable third-party software like Dr.Fone or iMyFone LockWiper (these are examples, not endorsements).
- Download and install the software on your computer.
- Connect your iPhone and follow the on-screen instructions. Most tools claim to remove the passcode without data loss, but results vary and may not work on the latest iOS versions.
- Be aware that these tools often require payment and may not be reliable. Use at your own risk.
Common Mistakes
- Using the wrong Apple ID: Make sure you’re signed in with the correct Apple ID on iCloud.com. If you have multiple Apple IDs, try each one.
- Not having a backup: The only way to avoid data loss is to have a backup. If you never backed up, you can’t restore without erasing.
- Forgetting the backup password: If your backup is encrypted, you’ll need the password. If you forgot it, you can’t restore that backup.
- Trying too many passcode attempts: After 10 failed attempts, your iPhone will be disabled. Wait for the timeout or use a computer to restore.
- Trusting a computer you haven’t used before: If you haven’t trusted the computer, you won’t be able to restore from its backup.
Tips
- Always enable iCloud backup or automatic computer backups so you have a recent copy of your data.
- Write down your passcode and keep it in a safe place, or use a password manager.
- If you have a Mac with Touch ID, you might be able to unlock your iPhone with Apple Watch (if enabled) – but that only works when you know the passcode.
- If you have an encrypted backup, make sure you remember the password – it’s different from your Apple ID password.
- Keep your computer’s iTunes or Finder updated to the latest version to avoid compatibility issues.
Troubleshooting
- iPhone is disabled or says “Security Lockout”: If you’ve entered the wrong passcode too many times, your iPhone will be disabled for a period. You can’t bypass this without a computer. Connect to a trusted computer and try Method 2 or 3.
- Computer doesn’t recognize your iPhone: Try a different USB port or cable. Restart your computer and iPhone. Make sure you have the latest version of iTunes or Finder.
- Recovery mode doesn’t appear: Make sure you follow the exact button sequence for your model. If it doesn’t work, try again. If it still fails, try a different cable or port.
- Restore backup fails: Check that your computer has enough free space. Also, make sure the backup is compatible with the iOS version on your iPhone. If the backup is corrupted, you’ll need to use an older backup.
- iCloud Find My iPhone not working: Make sure you’re online and that Find My iPhone is enabled (which it usually is by default). If you have two-factor authentication, you’ll need to verify your identity.
- Forgot Apple ID password: Go to iforgot.apple.com to reset it. You’ll need access to your email or trusted phone number.
Frequently Asked Questions
Can I unlock my iPhone without a computer?
Only if you have iCloud Find My enabled and you want to erase it. You can use iCloud.com to erase and then restore from an iCloud backup. There’s no way to remove the passcode without a computer or erasing.
Will I lose my photos if I restore from a backup?
If you restore from a backup that contains your photos, you’ll get them back. If you don’t have a backup, you’ll lose them. iCloud Photo Library might also have them if enabled.
What’s the difference between Update and Restore in recovery mode?
Update tries to reinstall iOS without deleting your data. Restore erases everything and installs a fresh copy of iOS. Restore is more likely to work if the issue is with the operating system.
Can a third-party tool really remove the passcode without data loss?
Some tools claim to, but they may not work on the latest iOS versions and often require payment. They work by exploiting vulnerabilities, which Apple patches quickly. Use them at your own risk.
How long does the disable period last after too many attempts?
It starts with 1 minute, then 5, 15, 60 minutes, and eventually hours. After 10 attempts, the iPhone may be permanently disabled until you connect to a computer.
If I erase my iPhone, can I restore from iCloud backup?
Yes, if you have an iCloud backup. When you set up the iPhone after erasing, you’ll be prompted to restore from iCloud. You’ll need to enter your Apple ID and password.
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
- Fix 0x80070005 DISM Error & the 0x800070005 Typo
- Fix Access Denied Adding Shared Printer in Windows 10
- How to Play Minesweeper: Rules, Tips, and Winning Strategy
- Browser SQL Sandbox for Games: Build Guide
- Snapchat Face Swap: Step-by-Step Guide
- Fix a Computer Chair Height Adjuster: Step-by-Step