How to Unlock Your Phone If You Forgot the Password

“I need to unlock your phone” searches usually come from one of six very different situations, and the fix for one is useless for another. Before you try anything, work out which lock you are actually facing. This guide maps each type to the official way out, and links to our detailed walkthrough for the common ones.

One warning up front: for a forgotten screen lock, every legitimate route erases the phone. Anyone promising to unlock your phone with the data intact, for a fee, is selling something that does not exist.

Which Lock Are You Facing?

What you see Lock type Can you keep your data?
PIN, pattern or password screen you cannot pass Screen lock No, unless you remember it
“SIM not supported” or another carrier’s SIM will not work Carrier lock Yes
After a reset, it asks for a Google account you used before Factory Reset Protection Data is already gone; you need the account
“Activation Lock” or asks for an Apple Account after erase iCloud Activation Lock Data is already gone; you need the Apple Account
“Enter SIM PIN” or “Enter PUK” SIM lock Yes, the phone itself is fine
Work or school profile blocks you MDM management Depends on the IT policy

Pick your row and jump to the matching section below.

Screen Lock: Unlock Your Phone After a Forgotten PIN

This is the most common reason people need to unlock your phone the hard way. Modern Android and iOS encrypt the device with the passcode, so there is no back door, and that is exactly what protects you if the phone is lost or stolen.

Try these first

  1. Old codes. Write down every PIN and pattern you have used, then try them between lockout timers.
  2. Biometrics. If fingerprint or face unlock still works, get in, then change the code immediately. Do not restart the phone, as a restart forces the passcode.
  3. Someone else who knows it. Partners and family often remember a code you shared.

Android: erase and start again

  1. On another device, open Google’s Find Hub and sign in with the Google account from the locked phone.
  2. Select the phone and choose Factory reset or Erase device.
  3. If the phone is offline, the erase runs the next time it connects.
  4. No internet at all? Use recovery mode: power off, then hold the volume and power combination for your brand until the recovery menu appears, and choose Wipe data / Factory reset.
  5. During setup, sign in with the same Google account, then restore your backup.

Google’s own guide to finding, securing or erasing a lost Android device covers the remote erase in detail. Brand-specific paths differ, so see our guides for a forgotten Samsung PIN and a locked Redmi phone.

iPhone: erase and start again

  1. On iOS 15.2 and later, after several wrong attempts the lock screen may offer Erase iPhone (sometimes shown as Forgot Passcode?). If it appears, that is the quickest route, and it needs your Apple Account password.
  2. Otherwise connect the iPhone to a computer and put it into recovery mode, then choose Restore.
  3. During setup, sign in with the Apple Account that was on the phone and restore from an iCloud or computer backup.

Apple documents the recovery-mode steps in its support article on what to do if you forgot your iPhone passcode. Our iPhone passcode guide walks through each option and what it costs you.

hands holding a locked phone

Carrier Lock: Unlock Your Phone for Another Network

A carrier lock has nothing to do with the screen. The phone works normally, but it refuses SIM cards from other networks. Here you keep all your data, and the process is a request rather than a reset.

  1. Check the status: on iPhone, Settings, General, About, Carrier Lock. On Android, insert another carrier’s SIM and see whether it asks for an unlock code.
  2. Confirm you meet the carrier’s conditions, usually a paid-off device and an account in good standing.
  3. Request the unlock through the carrier’s app, website or support line.
  4. Wait for confirmation, then insert the new SIM or activate the new eSIM.

Our step-by-step carrier unlock guide covers the requirements and timelines, and the eSIM activation guide helps with the switch afterwards.

Factory Reset Protection: The Google Account Wall

After a factory reset, Android asks for a Google account that was previously signed in on that phone. This is Factory Reset Protection, and it exists so a thief cannot simply wipe a stolen phone and sell it.

  • Your own phone: recover the Google account password using Google’s account recovery, then sign in.
  • Bought second-hand: ask the seller to remove the device from their account, or return it.
  • No access at all: an authorised service centre may help with proof of purchase, but tools promising an FRP bypass are malware or scams.

