Unlock iPhone without Apple ID and password

If you've forgotten the passcode for your iPhone or your iPhone is disabled

Learn what to do if you've forgotten your iPhone passcode or if a message tells you that your iPhone is disabled.

If you enter the wrong code too often, you will see a message stating that your device has been deactivated. If you can't remember your passcode, you'll need to erase your iPhone, which will erase all data and settings, including the passcode.

If you've backed up iPhone, you can restore your data and settings after restoring iPhone. If you never backed up your iPhone before forgetting your passcode, you will not be able to recover the data on your iPhone. Follow these steps to remove your code.

Remove the code on an iPhone X or later, iPhone SE (2nd generation), iPhone 8 or iPhone 8 Plus

  1. Make sure the iPhone is not connected to the computer.
  2. Press and hold the side button and one of the volume buttons until you see the Power Off slider. Turn off the iPhone by moving the slider in the appropriate direction. Connect iPhone to your computer while holding down the side button. Press and hold the side button until you see the recovery mode screen.

  3. If you've backed up your iPhone, you can restore your data and settings after removing the code.

Remove code on an iPhone 7 or iPhone 7 Plus

  1. Make sure the iPhone is not connected to the computer.
  2. Press and hold the side button until you see the Power Off slider. Turn off the iPhone by moving the slider in the appropriate direction. Connect iPhone to your computer while holding down the volume down button. Press and hold the volume down button until you see the recovery mode screen.

  3. If you've backed up your iPhone, you can restore your data and settings after removing the code.

Remove the code on an iPhone SE (1st generation) or iPhone 6s or earlier

  1. Make sure the iPhone is not connected to the computer.
  2. Press and hold the side button (or the top button) until you see the Power Off slider. Turn off the iPhone by moving the slider in the appropriate direction. Connect iPhone to your computer while holding down the home button. Press and hold the Home button until you see the recovery mode screen.
  3. If you've backed up your iPhone, you can restore your data and settings after removing the code.

Restore iPhone

  1. Find the iPhone on your computer. If you have to decide between a restore and an update, select "Restore". The Finder or iTunes downloads the software for your iPhone. If it takes more than 15 minutes to charge, your iPhone will go out of recovery mode and you will need to select your iPhone model again above and repeat the code removal steps.
  2. Wait for the process to finish. Then you can set up and use your iPhone.

Do you need further assistance?

  • If you can't update or restore your iPhone in recovery mode, or if you can't use recovery mode due to broken buttons, contact Apple Support. Then follow the steps to have your iPhone repaired.
  • If you're asked for your Apple ID and password when you set up your iPhone, here's what to do.
Release date: