Mobile networks

What is a PUK code and how to unlock a blocked SIM

A PUK code unlocks a SIM that has been blocked after wrong PIN entries. Here's what a PUK is, how to find yours on EE, O2, Vodafone and Three, how to use it, and what to do if the SIM is permanently blocked.

13 min read
Managing Director, OmegaIT · OmegaIT · Published 19 June 2026
On this page

If your phone is showing 'SIM blocked', 'enter PUK', or 'PUK code required', do not panic — your number and SIM are almost certainly fine, and you just need your PUK code to unlock them. A PUK (Personal Unblocking Key) is an eight-digit code that releases a SIM after it has been locked by too many wrong SIM PIN entries. This guide explains exactly what a PUK is, the difference between a SIM PIN and a PUK, how to find your PUK on EE, O2, Vodafone and Three, how to enter it correctly, and — crucially — the one mistake that can permanently block the SIM, along with what to do if that happens. With the right PUK to hand, unlocking a blocked SIM takes under a minute.

What is a PUK code?

A PUK — Personal Unblocking Key, sometimes called a PUC (Personal Unblocking Code) — is an eight-digit code assigned to your SIM card by your mobile network. Its job is to rescue a SIM that has been locked because someone (often you) entered the wrong SIM PIN too many times. The SIM PIN is a short, separate security code that protects the SIM itself: if your phone is set to ask for a SIM PIN when it powers on, and the wrong PIN is entered three times in a row, the SIM locks as a security measure and demands the PUK before it will work again. The PUK is the master key that clears that lock and lets you set a new SIM PIN. It is unique to your SIM, fixed by the network, and cannot be changed by you — which is exactly why you need to know where to find it rather than trying to guess it.

SIM PIN vs PUK vs screen lock: the difference

It is worth being precise here, because mixing these up is the source of a lot of confusion. Your phone's screen lock (a passcode, pattern, fingerprint or face unlock) protects access to the handset and its contents; it is set by you on the device and has nothing to do with the SIM or the PUK. The SIM PIN is a separate, optional security code attached to the SIM card itself: when enabled, the phone asks for it each time it starts up, so that if your phone is stolen the thief cannot simply move your SIM into another handset and use your number. The PUK exists only to recover the SIM after the SIM PIN has been entered wrongly too many times. So if your phone is asking for a 'PUK' or saying the SIM is blocked, the issue is specifically with the SIM PIN security on the SIM — not your screen lock, and not your network account password. Knowing which code you are being asked for tells you immediately where to look for the answer.

How to find your PUK code on each network

There are several reliable places to find your PUK, and you do not need the phone the SIM is in to be working. The quickest routes are usually your network's app or online account, the original packaging the SIM came in, or a quick call to customer services. Here is where to look on the four main networks.

  1. Your network's app or online account

    Sign in to My EE, My O2, My Vodafone or My3 (in the app or on the website) from any device, and look under your SIM or device settings for the PUK. This is often the fastest route.

  2. The original SIM card holder

    The credit-card-sized plastic the SIM was pushed out of usually prints the PUK (and sometimes the default SIM PIN) on it. Dig it out if you kept it.

  3. Call your network

    From another phone, call customer services — EE on 150 (or 0800 956 6000), O2 on 202 (or 0344 809 0202), Vodafone on 191 (or 0333 304 0191), Three on 333 (or 0333 338 1001) — and after verifying your identity they can read out your PUK.

  4. Web 'PUK finder' tools

    Some networks have an online PUK-unlock page where you confirm your details and they show or text the PUK. Use only the network's own official page.

Whichever route you use, the network is verifying that you are the account holder before handing over the PUK, which is a security feature — the PUK is what protects your number if the phone is lost, so it should not be easy for a stranger to obtain. If you are between phones or your only handset is the blocked one, use another device or borrow a phone to access the app or call, since you need a working phone to retrieve the code online or by phone.

How to use the PUK to unlock your SIM

  1. Wait for the PUK prompt

    When the SIM is blocked, the phone displays 'Enter PUK' or 'SIM blocked'. If it doesn't, restart the phone and it should ask.

  2. Enter the 8-digit PUK carefully

    Type the PUK exactly. Double-check each digit before confirming — you have a limited number of attempts.

  3. Set a new SIM PIN

    The phone will ask you to choose a new SIM PIN (usually 4 digits). Pick something you'll remember but isn't obvious, and note it somewhere safe.

  4. Confirm and test

    Re-enter the new PIN to confirm. The SIM unlocks and your signal returns. Make a quick test call to check all is well.

