You can’t get around an iPhone restore code in the sense of bypassing it. The restore code—the password the iPhone asks for after a reset is initiated or when the device lands in Recovery Mode—is enforced by the Secure Enclave, and there’s no legitimate combination of button presses, apps, or settings that skips it. What you can do is work with the correct Apple Account credentials, use Apple’s official recovery path on the device itself, restore with a computer, or in some cases reset the phone and sign in with the Apple Account that owns it.
That’s the short version. The rest of this article explains which screen you’re probably looking at, because people use “restore code” for at least four different prompts, and the correct action depends on which one is actually blocking you. It also covers the recovery steps Apple documents, what happens to your data and eSIM, when to stop and get service, and why the paid “unlock” tools you’ll find online mostly don’t do what they claim.
First, identify which code is stopping you
“Restore code” isn’t an official Apple term. When people search for a way around it, they usually mean one of four things:
The device passcode you normally type on the Lock Screen, which stops working after a restart or software update. On newer iOS versions this can appear as a “Security Lockout” or “[Device] Unavailable” screen. The Apple Account password requested during the reset process. On iOS 17 and later, after you tap “Forgot Passcode?” and confirm a reset, the iPhone asks for the password of the Apple Account signed in on the device. This is the step most often mistaken for a “restore code.” You cannot skip it; it proves you own the device. The activation lock screen that appears after a restore, asking for the Apple Account that was previously signed in. This is Apple’s anti-theft lock, and it exists specifically so that a thief cannot wipe and reuse a phone. The “Restore” screen (the image of a cable pointing at a computer), which is a recovery-mode prompt, not a password. It means the operating system needs to be reinstalled, not unlocked.
Each has a different fix. Guessing at the wrong one wastes time and, in the case of repeated passcode attempts, can extend the lockout. So before doing anything, read the exact wording on the screen. If it asks for a passcode, that’s the device lock. If it asks for an Apple Account, that’s ownership verification. If it shows a cable, that’s recovery mode.
Why there’s no real bypass
The passcode check happens in hardware, inside the Secure Enclave, and Apple deliberately designed it so that no software tool can short-circuit it. The passcode is entangled with the encryption key that protects your data. This is why a correct passcode doesn’t just “unlock” the phone—it decrypts it. Without the passcode, the data stays encrypted, and no amount of external software changes that.
Apple’s documented position is blunt: “To access your iPhone after you forget your passcode, you must reset your device,” and that reset “erases the data currently on your iPhone.” The official path is a reset followed by signing in with your Apple Account, not a workaround that preserves the lock screen. Activation Lock works the same way on the ownership side: the check is tied to Apple’s servers and the device’s hardware identity, so a clean restore still leads to an Apple Account prompt.
This is worth sitting with, because it reframes the whole question. You’re not trying to defeat a code; you’re trying to regain access to a device you own through the channels Apple built for exactly that situation. Those channels exist, and they work—they just require credentials rather than tricks.
The in-device reset path (iOS 15.2 and later)
If you’re locked out of the Lock Screen and you can’t remember the passcode, this is the first thing to try. Apple’s support documentation lays out the requirements: iOS 15.2 or later, Find My previously enabled on the device, an active cellular or Wi-Fi connection, and your Apple Account password. On iOS 17 and later the flow looks like this:
1: From the Lock Screen, enter the wrong passcode until the “[Device] Unavailable” screen appears. On iOS 15.2 through iOS 16, you’ll instead see an “Erase [Device]” option. 2: Tap Forgot Passcode?—this button only appears when the phone has a network connection and Find My is on. 3: On the Security Lockout screen, tap Start [Device] Reset to confirm. 4: Enter your Apple Account password. This signs you out of the account on the device. 5: Tap Erase [Device]. This permanently deletes all data and settings. On iOS 17 or later with an eSIM, you can choose to keep the eSIM and erase the data, or delete the eSIM as well. 6: When the phone restarts, set it up again. You’ll be offered the chance to restore from a backup if you have one, and then you’ll set a new passcode.
That’s the whole process. There’s no hidden menu, no developer trick, and no tool that makes step 4 optional. The Apple Account password is the gate, and it’s the same password you’d use to sign in at iCloud.com. If you don’t know it, you can’t proceed—and the next section is about that situation.
A practical detail: the “Forgot Passcode?” button is conditional. If you’re in airplane mode, out of signal, or Find My was never enabled, it won’t appear. In that case the in-device reset isn’t available, and you move to the computer method below.
Resetting through a computer when the on-device reset isn’t available
If the on-device option doesn’t appear—older iOS, no Find My, no network—you reset the phone with a Mac or Windows PC. Apple estimates this can take up to 60 minutes and requires a cable that can charge the phone and an internet connection. The steps depend on the model:
1: Connect the iPhone to the computer with its cable. On a Mac, open Finder. On a Windows PC, open the Apple Devices app (or iTunes on older setups). 2: Put the iPhone into recovery mode. On iPhone 8 and later (including recent SE models), press and quickly release Volume Up, press and quickly release Volume Down, then press and hold the side button until the “Connect to computer” screen appears. On iPhone 7 and 7 Plus, hold the side button and Volume Down together. On iPhone 6s and earlier, hold the side button and Home button together. 3: When the computer detects the phone, a message offers to Update or Restore. Choose Restore. Update reinstalls the software while keeping data, but if you’re locked out and need the device usable again, Restore is the one that wipes it. 4: Wait for the restore to finish without unplugging. The phone restarts into the setup screen. 5: Set it up, sign in with your Apple Account, and restore from a backup if you have one.
The success check is simple: the phone reaches the “Hello” setup screen and the Lock Screen passcode is gone. Your old data is gone too, unless a backup exists. If you see the activation lock screen asking for the previous Apple Account, that’s not a failure—it’s the expected ownership check, and signing in with that account clears it.
If you see the Restore screen instead
The cable icon screen is a different situation. Apple’s guidance is to connect to a computer and restart the phone first. On iPhone 8 or later, do the volume-up, volume-down, hold-side-button sequence until the Apple logo appears. If the Restore screen persists after the restart, you need to reinstall iOS: keep the phone connected, open Finder or the Apple Devices app, and click Update rather than Restore—Update keeps your personal data. Don’t unplug until it finishes.
If the Restore screen still comes back after that, or you can’t restart because a button is broken, Apple points to hardware service. That’s the stop condition. Don’t keep cycling the phone or start poking at internals; a failed reinstall that persists usually means a hardware or firmware issue that needs a technician.
The Apple Account wall: what to do when you don’t know the password
So far, every path has ended at the same gate: your Apple Account password. That’s by design. The honest answer to “how do I get around the restore code” is often “you recover the account, not the code.” Here’s the practical sequence:
Try the password you think it is, carefully, with autocorrect off. Repeatedly guessing can lead to account lockout, which adds another wait. Use Apple’s account recovery at iforgot.apple.com, which can verify you by trusted phone number, trusted device, or other methods. Recovery can take time—sometimes days—if Apple needs to verify your identity. That delay is a security feature. If you have a trusted device still signed in, you can reset the password from its Settings under your name, particularly on newer iOS versions, using the device passcode. Check whether someone else in your household set up the phone. A parent, partner, or employer may be the account owner, especially on a hand-me-down or work-managed device. That person’s credentials are the correct ones, and no amount of tinkering substitutes for them.
What you shouldn’t do is buy a “bypass” service. These range from sketchy websites charging for a tool that only performs the same free reset, to phishing pages that harvest your Apple Account password, to remote-access scams. The concrete failure mode is predictable: you either lose money, hand over account credentials, or spend hours on a method that ends at the same Apple Account prompt you started with.
What you lose, what you keep, and the eSIM wrinkle
The reset erases the data on the phone. That’s the core trade-off, and it isn’t negotiable through any shortcut. What you keep depends on your backup situation:
iCloud Backup: if it was on, your data should be restorable after you sign in during setup, subject to the backup’s age and storage. Computer backup: if you backed up to a Mac or PC, you can restore from that after the phone is reset. No backup: the data is gone. Photos, messages, and app data that lived only on the phone are unrecoverable once the erase completes.
The eSIM point is practical and easy to miss. On iOS 17 or later, the in-device reset gives you the choice to keep the eSIM while erasing data, which means you may not need to contact your carrier. On iOS 16 or earlier, Apple’s documentation advises contacting your carrier before the reset to get a QR code so you can set up the eSIM again. If you skip that, you may end up with a working phone but no cellular service until the carrier reissues the eSIM.
When to stop and get service
There’s a point where continuing is counterproductive. Consider professional service—Apple Support, an Apple Store, or an authorized provider—when:
The restore screen persists after a restart and a reinstall attempt. Recovery mode won’t engage because a button or the port is damaged. The computer throws repeated restore errors (the 9, 4005, 4013, and 4014 family), which Apple addresses with software updates and retries but which can also indicate hardware faults. The phone belongs to someone else and you can’t reach the account owner. No service can ethically or technically remove that lock, and a legitimate provider will tell you so.
The distinction matters: service can fix hardware and firmware, but it cannot and will not bypass the ownership check. Anyone who promises otherwise is misrepresenting what’s possible.
How to avoid this next time
The most useful takeaway isn’t a workaround—it’s a prevention setup that makes this scenario recoverable:
Keep Find My enabled, because it’s the requirement that makes the in-device reset available. Turn on iCloud Backup and confirm it has run recently. Store your Apple Account password in a password manager so a forgotten passcode doesn’t become a forgotten account. Set up a trusted phone number and a recovery contact, so account recovery doesn’t stall. Write your passcode somewhere secure but separate from the phone, especially before major iOS updates, which is when lock-screen issues tend to surface.
FAQ
Can I keep my data when I reset a locked iPhone?
Not through the reset itself—the erase is what removes the lock. You keep data only if a backup exists and you restore from it afterward. There’s no supported method that removes the passcode while preserving the live data.
Does a third-party unlock tool work?
Tools that advertise passcode removal generally perform the same restore you can do for free with Finder or the Apple Devices app, and they still leave you at the activation lock. They don’t bypass the Secure Enclave. Treat paid “bypass” claims as marketing, not capability.
What if I bought the phone used and the seller didn’t sign out?
You need the seller’s Apple Account credentials or a proper sign-out. Apple’s activation lock is tied to that account, and there’s no legitimate way around it. If the seller is unreachable, the device can’t be reliably reactivated.
Does resetting affect my eSIM?
On iOS 17 or later you can choose to keep it during the in-device reset. On iOS 16 or earlier, Apple advises getting a carrier QR code first so you can reinstall the eSIM afterward.