PIN vs PUK: what's the difference?
Your SIM can be protected with a 4 to 8-digit PIN, which you type when the phone starts. It's separate from your phone's screen lock. If someone enters the wrong PIN three times in a row, the SIM blocks itself to stop people guessing. To unblock it, you need the PUK (PIN Unblocking Key), an 8-digit code set by your network when the SIM was made.
| Code | Digits | Who sets it | Attempts before lock |
|---|---|---|---|
| SIM PIN | 4 to 8 | You (often off by default) | 3 |
| PUK | 8 | Your network | 10, then the SIM is blocked permanently |
Where to find your PUK
You'll usually find it in one of these places:
- The SIM card holder: the credit-card-sized plastic the SIM came in often has the PUK printed on the back.
- Your network's app or online account: most UK networks show the PUK after you sign in. This is the fastest route if you can get online on Wi-Fi or another device.
- Customer services: call from another phone. They'll check your identity before giving you the code.
We have network-specific guides for getting your O2 PUK code and the EE PUK code, plus help for Vodafone and Three PUK problems.
How to enter the PUK
- When the phone shows "SIM PUK locked" or "Enter PUK", type the 8-digit PUK carefully and confirm.
- Choose a new SIM PIN. Pick something you'll remember, and avoid 0000 or your birth year.
- Enter the new PIN again to confirm it.
- Your SIM unlocks and reconnects to the network. You can turn the PIN off afterwards if you don't want it.
On some Android phones you can also enter the PUK from the keypad: dial **05*PUK*newPIN*newPIN#. Only do this if the on-screen prompt isn't appearing.
If the SIM is permanently blocked
If you see "SIM permanently blocked" or "PUK attempts exceeded", the SIM can't be recovered. Ask your network for a replacement SIM (usually free) and you'll keep the same number. Our guide to ordering a replacement SIM explains the steps. If your network offers eSIM and your phone supports it, switching to an eSIM can get you back online the same day.
Should you keep a SIM PIN on?
A SIM PIN stops someone from taking your SIM, putting it in another phone and using your number, for example to receive security codes sent by text. If you'd rather not type it, you can turn it off:
- iPhone: Settings › Mobile Service › SIM PIN.
- Android: Settings › Security › More security settings › SIM card lock (wording varies by brand).
Write your PIN and PUK down somewhere safe, away from your phone.