Once unlocked, your number, contacts on the SIM, and service all return exactly as before — being blocked does not wipe anything or change your number. If you would rather not be asked for a SIM PIN at all in future (to avoid another lockout), you can usually turn off the SIM PIN requirement in your phone's security settings, though leaving it on does provide genuine protection if your phone is stolen.

The one mistake that permanently blocks a SIM

Here is the critical warning: while a wrong SIM PIN only locks the SIM temporarily (recoverable with the PUK), entering the PUK itself wrongly too many times permanently blocks the SIM. You typically get ten attempts at the PUK, and after the tenth incorrect entry the SIM is dead for good — no further code will revive it. This is a deliberate security design: it stops anyone brute-forcing the PUK to hijack your number. The practical consequence is that you must enter the PUK carefully and only when you are sure it is correct. Do not guess at a PUK; if you are unsure, stop and retrieve the correct one from your account or by calling your network before you use up attempts. Treating the PUK with this care is the difference between a one-minute unlock and needing a replacement SIM.

What if the SIM is permanently blocked?

If you have exhausted the PUK attempts and the SIM is permanently blocked, the good news is that you do not lose your phone number. Your number is tied to your network account, not to the physical SIM, so the fix is simply to get a replacement SIM from your network and have your number transferred onto it — a routine, usually free, request. Contact your network (in store, via the app, or by phone), ask for a replacement SIM keeping the same number, and once it arrives and is activated, your number, plan and service continue as before. The only things genuinely lost are any contacts or texts that were stored *on the SIM itself* (rather than in your account, Google/Apple account or phone storage), which on modern phones is usually very little, since contacts typically sync to your cloud account. So even the worst-case PUK outcome is an inconvenience, not a disaster: you keep your number and your plan, and you are back up and running once the new SIM arrives.

Avoiding SIM lockouts in future

A few simple habits stop you ever facing a PUK prompt again. The most effective is to set a SIM PIN you will actually remember — or, if you do not feel you need the SIM-level security, to turn the SIM PIN off entirely in your phone's settings, so there is no PIN to get wrong. If you keep a SIM PIN, avoid changing it on a whim and forgetting the new value, and never let someone else (a child experimenting, for instance) enter PINs into your phone. It is also worth storing your PUK somewhere safe but separate from your phone — in a password manager, or with your important documents — so that if a lockout ever happens you can resolve it instantly rather than scrambling to find the code. And keep the original SIM holder if you can, since it prints the PUK. These small steps mean that even if a lockout occurs, you are minutes from fixing it rather than facing a replacement SIM.

It is also worth knowing that SIM lockouts sometimes happen by accident in a pocket or bag, where the phone's keypad is pressed repeatedly and 'enters' wrong PINs. If your phone tends to live loose in a pocket, a screen lock that prevents accidental key presses helps, and again, having your PUK accessible means an accidental lockout is trivially fixed. None of this is about the SIM being faulty — a blocked SIM is the security system working as intended — so the right response is simply to know your PUK and enter it correctly, rather than worrying that something has gone wrong with the SIM or your number.

PUK codes, security and your number

Stepping back, the PUK is part of a layered system designed to protect your number and identity, and understanding that helps you treat it appropriately. The SIM PIN stops a thief using your number by moving your SIM to another phone; the PUK stops a thief brute-forcing the SIM PIN; and the network's identity checks stop a stranger obtaining your PUK. Each layer guards your number, which matters because your number is increasingly a key to your digital life — many accounts use it for two-factor codes, password resets and verification. That is also why SIM-swap fraud, where a criminal tricks a network into moving your number to their SIM, is a real (if relatively rare) threat: the same protections that frustrate you during a lockout are the ones defending against that. So while a PUK prompt is annoying, the security it represents is on your side. If you ever receive an unexpected message or call claiming your SIM or number needs 'reactivating' and asking for codes, treat it as a potential scam — look up the number and verify with your network directly, as covered in our who called me? guide, rather than handing over any codes.

