Your phone uses three types of codes that are frequently confused: the IMEI identifies the device hardware, the SIM PIN protects access to the SIM card, and the PUK unlocks a PIN-blocked SIM. Each has a different purpose, a different length, and a different consequence if entered incorrectly.
The key points covered here:
- What the IMEI is, how its 15 digits are structured, and where to find it
- What the SIM PIN does and whether you should enable it
- What the PUK is and what happens when it is entered incorrectly ten times (permanent SIM destruction)
- Step-by-step instructions for recovering from a PIN-blocked SIM
If you want to understand what the SIM card itself stores before reading about the codes that protect it, see What Is a SIM Card?
What Is an IMEI?
IMEI stands for International Mobile Equipment Identity. It is a 15-digit number assigned to every individual mobile device and defined in 3GPP TS 23.003. The IMEI identifies the hardware — the phone itself — independently of which SIM card is inserted.
Structure of the 15 Digits
The 15 digits are divided into three fields:
| Field | Digits | Name | Meaning |
|---|---|---|---|
| TAC | 1–8 | Type Allocation Code | Identifies the device model and manufacturer |
| SNR | 9–14 | Serial Number | Uniquely identifies one unit of that model |
| CD | 15 | Check Digit | Computed by the Luhn algorithm (ISO/IEC 7812) to detect transcription errors |
The TAC is assigned by the GSMA’s Global Decimal Administrator (GDA). Checking any IMEI against a GSMA or carrier database will return the device manufacturer, model, and — in most countries — whether the device has been reported as stolen.
How to Find Your IMEI
Three reliable methods work on any phone:
- Dial
*#06#— the IMEI appears on screen immediately. No call is placed; it is a service code. - Settings menu:
- iPhone: Settings → General → About → IMEI
- Android: Settings → About Phone → Status → IMEI Information (path varies by manufacturer)
- Physical label:
- On the original retail box
- Printed on the SIM tray ejected from the device on many models
- Under a removable back cover on older models
On dual-SIM devices, two IMEIs are displayed — one per SIM slot (IMEI and IMEI2). Both are distinct 15-digit numbers.
What the IMEI Is Used For
Network registration. When a device registers with a mobile network, it sends its IMEI alongside the SIM’s IMSI. The network can cross-check the IMEI against the GSMA’s IMEI Database (formerly CEIR) to confirm the device is not blacklisted.
Stolen device blocking. If a phone is stolen, you can report the IMEI to your carrier. The carrier adds it to the GSMA Equipment Identity Register (EIR), which is shared among participating operators. A blacklisted IMEI can be blocked from registering on all cooperating networks in the country — rendering the device unable to make calls or use data even with a different SIM inserted.
Warranty and repair identification. Manufacturers use the TAC portion of the IMEI to identify the exact model and production batch during warranty claims or safety recalls.
Note: IMEI blocking coverage depends on the country and on which carriers participate in the EIR sharing agreement. Devices sold to different markets and IMEI databases differ in their completeness.
What Is a SIM PIN?
The SIM PIN (Personal Identification Number) is a 4- to 8-digit code that controls access to the SIM card at power-on. It is defined in ETSI ETS 300 922 and 3GPP TS 51.011.
When the SIM PIN is enabled, the phone prompts for the code every time it powers on or the SIM is reinserted. The network authentication step — which requires the SIM to respond to a cryptographic challenge — does not proceed until the correct PIN is entered.
Default PIN and First-Use Caution
Most carriers ship SIM cards with PIN protection disabled by default. Carriers that ship SIMs with PIN enabled typically set the default PIN to 0000 or 1234. This default is printed on the SIM card packaging.
If you receive a SIM with an enabled PIN and do not change the default immediately, anyone who obtains the card knows the PIN. Change the default to a unique code before using the SIM.
Why Enable the SIM PIN?
The SIM PIN is a hardware-layer protection. If someone removes your SIM card and inserts it into a different phone, they cannot use it without the PIN code — even if your device itself is turned off or reset. This is distinct from a device screen lock, which protects only the phone’s storage.
Enabling the SIM PIN is most relevant when:
- You carry high-value SIM data (corporate account, primary phone number)
- Your device could be physically separated from you (for example, during travel)
- You use SMS-based two-factor authentication for sensitive accounts
If your device screen lock is strong and full-disk encryption is enabled, removing and misusing the physical SIM is the primary remaining vector that the SIM PIN addresses.
How to Enable or Disable the SIM PIN
On iPhone: Settings → Mobile Data (or Cellular) → SIM PIN → toggle on/off
On Android (path varies by manufacturer): Settings → Security → SIM Card Lock → Lock SIM Card
Enabling the PIN for the first time asks for the current PIN (use the default printed on the SIM packaging if you have never changed it).
What Is a PUK?
PUK stands for Personal Unblocking Key (also called PIN Unblocking Key in some documentation). It is an 8-digit code supplied by your carrier that can unlock a SIM after the PIN retry counter is exhausted. PUK is defined in ETSI ETS 300 922 and 3GPP TS 51.011.
Unlike the PIN, you cannot set or change the PUK — it is a carrier-issued code fixed at the time the SIM is manufactured.
When Is the PUK Needed?
The PUK is only needed when the SIM PIN has been entered incorrectly three consecutive times. At that point, the SIM refuses all further PIN attempts. The phone displays a message such as “SIM blocked — enter PUK” or “Enter PUK code”.
A single correct entry in between resets the counter to zero. The three-attempt limit applies to three consecutive wrong entries.
Where to Find the PUK
- Original SIM packaging. Most carriers print the PUK on the card the SIM was packaged in, often behind a scratch-off panel or on the reverse side of a credit-card-sized holder. If you kept the original packaging, check there first.
- Carrier’s online account portal. Many carriers allow you to retrieve the PUK through the account management website after logging in.
- Carrier customer service. Call your carrier and request the PUK. The representative will ask you to verify your identity before revealing it.
The 10-Attempt Limit — Permanent SIM Destruction
The PUK also has a retry limit. After ten consecutive incorrect PUK entries, the SIM is permanently disabled and cannot be recovered under any circumstances. This is not a software lock — it is a hardware counter built into the SIM chip that cannot be reset.
A permanently locked SIM must be replaced. Your carrier can issue a replacement SIM linked to the same phone number and account, but the original physical card (or eSIM profile) cannot be revived.
Do not guess the PUK. If you do not have the PUK, retrieve it from one of the three sources above before attempting any entry.
PIN Blocked: Step-by-Step Recovery
If your SIM displays a “SIM blocked” or “enter PUK” message, follow these steps.
Step 1 — Do Not Guess
Stop entering codes until you have located the correct PUK. You have ten attempts total; wasting attempts on guesses risks permanent SIM loss.
Step 2 — Find the PUK
Check the original SIM packaging first. If you do not have it, log in to your carrier’s account portal or call customer service. Have your account credentials ready; carriers verify identity before disclosing PUK codes.
Step 3 — Enter the PUK
When prompted on your phone:
- Enter the 8-digit PUK exactly as provided.
- You will then be asked to set a new PIN. Choose a 4–8 digit code that is not a simple sequence (avoid
0000,1234,1111). - Confirm the new PIN.
The SIM unlocks and connects to the network immediately after a correct PUK entry. The new PIN you set during PUK entry becomes the current PIN.
Step 4 — If 10 Attempts Are Exhausted
Contact your carrier and request a SIM replacement. Provide your account number and identity verification. The carrier issues a new SIM (physical or eSIM profile) linked to your existing account and phone number. The process typically takes a few minutes at a carrier store or up to a few business days if ordered by post.
IMEI vs SIM PIN vs PUK — Summary Comparison
| IMEI | SIM PIN | PUK | |
|---|---|---|---|
| What it identifies/protects | The hardware device | The SIM card against unauthorised use | Unlocks a PIN-blocked SIM |
| Length | 15 digits | 4–8 digits | 8 digits |
| Who assigns it | GSMA GDA (via TAC) + manufacturer | Carrier default; user can change it | Carrier (fixed at SIM manufacture) |
| Can user change it? | No | Yes | No |
| Wrong-entry limit | No limit | 3 consecutive → SIM blocked | 10 consecutive → SIM permanently destroyed |
| Where to find it | *#06#, Settings, device box | SIM packaging (default) | SIM packaging, carrier portal, customer service |
| Standard | 3GPP TS 23.003 | ETSI ETS 300 922, 3GPP TS 51.011 | ETSI ETS 300 922, 3GPP TS 51.011 |
IMEI Uses: Stolen Phone Reporting and Dual SIM
Stolen Phone Reporting
If your phone is stolen, the IMEI enables two independent actions:
1. Report to your carrier. Contact your carrier immediately and provide the IMEI (have it written down in advance or stored in a cloud document). The carrier can add it to the EIR and block the device from connecting to their network.
2. File a police report. In many countries, a police report referencing the IMEI is required before carriers will block the device. The IMEI also helps identify a recovered device as yours.
Important limitation: IMEI blacklisting applies only to carriers that participate in the shared EIR. A device stolen in one country and used in another may not be blocked if the receiving country’s operators do not check or share the same blacklist. Coverage varies by country and operator.
For context on how SIM-level carrier restrictions (SIM lock) differ from IMEI blocking, see SIM Lock and SIM-Free Explained.
Dual-SIM Devices and Multiple IMEIs
A phone with two SIM slots — whether physical or eSIM — has two IMEIs. Each SIM slot is assigned a separate 15-digit identifier. When the device registers both SIMs simultaneously, both IMEIs are reported to the respective networks.
Each SIM slot also has its own independent PIN and PUK. If you have two SIMs active and enter the wrong PIN three times on one, only that SIM’s slot is blocked — the other SIM slot continues to function.
Some dual-SIM devices display both IMEIs at once when you dial *#06#. Others show them separately in Settings. Check your device’s manufacturer documentation if only one is shown.
What the IMEI Does Not Tell You
Several beliefs about IMEI are common but incorrect.
The IMEI does not reveal your location. The IMEI is used for network registration, not GPS or real-time tracking. Law enforcement with a court order can request network logs showing which cell towers a device connected to, but the IMEI alone does not expose location data to ordinary observers.
The IMEI does not determine which carriers you can use. Carrier compatibility is determined by the frequency bands the device supports and whether it is SIM-locked — not the IMEI. To verify band compatibility before travelling or buying a used device, see Frequency Bands and Device Compatibility.
A factory reset does not change the IMEI. The IMEI is stored in a read-protected area of the device’s firmware. Resetting the device to factory settings has no effect on it.
Changing the IMEI is illegal in many countries. Several jurisdictions criminalise modification of the IMEI, as it is commonly done to conceal stolen devices.
Troubleshooting: No Service After Entering PUK
If your phone shows no network after a successful PUK entry, do not re-enter codes. Try the following:
- Restart the phone. The network registration process restarts on reboot.
- Check for airplane mode. Confirm that airplane mode is off and mobile data is enabled.
- Verify the APN settings. Some devices reset APN configuration alongside SIM parameters. If data does not work after the PIN is accepted, verify the APN is set correctly for your carrier.
- Contact your carrier. If the SIM still shows no service after the above steps, the SIM card itself may have been damaged by the blocking event. Your carrier can verify from their side whether the SIM is active and, if necessary, issue a replacement.
For a broader diagnostic checklist when the phone shows no signal, see No Service: How to Diagnose and Fix a Lost Signal. If you cannot activate a new or replacement SIM, see Activation Failed: Why Your eSIM or SIM Won’t Activate.
FAQ
See the frontmatter for structured FAQ entries compatible with schema.org/FAQPage.
Can two different phones have the same IMEI? Each IMEI should be unique. However, counterfeits and some grey-market devices have been documented with duplicated IMEIs. If you are buying a used device, you can check the IMEI against the GSMA’s IMEI check service (imeicheck.net links to the GSMA) to verify that it has not been reported stolen or flagged.
My phone says “Invalid SIM” — is that a PUK issue? No. “Invalid SIM” usually means the network does not recognise the SIM at all, which is a different problem from PIN or PUK blocking. A PIN-blocked SIM shows a specific message asking for the PUK. “Invalid SIM” or “No SIM” errors are typically hardware, APN, or network compatibility issues. See No Service: How to Diagnose and Fix a Lost Signal for a step-by-step diagnosis.
Does the SIM PIN protect against SIM swap fraud? No. SIM swap fraud is an attack at the carrier level — an attacker convinces the carrier’s customer service to transfer your number to a SIM they control. This happens before the SIM reaches a device, so the PIN (which is enforced by the device at power-on) provides no protection. Protecting against SIM swap requires securing your carrier account with a strong account PIN and, where available, a port freeze or SIM lock feature offered by the carrier.
Related Guides
- What Is a SIM Card? — How SIM cards store credentials, authenticate to networks, and the five form factors from 1FF to eSIM
- SIM Lock and SIM-Free Explained — How carrier locks differ from SIM PIN locks and how to check and remove them
- Frequency Bands and Device Compatibility — How to verify whether a device supports the bands used by your carrier or destination country
- No Service: How to Diagnose and Fix a Lost Signal — Step-by-step diagnosis for no-signal errors beyond PIN and PUK issues
- Activation Failed: Why Your eSIM or SIM Won’t Activate — Fixes for SIM and eSIM activation errors after a SIM replacement or new plan