Home > How-To > How to remove passcode from iPhone when locked

How to Remove Passcode from iPhone When Locked

If you can't remember your iPhone passcode and are fretting about being locked out of your iPhone, then follow this article's instructions to remove the passcode from your locked iPhone.

Alice Estelle
Updated on Nov 15, 2022

Restore your iPhone to the factory default to remove the passcode on a locked iPhone.

To unlock your iPhone, you'll need to utilize Touch ID, Face ID, or a valid passcode, all of which are protected by Apple's stringent security measures. But there will be occasions when you are locked out of your iPhone. Maybe your naughty child changed your original passcode, or you exceeded the limit of trying passcode to get into your locked iPhone.

If your iPhone becomes locked, your only option is to reset it to remove passcode from your locked iPhone. Unfortunately, the data and files will be lost along with removing your locked iPhone passcode during the reset process. But if you backed up your data to iCloud or your computer before it was locked, then it is possible for you to restore data from your most recent backup.

Several options are provided below to help users remove their passcode when their iPhone is locked. The best one out of them is the iPhone Unlocker, which can unlock your iPhone easily and quickly. We'll also cover other ways to get a passcode removed from the locked iPhone.

Table of Contents

Why your iPhone is locked?

The passcode is a safety feature on iPhones to prevent unauthorized access to your information, requiring a correct password to be entered before the iPhone can be accessed. Repeatedly entering the wrong passcode will trigger iPhone's security features to disable your iPhone.

If you've forgotten your iPhone's password and your iPhone got locked, resetting your iPhone will allow you to unlock your iPhone with removing your passcode. But at the same time, this process will delete everything on your iPhone, including pictures, music, and anything else you may have stored there, as well as remove the old passcode from your locked iPhone. But if you had a backup made before the reset, it wouldn't be a big concern.

How to remove passcode from your locked iPhone via Erase iPhone

With the iOS 15.2 update, Apple introduced a new option called "Erase iPhone," allowing iPhone owners to perform a factory reset without connecting their iPhone to a computer. If you input the wrong passcode several times, the iPhone will display an "iPhone Unavailable" or "Security Lockout" screen and give you a choice of the "Erase iPhone" option.

When your iPhone is locked, "Erase iPhone" may be the easiest method with a few screen taps to remove your iPhone passcode.

Here are some things to consider before making use of this feature:

  • Verify that you're using iOS 15.2 or later on your iPhone.
  • To successfully remove your iPhone passcode, you must have access to a network.
  • You entered your password incorrectly at least seven times.
  • Your Apple ID and password are required for the unlocking process.
  • Before being locked, the Find My option was activated.

We'll show you how to remove the locked iPhone's passcode by doing the following:

Step 1. Keep trying different passcode combinations until you reach the "iPhone Unavailable" or "Safety Lockout" screen with the "Erase iPhone" option in the bottom-right corner. Tap "Erase iPhone" option.

Step 2. The iPhone displays a warning message asking whether you're sure you want to erase it. Continue by tapping "Erase iPhone" option from the main screen.

Step 3. Use your Apple passcode to sign out of your Apple ID. Then Apple's logo and a loading bar will appear on the screen of your iPhone while the reset process begins.

As soon as it's done, your iPhone will restart with the hello screen and the passcode has been removed from your locked iPhone. After that, you can set up your iPhone by following the prompts and creating a new PIN.

Tip: You can restore your backup in the "Apps & Data" step during setting iPhone up. If you created a backup before your iPhone was locked, then you can choose "Restore from iCloud Backup" or "Restore from iTunes Backup" option to restore the latest backup; if you don't have a backup, then you can choose "Don't Transfer Apps & Data" and follow the prompts for the next steps.

Remove the passcode on a locked iPhone via a third-party tool

If the first approach doesn't work, whether because of an outdated iOS or network issues, iPhone Unlocker is a quick and easy alternative to removing your iPhone passcode when locked.

iPhone Unlocker is a trusted and powerful passcode unlock tool that works with all iPhone and iPad models to quickly and effortlessly remove any passcode, including the lock screen security code, Face ID, Touch ID, Screen Time password. It has excellent functionality and an intuitive interface, making it an excellent alternative for bypassing your iPhone's passcode protection.

Free Download Free Download

Advantages of using iPhone Unlocker:

  • It can unlock your iPhone, iPad, or iPod touch by factory resetting.
  • Its interface is so well-designed that even a novice may enjoy working with it.
  • There isn't a single iPhone model that this won't function on.
  • Your private information is safe because of the rigorous security measures in place.
  • In addition to removing the iPhone's passcode protection, it also has the feature of removing the user's Apple ID or Screen Time.
  • The success rate can reach 99%.
  • There is no need for Apple's iTunes to use this.

Let's test out how effectively this passcode-removing software for the iPhone can unlock.