Should you use a SIM PIN at all?

A reasonable question, once you have been through a lockout, is whether to bother with a SIM PIN in the first place. The honest answer is that it depends on your circumstances, and both choices are valid. Keeping a SIM PIN on protects your number specifically against the scenario where your phone is stolen and the thief tries to move your SIM into another handset to use your number — receiving your calls, texts and crucially any two-factor security codes. For anyone who relies heavily on their number for account security, or who is at higher risk of theft, that protection is worth the minor inconvenience of entering a PIN when the phone restarts. Turning the SIM PIN off removes the lockout risk entirely (no PIN means no PUK prompt) and is reasonable for people who judge the theft scenario unlikely, or who find the PIN more nuisance than benefit — particularly because a stolen modern phone is usually protected by a strong screen lock anyway. The key point is to make it a deliberate choice: decide whether you want the SIM-level protection, set a PIN you will reliably remember if you do, and turn it off cleanly if you do not — rather than leaving a half-remembered PIN that leads to an accidental lockout.

Whichever you choose, the broader principle is to protect your number, because it has become a linchpin of modern identity. Many services send security codes by text, and use your number for password resets, so control of your number is control of a great deal else. That is the same logic behind keeping your network account secure and being alert to attempts to move your number without your consent. If you ever plan to switch networks, you will keep your number through the proper porting process rather than anything involving your PUK — our PAC code guide explains that, and our best mobile network in the UK guide helps if you are weighing up a move. Understanding how your number, SIM PIN, PUK and account fit together turns a confusing 'SIM blocked' message into a problem you can resolve calmly in a minute.

Common PUK situations and what to do

A few specific situations bring people to a PUK prompt, and it helps to know the right response to each. A child or someone else has been pressing keys on your phone and triggered the lock: simply retrieve and enter your PUK, then set a new SIM PIN and keep the phone out of reach of curious fingers. The phone has been in a pocket or bag and pressed keys against itself: the same fix, and consider a screen lock that prevents accidental presses. You've just switched phones and the new one is asking for a SIM PIN you never set: the SIM PIN may be the network's default (sometimes printed on the SIM holder) rather than one you chose, so check the holder or your account before guessing and risking the PUK. You bought a second-hand or older SIM and don't know its PIN: contact the network to confirm, rather than guessing. And the dreaded 'SIM permanently blocked' after too many PUK errors: order a free replacement SIM keeping your number. In every case the reassuring constant is that your number is safe on your account — the SIM is just a key to it, and a new key can always be issued. Knowing which network you're on matters for getting the right replacement; if you're ever unsure which operator a number belongs to, our UK mobile networks by 07 prefix guide explains the ranges.

Where the PUK fits among your phone's codes

By now it should be clear that a modern phone involves several distinct codes, and keeping them straight saves a lot of confusion when something asks you to 'enter a code'. Your screen lock (passcode, pattern, fingerprint, face) guards the handset. Your SIM PIN guards the SIM, asked for at start-up. Your PUK rescues the SIM if the SIM PIN is wrong too often. Separately, your network account has its own login and password (for the app and online account), and your voicemail has its own PIN again — for example, the PIN you set when you first dial your network's voicemail short code, as covered in our Vodafone voicemail guide and the equivalents for other networks. These are all different, set or held in different places, and serve different purposes, which is exactly why a vague 'enter your code' prompt can be confusing. The trick is to read precisely what is being asked: 'SIM blocked / enter PUK' means the eight-digit network PUK; 'enter SIM PIN' means the short SIM code; a request to confirm your identity to customer services means your account security details; and a voicemail prompt means your voicemail PIN. Match the prompt to the right code and you will rarely be stuck.

Storing these sensibly is the final piece. A reputable password manager is ideal for keeping your PUK, account login and voicemail PIN, because it puts them somewhere secure but accessible from another device if your phone is the one that is locked. Avoid writing the SIM PIN on the phone itself or on the SIM holder you keep with the phone, which would defeat the security. With your PUK safely recorded, even the worst SIM lockout is a sixty-second fix rather than a trip to a shop, and you keep the genuine protection a SIM PIN offers without the risk of being permanently locked out. That balance — real security, easily recoverable — is the goal, and it is entirely achievable with a couple of minutes of preparation.

