If you forgot the iPhone passcode, you cannot simply bypass it and keep unrestricted access to the data already protected by that passcode. Apple’s supported recovery process erases the iPhone so you can set it up again and restore a backup if one is available.
Try the On-Device Reset Option First
On supported software versions, the Lock Screen may offer a passcode-reset or erase option after repeated incorrect attempts. Follow the onscreen instructions if that option appears. You will generally need the Apple Account credentials associated with the device.
Reset the iPhone With Recovery Mode
- Have a Mac or Windows PC ready. On Windows, use the Apple Devices app. On a Mac, use Finder.
- Turn off the iPhone.
- Connect the cable to the computer.
- Put the iPhone into recovery mode as you connect it. On current Face ID models and iPhone 8 or later, hold the Side button while connecting and continue holding until the computer-and-cable recovery screen appears.
- Select the iPhone on the computer.
- Choose Restore when offered Restore or Update.
- Allow the software download and restore to finish. If the download takes long enough that the iPhone leaves recovery mode, let the download finish and then enter recovery mode again.
- Set up the iPhone. When the Hello screen appears, follow Setup Assistant.
- Restore a backup if available.
Activation Lock Still Applies
Erasing the phone does not provide a way around Activation Lock. If Find My was enabled, you may still need the Apple Account credentials associated with the device before it can be activated again.
If You Do Not Have a Computer
If the on-device reset option is unavailable and you cannot borrow a computer, Apple recommends getting help from an Apple Store or Apple Authorized Service Provider.