iCloud Activation Lock on iPhone

Apple’s equivalent works the same way: after an erase, the iPhone asks for the Apple Account that was signed in. Only that account can unlock your phone.

  1. Use Apple’s account recovery if it is your account and you forgot the password.
  2. If you bought the iPhone used, ask the seller to remove it from Find My remotely.
  3. With a genuine proof of purchase, Apple Support can review an Activation Lock removal request.

SIM PIN and PUK

If the phone asks for a SIM PIN, the phone itself is not locked. Enter the SIM PIN, and after three wrong attempts you will need the PUK code from your carrier. Ten wrong PUK attempts permanently disable the SIM, so stop and call your carrier rather than guessing.

Work and School Devices

Phones managed with MDM software show a work profile or a management notice. Only the organisation’s IT team can release them. A reset does not remove enrolment on many managed devices, and trying to bypass it can breach your employment or school policy.

Paid Unlock Services: What to Avoid

Search results for how to unlock your phone are full of paid tools and services. Some are outright scams, and a few are legal but oversold.

Offer Reality
“Unlock any screen lock without data loss” Not possible on current Android or iOS. The data is encrypted.
“Free FRP bypass tool” Usually malware; methods that once worked are patched.
“Remove iCloud Activation Lock” Only Apple or the original owner can, with proof.
“IMEI unlock, any carrier, any phone” Carrier unlocking is free through the carrier when you qualify.
“Send us your IMEI and payment” Common upfront-payment scam; no refund.

If a service asks for payment before telling you which lock type it handles, walk away.

After You Unlock Your Phone: Restore and Secure It

  1. Sign in and restore your backup during setup, since that is usually the only chance to restore it.
  2. Set a code you will remember, and store it in a password manager.
  3. Add fingerprint or face unlock as a convenience layer.
  4. Turn on cloud backup so the next reset costs you minutes, not years of photos.
  5. Check that your recovery email and phone number are current on both your Google and Apple accounts.

How to Avoid Needing to Unlock Your Phone Again

  • Use a memorable passphrase rather than a random PIN you will forget.
  • Write it down somewhere safe, such as a password manager, not a note on the phone itself.
  • Keep backups on: Google backup or iCloud Backup, checked monthly.
  • Know your carrier account details for unlock requests and PUK codes.
  • Keep proof of purchase in your email for service-centre requests.

Frequently Asked Questions

Can I unlock my phone without losing data?

Only if you remember the code, or biometrics still work. A carrier unlock keeps your data, but a forgotten screen lock always requires an erase.

What if I forgot my Google account password too?

Use Google’s account recovery from a device you have used before, answer as accurately as you can, and expect a short waiting period before the new password works on a reset phone.

Is there a limit to how many wrong attempts I can make?

Yes. Both platforms add longer waits after repeated failures, and some Android phones erase after many failed attempts if that option was enabled.

Does a factory reset remove a carrier lock?

No. A carrier lock lives with the carrier and the device’s IMEI, not in your data, so only the carrier can remove it.

Can a repair shop unlock my phone?

An authorised centre can help with account-related locks when you prove ownership. No shop can bypass a screen lock without erasing the phone.

To unlock your phone successfully, identify the lock first: a screen lock means an erase through Find Hub, recovery mode or a computer restore; a carrier lock means a free request to your network; and account locks need the original Google or Apple credentials. Everything else on offer is either a scam or a tool that stopped working several security updates ago.

Bonus PDF: Phone Lock Decision Sheet

Identify the lock you are facing and follow the official route out. To download it, try one free sponsored app from the list you will see (usually a couple of minutes). Everything in this guide stays free without it.

Get the Free PDF

See all File Vault guides.

Optimized by Optimole