Bottom line

A PUK is an eight-digit Personal Unblocking Key that unlocks a SIM blocked after too many wrong SIM PIN entries — different from your SIM PIN and your phone's screen lock. Find yours in your network's app (My EE, My O2, My Vodafone, My3), on the original SIM holder, or by calling your network and verifying your identity. Enter it carefully: you get around ten attempts, and getting the PUK wrong that many times permanently blocks the SIM. If that happens, you keep your number — just get a free replacement SIM. Set a memorable SIM PIN (or turn it off) and store your PUK somewhere safe to avoid future lockouts. And treat any unexpected 'reactivate your SIM' message as a possible scam — check the number and verify with your network. For keeping your number when you switch networks, see our PAC code guide.

Look up a number right now

Type any UK number — Ofcom range holder + live AI internet check.

Frequently asked questions

What is a PUK code?

A PUK (Personal Unblocking Key) is an eight-digit code set by your network that unlocks a SIM card after it has been blocked by too many wrong SIM PIN entries. It is unique to your SIM and cannot be changed by you, which is why you retrieve it from your network rather than guessing it.

How do I find my PUK code?

Look in your network's app or online account (My EE, My O2, My Vodafone, My3), on the original plastic SIM card holder, or call your network's customer services and verify your identity. EE is 150, O2 is 202, Vodafone is 191 and Three is 333 from another phone.

What's the difference between a SIM PIN and a PUK?

The SIM PIN is a short code (usually 4 digits) that protects the SIM and is asked for when the phone starts up. The PUK is an 8-digit code that unlocks the SIM after the PIN has been entered wrongly three times. Both are separate from your phone's screen lock.

How many times can I enter the PUK wrong?

Typically ten times. After ten incorrect PUK entries the SIM is permanently blocked and cannot be recovered with any code. This is a security feature to prevent brute-forcing, so never guess a PUK — retrieve the correct one first.

What happens if my SIM is permanently blocked?

You keep your phone number, because it is tied to your network account, not the SIM. Simply ask your network for a replacement SIM keeping the same number; it is usually free. Only contacts or texts stored on the SIM itself are lost, which on modern phones is usually little, as contacts sync to your cloud account.

Does entering the PUK wipe my phone?

No. Using the PUK to unlock a blocked SIM does not erase anything or change your number. Once unlocked, your service, number and SIM contacts return exactly as before. The PUK only clears the SIM PIN lock and lets you set a new SIM PIN.

Why is my phone asking for a PUK?

Because the SIM PIN was entered incorrectly three times in a row, which locks the SIM as a security measure. This can happen by accident, for example keys pressed in a pocket. Enter your correct PUK to unlock it and set a new SIM PIN.

Can I change my PUK code?

No. The PUK is fixed by your network and cannot be changed by you, unlike the SIM PIN which you can set. If your SIM is replaced, the new SIM has its own PUK. Store your PUK somewhere safe so you can unlock the SIM quickly if it is ever blocked.

How do I avoid SIM lockouts?

Set a SIM PIN you will remember, or turn the SIM PIN off in your phone's security settings if you do not need it. Keep the original SIM holder or store your PUK in a password manager, and prevent accidental key presses by keeping a screen lock on.

Is a 'reactivate your SIM' text asking for codes a scam?

Treat it as a likely scam. Networks do not normally text you asking for PUK or PIN codes to 'reactivate' a SIM. Do not share any codes; instead look the number up and contact your network directly through its official app or number to check.

Sources & references

  1. UK mobile-number allocations — 07 ranges by MNO
    Ofcomwww.ofcom.org.uk/phones-and-broadband/phone-numbers/numbering-policy/numbering-plan
  2. UK number portability rules
    Ofcomwww.ofcom.org.uk/phones-and-broadband/switching/switching-broadband-or-phone
  3. Ofcom — switching mobile provider (text-to-switch, PAC/STAC)
    Ofcomwww.ofcom.org.uk/phones-and-broadband/switching/switch-mobile-network
  4. Apple Support — iPhone call forwarding, voicemail and Wi-Fi calling
    Applesupport.apple.com/en-gb/guide/iphone/welcome/ios