1. Click "Wipe Passcode" option after the software has been downloaded and installed on your computer. Proceed to the next step by clicking "Start."

2. After the computer and iPhone are connected, click the "Device connected but not recognized?" link on the interface and follow the correct instructions to put your iPhone into Recovery Mode.

3. Click "Start" after you've finished checking your iPhone's details.

4. It'll soon begin downloading an iOS firmware package tailored to your iPhone.

5. As soon as it's done, type "0000" to confirm the reset and select the "Unlock" option.

Note: During this process, your iPhone will automatically update to the most recent version of iOS. Additionally, all personal data will be wiped during the unlocking procedure. However, it can be retrieved from a backup.

6. Please be patient while it unlocking your iPhone.

Once the reset process is complete, your iPhone passcode has been removed and the iPhone's lock screen will no longer appear. During setup, you can start fresh on the iPhone or restore all of your data from a recent backup.

How to remove the locked iPhone passcode via Find My iPhone

To find your lost iPhone, you can use the iCloud-based Find My iPhone tool to locate the lost iPhone and perform the wipe function remotely. Moreover, you can use this technique to get your passcode removed if your locked iPhone has a stable Internet connection and the Find My feature is enabled.

1. Go to iCloud.com website on a device or computer. Sign in with the same Apple ID and password you used on your locked iPhone.

2. Click on the last "Find iPhone" icon on the main menu.

3. A map appears showing the location of all devices associated with that Apple ID when you have successfully logged in. Click on "All Devices" at the top and select the locked iPhone you want to remove passcode from.

4. When prompted with three choices after selecting your device, click "Erase iPhone" option from the far right to bypass the iPhone lock screen.

5. A small box appears asking you to verify the removal of the iPhone passcode. When you select "Erase," your iPhone will begin the erasing process instantly. Once the erase is complete, you can use your iPhone normally again.

Note: Using Find My iPhone has some limitations. This approach cannot be used to reset your iPhone if Find My is disabled. Besides, this approach is useless if your iPhone doesn't have access to the web.

How to remove the locked iPhone passcode via Recovery Mode

The iPhone passcode can also be removed when locked by entering Recovery Mode on iTunes or Finder. But Recovery Mode can be a little tough to enter because it varies by model. All you have to do is strictly adhere to the guidelines below. When holding the right buttons to put your iPhone into Recovery Mode, it is essential that you simultaneously connect it to a computer.

1. Turn off your iPhone and open either iTunes or Finder on your computer.

Note: If you're running macOS Catalina or newer, open Finder; if you're running macOS Mojave or older or Windows, open the latest version of iTunes.

2. You'll need to enter Recovery Mode on your iPhone by pressing the appropriate buttons while it's connected to your computer.

  • To enter Recovery Mode on the iPhone 8 series or later series, keep pressing the Side button.
  • To enter Recovery Mode on the iPhone 7 series, hold the Volume down button for an extended period.
  • To enter Recovery Mode on the iPhone 6 series or previous model, hold the Home button until you see a cable pointing to computer on the screen.

3. Once your iPhone is detected, a small box will appear and select the "Restore" option.

4. Choose "Restore and Update" in the next pop-up confirmation box.

Note: If it takes longer than 15 minutes to erase everything, your iPhone may exit the Recovery Mode, which means you must re-enter the Recovery Mode according to the step 2.

How to turn the iPhone passcode off

There's a chance you no longer wish to use a passcode, either for the reason that you frequently forget it or that it's an unnecessary hassle to memorize a sequence of numbers every time you unlock your iPhone.

If you know your passcode and want to turn it off to get into your iPhone without entering a passcode every time, then follow the steps below to remove your iPhone passcode.

Step 1. Select "Face ID & Passcode" from the "Settings" menu.

Step 2. Type in the passcode you set up previously for the lock screen.

Step 3. Scroll down until you see "Turn Passcode Off," and tap it.

Step 4. Enter the passcode once more, then your iPhone can be accessed without passcode.

Note: Although turning off the passcode allows you to easily access your iPhone, it is not a recommended practice. Because then your iPhone is vulnerable to outside intrusion, and the data and files in your iPhone are at risk of being revealed at any time. Therefore, it is necessary to set a passcode to protect your iPhone.


If you want to remove your iPhone's lock screen passcode, you can use one of the methods mentioned above to fix it quickly. If you're unsure of which method to use, it's recommended to try iPhone Unlocker out for yourself because it's free of restrictions and simple to operate.

About Alice Estelle
Alice Estelle has been a newspaper editor and a book editor with extensive writing experience. She also has deep research in the field of mobile software and is keen on exploring and solving various problems of iOS and Android systems.
Unlock iPhone & iPad Lock Screen
No matter it says Unavailable or Security Lockout, or you forgot the passcode.