iPhone guide

Forgot your iPhone passcode? The 3 official ways back in

Forgot your iPhone passcode or see iPhone Unavailable? Apple's three official options, what each one needs, why they erase the phone, and how to save your data.

By the iFixApplePhone repair team, Faisalabad ·

یہ گائیڈ اردو میں پڑھیں

Quick answer

There is no official way to unlock an iPhone without the passcode and keep the data, unless you changed the passcode in the last 72 hours. Apple gives three options:

  1. Passcode Reset: use your old passcode if you changed it within the last 72 hours (iOS 17 or later).
  2. Forgot Passcode? on the Lock Screen: erase the iPhone without a computer, using your Apple Account password (iOS 15.2 or later).
  3. Recovery mode with a computer: restore the iPhone from a Mac or Windows PC.

Options 2 and 3 erase everything on the phone. Your photos, chats and contacts come back only from an iCloud or computer backup.

Before you try anything

  • Stop guessing. Every wrong attempt adds a longer wait, and in the end the phone shows iPhone Unavailable.
  • Find your Apple Account email and password. After an erase, the iPhone asks for the Apple Account that was signed in (Activation Lock). Without it, the phone cannot be set up again, and no shop can remove that lock for you. See Activation Lock on a used iPhone. If you forgot that password too, start with Apple’s account recovery at iforgot.apple.com.
  • Check for a backup. On another device, sign in at icloud.com, or check the computer you usually connect the iPhone to. If there is no backup, the data on the phone cannot be saved by any official method.

Option 1: Your old passcode (changed in the last 72 hours)

If you set a new passcode recently and forgot it, iOS 17 and later let you use the previous passcode for 72 hours. On the Lock Screen, enter wrong codes until iPhone Unavailable appears, tap Forgot Passcode?, then Enter Previous Passcode. You will be asked to set a new passcode straight away. No data is lost.

Option 2: Erase from the Lock Screen (no computer)

You need: iOS 15.2 or later, Find My turned on before the phone was locked, a Wi-Fi or mobile data connection, and your Apple Account password.

  1. Enter wrong passcodes until the iPhone Unavailable (Security Lockout) screen appears.
  2. Tap Forgot Passcode? (on iOS 15.2 and 16 it says Erase iPhone). This option only appears when the phone is online and Find My is on.
  3. Tap Start iPhone Reset, then enter your Apple Account password.
  4. Tap Erase iPhone. On iOS 17 or later with an eSIM, you can choose to keep it.
  5. Set up the phone again and restore from your backup.

Option 3: Recovery mode with a computer

Use this if Options 1 and 2 are not available (for example the phone has no internet). You need a Mac (Finder) or a Windows PC with the Apple Devices app, a cable that charges your iPhone, and up to an hour.

  1. Turn the iPhone off. On Face ID models, hold the side button and volume down until the slider appears, then drag it.
  2. Hold the right button while you connect the cable to the computer, and keep holding until the computer and cable screen appears:
    • iPhone 8 and later, SE 2nd and 3rd generation: side button
    • iPhone 7 and 7 Plus: volume down
    • iPhone 6s and earlier, SE 1st generation: Home button
  3. On the computer, select the iPhone and choose Restore. The download can take more than 15 minutes; if the phone leaves recovery mode, repeat step 2.
  4. When it finishes, set up the phone and sign in with your Apple Account.

If the buttons don’t respond or the computer never sees the phone, it can be a button, port or board fault. That is a repair, not a passcode problem.

Avoid “passcode unlock” offers

Shops or websites that promise to remove an iPhone passcode and keep the data, or to “bypass” iCloud, are not offering anything Apple supports. Such tools can leave the phone without calls or updates, and a phone with a bypassed lock may be stolen. Only the owner with the Apple Account, or Apple with proof of purchase, can remove Activation Lock.

Bring it to us

If the phone won’t enter recovery mode, a button or the charging port does not work, or the computer cannot see the iPhone, send us your model on WhatsApp. We check the hardware first. We can’t remove passcodes or Activation Lock for anyone.

Sources: Apple, If you forgot your iPhone passcode, Reset your device without a computer and Use your old passcode within 72 hours.

All repair guides

iFixApplePhone repair lab in Katchery Bazar, Faisalabad
Visit the lab · Katchery Bazar

Walk in, or message us first.

Saturday to Thursday · closed Friday10 AM - 10 PM
Phone & WhatsApp0304-6069068

Repaired with us? Leave a Google review