Skip to main content

SIM

O2 PUK code: how to get it and unblock your SIM

Where O2 shows your PUK code in My O2, how to get it when the blocked phone is the only one you have, how many tries you get, and how a PUK differs from a SIM PIN, an unlock code and a PAC.

Edited by Frank Martin. Last checked on against the sources listed at the end. Atlas Mobile is not part of O2. General information, not legal or financial advice.

The short version

A PUK (Personal Unblocking Key) unblocks a SIM after the wrong SIM PIN has been entered too many times.

O2 shows it in My O2: go to Manage SIM, then choose IMEI and PUK.

Do not guess it. A SIM allows ten tries at the PUK, and after the tenth wrong one it is blocked for good.

A blocked SIM cannot call, text or use mobile data, so look the code up over WiFi or on another device.

A PUK does not free a handset from a network and it is not a PAC.

If your phone says SIM locked, PIN blocked or Enter PUK, the SIM card has shut itself off. It happens when the SIM PIN is typed wrongly several times in a row, often by a child, in a pocket, or after the phone restarts and asks for a PIN nobody remembers setting.

Nothing is broken and no data is lost. The SIM needs one code, the PUK, and O2 gives it to you free. This guide shows where it is and how to use it without making things worse.

Why the phone is asking for a PUK

A SIM PIN is a short code that protects the SIM card itself. When it is switched on, the phone asks for it each time it restarts. It is separate from the passcode, fingerprint or face unlock that protects the handset.

O2's help page says only that entering the wrong PIN too many times can block your SIM. The limit is part of how SIM cards work, and other networks spell it out: Tesco Mobile, which runs on O2's network, and EE both say three wrong PINs in a row block the SIM. From then on the phone will not accept the PIN at all, even the right one. It asks for the PUK instead.

How to get your PUK from O2

  1. Sign in to My O2, on the website or in the app.
  2. Go to Manage SIM.
  3. Choose IMEI and PUK. The PUK for your SIM is shown on the screen.

That is the whole of O2's published route. The catch is that the phone with the blocked SIM has no mobile service, so it cannot receive a sign-in text or load My O2 over mobile data. Use one of these instead:

  • The same phone on WiFi. The My O2 app and website still work over WiFi while the SIM is blocked. If My O2 wants to send a sign-in code, have it sent by email: a code sent by text cannot arrive on a blocked SIM. See My O2 sign-in problems.
  • Another phone, tablet or computer. Sign in to My O2 with your username and password.
  • Call O2 from a different phone. 0344 809 0202 for Pay Monthly or 0344 809 0222 for Pay As You Go. O2 will want to confirm who you are before giving out the code. What to have ready is in how to contact O2.
  • An O2 shop. Take the phone and some ID, since staff will need to confirm the account is yours.

Only use a PUK that came from O2 for this SIM. Each PUK works with the one SIM it was issued for. A code from a website, from another SIM or from a different network uses up your tries and gets you nowhere.

Entering the PUK

  1. On the Enter PUK screen, type the eight-digit code exactly as My O2 shows it and confirm.
  2. The phone then asks you to choose a new SIM PIN. Pick one you will remember and enter it twice.
  3. The SIM unblocks straight away and the signal comes back.

Type slowly. A SIM allows ten attempts at the PUK. Tesco Mobile and Vodafone both state that ten wrong entries block the SIM permanently, and EE gives the same figure. If you have already had a few goes with a guessed code, stop and get the real one.

This is also how you recover from a forgotten SIM PIN. There is no way to look up a PIN you set yourself, but the PUK lets you replace it with a new one.

If the SIM is permanently blocked

After ten wrong PUKs the SIM is finished and no code will bring it back. Your number, plan and credit are not affected, because they live on your O2 account and not on the card. You need a replacement SIM with the number moved onto it, which O2 calls a SIM swap. O2 says you can ask for one when a SIM is lost, stolen or damaged.

Arrange it by contacting O2 or visiting an O2 shop. A swap keeps your number, plan and bill as they are. On a phone that supports it, the replacement can be an eSIM instead of a plastic card: see O2 eSIM.

PUK, PIN, passcode, unlock code or PAC: which is which

These get mixed up constantly, and asking O2 for the wrong one wastes a call.

CodeWhat it doesWhere it comes from
SIM PINProtects the SIM. Asked for when the phone restarts, if you have switched it on.You set it, in the phone's settings.
PUKUnblocks the SIM after too many wrong SIM PINs.O2: My O2, Manage SIM, then IMEI and PUK.
Phone passcodeProtects the handset and what is stored on it.You set it. It belongs to the phone, so resetting it is done through Apple, Google or the maker, not O2.
Network unlock codeLets a handset that is locked to one network take another network's SIM.The network the phone is locked to. See unlocking an O2 phone.
PACMoves your number to another network.Text PAC to 65075. See PAC codes.
IMEINot a code to enter: the handset's own identity number.Dial *#06# on the phone, or look in the same My O2 screen. See finding your number and IMEI.

So a PUK will not help with a phone that says it is locked to another network, and it will not get you past a forgotten screen passcode.

Changing the SIM PIN or switching it off

The SIM PIN is controlled from the phone, not from My O2. On an iPhone it is in Settings, in the mobile service section, under SIM PIN. On Android it is usually in the security settings as SIM card lock, though the exact place varies by maker. You need the current PIN to change it or turn it off.

A SIM PIN is worth having. Without one, anyone who takes the SIM out of a lost phone can put it in another handset and receive your calls and security texts. If your phone is lost or stolen, the steps to take are in lost or stolen O2 phones.

Questions people ask

How do I get my O2 PUK code?

Sign in to My O2, go to Manage SIM and choose IMEI and PUK. If the blocked phone is your only device, use it over WiFi, or call O2 from another phone on 0344 809 0202 (Pay Monthly) or 0344 809 0222 (Pay As You Go).

Is an O2 PUK code free?

Yes. O2 shows it in My O2 at no charge.

How many attempts do I get at the PUK?

Ten. After ten wrong entries the SIM is permanently blocked and has to be replaced.

I have forgotten my SIM PIN. What should I do?

Do not keep guessing. Once the phone asks for the PUK, get it from My O2 and enter it. The phone then lets you set a new SIM PIN.

Is a PUK the same as a network unlock code?

No. A PUK unblocks a SIM card. A network unlock code frees a handset to work with other networks' SIMs.

Will I lose my number if the SIM is permanently blocked?

No. The number belongs to your O2 account. O2 moves it to a replacement SIM or an eSIM.

Where this information comes from

Every figure and rule in this guide was checked on 24 November 2026 against the pages below. Networks change prices and terms without much notice, so use the links to confirm anything you are about to rely on. A guide describes the general rule. It cannot take account of your own contract, so check the figure for your own account before you act on it.

Found something out of date? Email contact@atlasmobile.co.uk and we will check it and correct the guide.