Your phone is asking for a PUK code and you don't have it? Here is the honest answer: you can't unlock or unblock a SIM card without the PUK code, whether it's in an Android phone, an iPhone or a keypad mobile. No app, setting or "free unlock" trick gets around it. The good news is that you don't need the card your SIM came on. Your carrier can give you the PUK through its app, your online account or customer service, even from another phone. This guide shows you where to find it, how to enter it safely, and what to do if your SIM is already permanently blocked.
PIN, PUK or network lock: which code is your phone asking for?
Three different locks can show up on your screen, and each one has its own fix:
- SIM PIN: a 4 to 8 digit code that protects your SIM. If it's turned on, your phone asks for it every time you restart or put the SIM back in.
- PUK (Personal Unblocking Key): an 8-digit code your carrier gives you. You need it after you enter the wrong SIM PIN three times in a row. It's unique to your SIM card.
- SIM network unlock PIN: this message means the phone is locked to a carrier, not that your SIM is blocked. A PUK won't help here. Ask the carrier that sold you the phone to unlock it, and read what it means if a phone is carrier-locked.
Your screen lock (the passcode, Face ID or fingerprint you use to open your phone) is separate again. Forgetting it has nothing to do with the SIM or the PUK.
Can you unlock a SIM card without a PUK code?
No. The PUK is stored on the SIM itself and in your carrier's systems, so only your carrier can give you the right one. A few things to know before you try anything:
- Moving the SIM to another phone doesn't help. The lock is on the SIM, not on the phone (T-Mobile: PUK and SIM error troubleshooting).
- You only get 10 tries. Enter the wrong PUK 10 times in a row and the SIM is blocked for good (Vodafone UK: How to find your PUK).
- Don't guess. Apple warns that a wrong guess can permanently lock your SIM card or eSIM (Apple: Use a SIM PIN for your iPhone or iPad).
- Skip "PUK generator" sites and apps. They can't know the code for your SIM, and some just want your personal data. Your carrier is the only real source.
Want the background first? Read what a PUK code is.
How to get your PUK code
1. Check the card your SIM came on
Many carriers print the PIN and PUK on the plastic card the SIM was attached to, sometimes under a scratch-off panel. Make sure the SIM number on that card matches the number printed on your SIM. This long number is called the ICCID.
2. Without calling customer service: use your carrier's app, website or USSD code
Many carriers show your PUK after you log in, so you don't need to call anyone. Some also send it by text when you dial a short code from another phone. You can do this on a computer or on someone else's phone. Look for a section such as "SIM", "Manage device" or "Unblock SIM".
3. Contact customer service from another phone
Borrow a phone or use a landline, live chat or your carrier's social media support. For your security, the carrier will check that you're the account holder or an authorised user, so have your ID, your phone number and ideally the SIM number ready.
4. Visit a store
If you can't get through, a carrier store can check your ID and give you the PUK or a replacement SIM on the spot.
Find your PUK with your carrier
Every carrier does this a little differently. A few examples from official carrier pages:
- Jio (India), unblock online: log in through Jio's lost SIM page to view your PUK. You get a one-time code on your alternate number or email (Jio: How to find my SIM PUK code).
- Safaricom (Kenya): dial *456*8# (Get PUK) from another Safaricom line. A friend can get the PUK for you through their line (Safaricom: Customer self service).
- MTN Nigeria: the 8-digit PUK is printed on your SIM's starter pack. If you can't find it, call 300 from another phone (MTN Nigeria: SIM security).
- EE (UK): log in to My EE, open Manage device and select Unblock SIM (PUK code) (EE: Unblock your phone with a PUK code).
- Vodafone UK: call 191 free from a Vodafone mobile, or 0333 304 0191 from any other phone, and ask for your PUK (Vodafone UK).
- Vodafone Czech Republic: your PIN, PUK, PIN2 and PUK2 are listed in My Vodafone and in the app (Vodafone CZ: PIN and PUK codes).
- T-Mobile (US): contact T-Mobile online or from another phone, or use the PUK printed on the card your SIM came in (T-Mobile: PUK code unlock).
Airtel, BSNL, Vi, Globe, MTN in another country, or a different carrier? Search your carrier's official website or app for "PUK". If there's no self-service option, call customer care from another phone or visit a store with your ID. Only use official carrier websites, apps and phone numbers.
How to enter the PUK code
On an Android phone or iPhone
- When your phone shows PUK or SIM locked, type the 8-digit PUK slowly and check it before you confirm.
- Choose a new SIM PIN and enter it twice.
- Your SIM unlocks and your phone connects to the network again.
On a keypad mobile
Basic keypad (feature) phones show the same PUK prompt when you switch them on. Type the 8 digits with the number keys, press OK, then set a new PIN twice. If you type a wrong digit, use the clear key before you confirm, because every confirmed wrong PUK counts as one of your 10 tries.
No PUK prompt on screen?
On many phones you can type this in the dialer instead: **05*PUK*NewPIN*NewPIN# (T-Mobile: PUK code unlock).
If your phone asks for PUK2, that's a different code. It belongs to PIN2, a second SIM code some carriers use, and your carrier can give it to you the same way.
What if your SIM is permanently blocked?
After 10 wrong PUK attempts, or if your phone says PUK exhausted or PUK blocked, the SIM can't be used again. Your phone number usually isn't lost, though. Ask your carrier for a new SIM or eSIM for the same number:
- Replacement SIM card: ask your carrier in a store, by phone or online. Bring ID.
- Switch to an eSIM: if your phone supports eSIM and your carrier offers it, this can be quicker than waiting for a new card. See how to switch from a physical SIM to an eSIM.
Apple gives the same advice: if unlocking fails or you see "PUK exhausted", ask your carrier for a new SIM card or eSIM (Apple Support).
Locked out right before a trip?
Getting a new SIM from your home carrier can take time, and you may not have that time before you fly. A travel eSIM can keep you online in the meantime. It's sent to you by email as a QR code, and you install it on your phone in a few minutes over Wi-Fi. Your blocked SIM can stay in the phone while you sort it out with your carrier.
Two things to check first:
- Your phone must support eSIM. Check your eSIM compatibility before you buy.
- Your phone must not be locked to your home carrier.
A travel eSIM gives you its own data and, on some plans, its own number. For Europe, Travel Basic+ is a good fit while your SIM is blocked: it comes with a French +33 number for calls and texts, so people can still reach you. It doesn't bring back your home number, so you'll still need your carrier to replace or unlock your SIM for that.
How to avoid a SIM lockout next time
- Save your PUK now. Once you have it, store it in a password manager or a secure note. Don't keep it in your phone case, where a thief would find it too.
- Never guess your PIN. After two wrong tries, stop and look it up.
- Think before you turn off the SIM PIN. Without it, anyone who takes your SIM can use it in another phone. With it, you need to remember one more code.
How to change or turn off your SIM PIN
You need your current SIM PIN for all of these steps. If you never set one, it's the default PIN from your carrier, which is usually printed on the card your SIM came on. Don't guess it: three wrong tries and you're back at the PUK screen.
If you change it, pick a PIN you'll remember and save it with your PUK in a password manager.
iPhone
- Open Settings and tap Cellular (called Mobile Service in some countries).
- If you have two lines (Dual SIM or a SIM plus an eSIM), tap the line you want to change first.
- Tap SIM PIN.
- To turn the PIN on or off, use the SIM PIN switch and enter your current PIN.
- To change it, tap Change PIN (only shown while the SIM PIN is on), enter your current PIN, then your new PIN twice.
Apple's guide: Use a SIM PIN for your iPhone or iPad.
Samsung Galaxy
- Open Settings and tap Security and privacy (Biometrics and security on older models).
- Tap More security settings (Other security settings on older models).
- Tap Set up SIM card lock. With two SIMs, choose the SIM first.
- To turn the PIN on or off, tap Lock SIM card and enter your current PIN.
- To change it, tap Change SIM card PIN (only available while the lock is on), enter your current PIN, then your new PIN twice.
Samsung's guide: SIM card lock on Samsung phones.
Google Pixel and other Android phones
- Open Settings and tap Security & privacy.
- Tap More security & privacy (More security settings on some versions), then SIM lock.
- Turn Lock SIM on or off and enter your current PIN.
- To change it, tap Change SIM PIN, enter your current PIN, then your new PIN twice.
On other Android brands the menus have different names. The fastest way is to open Settings and search for SIM lock or SIM PIN. Google's guide: Protect your SIM with a PIN.
Asia, USA and Middle East plans shown · data-only eSIMs delivered by email · Find the eSIM for your destination
FAQs
What is a PUK code?
A PUK (Personal Unblocking Key) is an 8-digit code that unblocks your SIM after three wrong PIN entries. Your carrier sets it, and it's unique to your SIM card. Learn more about the PUK code.
How many times can I enter the PUK?
10 times. After the 10th wrong attempt in a row, the SIM is permanently blocked and you need a replacement from your carrier.
Can I unlock my SIM without calling customer service?
Often, yes. Check the card your SIM came on, or log in to your carrier's app or website to view the PUK. Carriers such as EE and Jio let you do this online, and Safaricom has a short code.
Can I get my PUK code by text?
It depends on your carrier. Safaricom, for example, sends the PUK by text when you dial *456*8#. Others send a one-time login code to another number or email on your account so you can view the PUK online. Check your carrier's official help pages for its current options.
Is there a free way to unlock a SIM without the PUK?
No. There's no tool or code that bypasses the PUK. Getting it from your carrier is the only safe way, so skip any site or app that offers to "generate" one.
Can an eSIM be PUK-locked?
Yes. A SIM PIN can protect an eSIM too, and too many wrong entries can lock it. Ask the carrier that issued the eSIM for the PUK. If you bought your eSIM from SimOptions, contact our support team instead of guessing.
Will a new phone fix a PUK-locked SIM?
No. The lock is on the SIM, so it stays locked in any phone. You need the PUK or a new SIM.
