An eSIM QR code is a two-dimensional barcode that carries an eSIM activation code: a short text string telling a device which provisioning server to contact and which subscriber profile to request. In the SIM & eSIM domain of telecommunications, it is the most common way a consumer moves from buying a mobile plan to having a working downloadable SIM profile on an embedded chip.
The QR code itself contains no subscriber credentials. It is a pointer and a one-time claim ticket. The secret keys that authenticate the device to the mobile network arrive later, inside an encrypted profile package that only the target chip can decrypt.
What the activation code inside the QR code contains
The QR code encodes a structured activation code defined by the GSMA consumer Remote SIM Provisioning specification, commonly referenced as SGP.22. A typical string looks like LPA:1$smdp.example.net$K2-3XYZ-ABCDE, where each field is separated by a dollar sign and read by the phone in a fixed order.
The following table breaks the string into its fields and explains the role of each one during activation.
| Field | Example value | Purpose |
|---|---|---|
| Format prefix | LPA:1 | Identifies the string as an activation code, version 1 |
| SM-DP+ address | smdp.example.net | Fully qualified domain name of the profile server |
| Matching ID | K2-3XYZ-ABCDE | Links the request to one prepared profile order |
| SM-DP+ OID | Optional object identifier | Identifies the server certificate when needed |
| Confirmation flag | 1 or absent | Signals that a separate confirmation code is required |
The Matching ID is the critical element. The operator generates it when it reserves a profile for a specific customer order, and the SM-DP+ server uses it to find that reservation. Without a valid Matching ID the server has nothing to release, which is why a generic QR code cannot activate service.
How scanning the code leads to an installed profile
Scanning starts a secured download session between the phone, the provisioning server and the embedded chip. The software that drives the process is the Local Profile Assistant, or LPA, which is part of the operating system on consumer phones, tablets and smartwatches.
- The LPA decodes the QR code and extracts the SM-DP+ address and Matching ID.
- The phone opens a TLS connection to the server over Wi-Fi or another active data link.
- The eUICC and the server perform mutual authentication using certificates issued under the GSMA certificate hierarchy.
- The server checks the Matching ID and, if configured, asks the user for a confirmation code.
- The server builds a Bound Profile Package encrypted for that specific eUICC and sends it.
- The eUICC decrypts and installs the profile, and the user enables it as a cellular line.
Because the package is bound to one eUICC, an intercepted download is useless on another device. The step that requires the most care is therefore not the radio link but who holds the QR code before it is first used.
Single-use behavior and code lifecycle
An eSIM QR code is normally valid for one successful download. After the profile has been delivered, the server marks the order as consumed, and scanning the same code again returns an error. Operators also set an expiry window, which commonly ranges from a few days to several weeks depending on the carrier.
This table maps the usual server-side states of an activation order to what the user experiences when scanning.
| Order state | What scanning does | Usual remedy |
|---|---|---|
| Released | Download and installation succeed | None needed |
| Downloaded | Error stating the profile is already used | Request a new code from the operator |
| Expired | Error or no matching order found | Reissue the profile order |
| Canceled | Order not found | Contact customer support |
| Deleted on device | Old code still rejected | Operator must prepare a fresh profile |
A frequent misconception is that a deleted eSIM can be restored by rescanning the original code. In most deployments it cannot, because the profile was consumed on first download. Some operators permit profile reuse for the same device, but this is a carrier policy rather than a property of the standard.
QR codes compared with other activation methods
The QR code is only one of several entry points into the same provisioning flow. Phones can also receive a profile through manual code entry, an operator app, discovery service lookups or a device-to-device transfer, and each method suits different situations.
| Method | How the device gets the order | Best suited to |
|---|---|---|
| QR code scan | Camera reads the activation code | Retail stores, printed letters, email delivery |
| Manual entry | User types the SM-DP+ address and Matching ID | Scanning impossible on the same screen |
| Carrier app | App passes the order to the LPA directly | Self-service sign-up on the phone itself |
| SM-DS discovery | Phone polls a discovery server for pending events | Activation without any code to handle |
| eSIM transfer | Old phone hands the line to the new phone | Device upgrades within one ecosystem |
A practical limitation of the QR method is that a single phone cannot easily scan a code displayed on its own screen. Modern operating systems address this by letting users import a code from an image or by offering the manual entry fields, which accept exactly the same data.
Security risks and safe handling
An unused eSIM QR code should be treated like a physical SIM card in an envelope. Anyone who scans it first, on any compatible device, receives the subscriber line, including incoming calls and SMS one-time passwords. This makes leaked codes a vector for SIM swap fraud.
The table below lists common handling mistakes, why they matter and how operators and users can reduce the exposure.
| Mistake | Consequence | Countermeasure |
|---|---|---|
| Posting the code in a screenshot | Third party can download the line | Share codes only through private channels |
| Emailing codes without extra checks | Mailbox compromise exposes the number | Require a confirmation code sent separately |
| Scanning a code from an unknown sender | Device may join an unwanted plan | Verify the SM-DP+ domain matches the operator |
| Keeping used codes as a backup | False sense of recoverability | Record the account details instead |
| Reissuing codes without identity checks | Social engineering takes over accounts | Apply strong identity verification |
Operators increasingly bind orders to a device identifier, such as the EID of the target eUICC, so that the profile is released only to the intended hardware. This EID binding largely neutralizes code theft, although it requires the customer to provide the EID during purchase.
Where QR activation fits in consumer and IoT provisioning
QR activation belongs to the consumer model, in which a person with a screen approves each download. Machine-to-machine devices historically used the separate SGP.02 model, which pushes profiles from a server-driven platform, and the newer SGP.32 specification adapts consumer-style flows to headless IoT devices that cannot scan anything.
Within the consumer model, the QR code remains popular because it is operator-neutral, works with printed materials and requires no installed app. Its weakness is the manual step: travel eSIM sellers, retail staff and support agents still spend significant time helping users scan, confirm and label new lines correctly.
Stripped to the essentials
An eSIM QR code works like a collection ticket for a SIM card. The ticket does not contain the SIM itself. It tells your phone which counter to visit and which order number to collect.
When you scan it, the phone contacts the operator’s server, proves it is a genuine eSIM device and receives a locked digital SIM that only that phone can open. After that, the ticket is spent. Keep an unused code private, because whoever scans it first gets your phone number.
Where it is applied
A business traveler lands in a foreign airport and buys a ten-day data plan online. The seller emails a QR code and a separate four-digit confirmation code. Over the airport Wi-Fi, the traveler opens the cellular settings, chooses to add an eSIM and scans the code from a laptop screen.
The phone contacts the SM-DP+ server, asks for the confirmation code and downloads the profile in under a minute. The traveler labels the new line as data only, keeps the home number active for calls, and has working mobile data before leaving the terminal. A day later, a colleague asks to reuse the same QR code and discovers that it is rejected as already consumed, so the colleague buys a separate plan.