PUK

Also known as: Personal Unblocking Key · PUK code

On this page 7

A PUK, or Personal Unblocking Key, is an eight-digit administrative code stored on a SIM card or eSIM profile that unblocks the card after the SIM PIN has been entered incorrectly too many times and lets the subscriber set a new PIN. In the field of SIM & eSIM technology, the PUK code is the second line of access control that protects the subscriber identity held on the card, and in telecommunications it is issued by the mobile operator rather than chosen by the user.

The PUK exists because the PIN alone is a weak barrier: a four-digit PIN can be guessed, so the card blocks itself after three failed attempts. The PUK then acts as the recovery key, but it is also limited, and ten wrong PUK entries permanently disable the SIM application, which means the card or profile must be replaced.

How the PUK unblocks a SIM PIN

The PUK works through retry counters held inside the SIM application on the card’s secure chip, not in the phone. The standards for the Universal Integrated Circuit Card, defined by ETSI and 3GPP, specify that each PIN has an associated unblocking key, a maximum number of attempts and a counter that decreases with every wrong entry.

When the PIN retry counter reaches zero, the card refuses every command that needs PIN verification, so the device cannot register on the network or read protected files such as stored contacts. The phone then prompts for the PUK. A correct PUK together with a new PIN resets the PIN counter to its maximum and restores normal operation in one step.

The sequence below shows the states a card passes through during a typical lockout and recovery.

Card stateTriggerWhat the device can do
PIN enabledPower-on or restartAsk for the PIN; emergency calls only
PIN verifiedCorrect PIN enteredRegister on the network and use services
PIN blockedThree wrong PIN entriesAsk for the PUK and a new PIN
PUK blockedTen wrong PUK entriesNothing; the SIM application is dead
SIM access states during a PIN lockout

Because the counters live on the card, moving a blocked SIM to another phone does not help: the new handset reads the same blocked state. Equally, a factory reset of the phone has no effect on the PIN or PUK status.

A SIM card usually carries two PIN and PUK pairs, plus an operator-only key. Users often confuse them, so it helps to know which code guards which function and how many attempts each allows.

CodeTypical lengthAttempts allowedPurpose
PIN14-8 digits3Protects the SIM at power-on
PUK18 digits10Unblocks PIN1 and sets a new one
PIN24-8 digits3Guards fixed dialing numbers and call cost limits
PUK28 digits10Unblocks PIN2
ADM keyOperator-definedOperator-definedLets the operator update protected files
Access codes found on a typical SIM

In everyday use, “the PUK” means PUK1, because PIN1 is the code people see each time they restart a phone. PUK2 matters only on devices that use fixed dialing numbers or similar restricted features, which are now uncommon on consumer phones.

The PUK is also distinct from the handset lock code and from the carrier’s network unlock code. The handset code locks the phone’s screen and data; the network unlock code removes a carrier restriction from the device. Neither affects the card, and the PUK cannot unlock a phone that is restricted to one operator.

How the PUK works with eSIM profiles

An eSIM profile has its own PIN and PUK, because each downloaded profile is a complete SIM application installed on the eUICC chip. When several profiles are present, each keeps independent retry counters, so blocking one profile does not affect the others.

The PUK for an eSIM is not printed on a plastic carrier card. Operators make it available through the customer account, the operator app or customer support, after identity checks. Many eSIM profiles ship with the PIN disabled, which means users rarely meet the PUK until they enable the PIN themselves.

The comparison below summarizes how PUK handling differs between the two formats.

AspectPhysical SIM cardeSIM profile
Where the PUK is shownPrinted on the card carrierOperator account, app or support
Scope of a lockoutThe whole cardOne profile only
Recovery after PUK blockNew card by post or in storeProfile deleted and re-downloaded
Typical recovery timeHours to several daysMinutes to hours
PUK handling on physical SIM cards and eSIM profiles

After a permanent PUK block on an eSIM, the operator issues a new activation code through remote SIM provisioning, and the old profile must be deleted from the device. The phone number stays the same, but the new profile receives a new ICCID.

Retrieving and using a PUK code safely

The PUK is assigned by the operator at manufacture and cannot be changed by the subscriber. The legitimate ways to obtain it are the card carrier supplied with the SIM, the operator’s online account, the operator app, or a call to support after identity verification. Third-party websites and generators cannot calculate a PUK, because the value is random and stored only by the operator and the card.

The decision table below lists common situations and the safest response to each.

SituationRecommended actionReason
PIN blocked, PUK at handEnter PUK slowly, then a new PINRestores service in one step
PIN blocked, PUK unknownGet the PUK from the operatorGuessing wastes the ten attempts
Several PUK attempts already failedStop and verify the code with supportRemaining attempts are limited
PUK blockedRequest a replacement SIM or eSIMThe SIM application cannot be revived
Unsolicited request for your PUKRefuse and contact the operatorIt may be fraud preparation
Recommended actions for PUK situations

Most phones show the number of remaining attempts on the PUK screen, and users should check it before each entry. Typing the PUK slowly matters, because a single transposed digit costs one attempt.

Security role and common mistakes

The PUK limits brute-force attacks on a stolen SIM: with three PIN attempts and ten PUK attempts, an attacker has almost no chance of guessing either code before the card disables itself. The cost of this protection is that careless users can destroy their own SIM, which is why operators guard PUK disclosure.

The PUK also plays a role in SIM swap fraud. Criminals sometimes ask victims for a PUK or try to obtain it from support staff, so operators should release it only after the same strong identity checks they apply to SIM replacement. A user who keeps the PIN enabled makes a stolen card far less useful to a thief.

  • Guessing the PUK instead of retrieving it, which can end in a permanent block.
  • Confusing PUK1 and PUK2, which fails because each unblocks a different PIN.
  • Discarding the card carrier that shows the PUK, leaving no offline record.
  • Believing a phone reset helps, although the counters are stored on the card.
  • Sharing the PUK with callers who claim to represent the operator.

Stripped to the essentials

Your SIM has a short PIN, like a lock on a front door. If someone types the wrong PIN three times, the SIM locks itself to stop guessing. The PUK is the spare master key that opens that lock and lets you choose a new PIN.

The spare key has limits too. You get ten tries with the PUK, and if all ten are wrong, the SIM stops working for good and you need a new one. So the safe move is simple: never guess the PUK, and ask your mobile operator for it instead.

Where it is applied

A traveler restarts her phone at an airport and, tired after a long flight, enters an old PIN three times. The phone shows “PIN blocked” and asks for an eight-digit PUK. The plastic card carrier is at home, so she connects to the airport Wi-Fi, signs in to her operator’s app and finds the PUK under the SIM details after a one-time verification code sent to her email.

She types the PUK carefully, watching the counter that shows ten remaining attempts, and then sets a new four-digit PIN. The phone registers on a roaming network within a minute. The whole recovery takes about five minutes, and she avoids a replacement SIM that would have left her without service for days abroad.