How does a SIM card and eSIM work?
The secret key never leaves the chip and is never sent over the air: only the answer to a fresh random challenge is. That is why copying a phone number isn’t enough to impersonate a SIM.
Overview
Short answer
A SIM is a tiny secure computer holding a secret key. See how the network checks it, and how an eSIM downloads a new profile.
A SIM card looks like a scrap of plastic, but it is a tiny secure computer. It proves to the mobile network that you are a paying subscriber, without ever revealing the secret that proves it. An eSIM is the same computer, soldered inside the phone and programmable over the air.
Play with the figure, then press Next (or the → key) to go step by step.
What a SIM stores
Each SIM holds a profile: an international subscriber number (IMSI) that identifies your account, and a 128-bit secret key that only the SIM and your carrier's authentication centre know. It also stores network settings and can run small security programs. The chip is designed so the key can't be read out, even with the card in your hand.
Challenge and response
When your phone joins the network, the network sends a random number. The SIM mixes it with the secret key using a cryptographic algorithm and sends back the result. The network does the same calculation and compares. A match proves the SIM has the key, and the same calculation produces the encryption keys for your calls and data. Because every challenge is new, eavesdroppers learn nothing reusable.
What changes with an eSIM
An eSIM (embedded SIM, or eUICC) is a chip built into the phone. Instead of posting you a card, the carrier gives you a QR code or app link. The phone uses it to contact the carrier's provisioning server and download an encrypted profile straight into the chip. The chip can store several profiles, for home, work or travel, and you switch between them in settings.
Why it matters
eSIMs make switching carriers or buying a local data plan abroad a matter of minutes. They free space inside the phone, can't fall out or be swapped by a thief, and let a watch or tablet have its own number. The downside: moving to a new phone means transferring the profile through the carrier or the phone's transfer tool rather than just moving a card.
Common myths
- "Your contacts are stored on the SIM." Today they are almost always stored on the phone or in the cloud.
- "eSIMs are easier to hack." They use the same secure-element design and keys; the risk is more in carriers being tricked into moving your number (SIM swap fraud).
- "An eSIM needs Wi-Fi forever." Only the download needs an internet connection; after that it works like any SIM.
Questions people ask
Can I use an eSIM and a physical SIM at the same time?
On most dual-SIM phones, yes: one physical SIM plus one eSIM active together, or two eSIMs on newer models. You can choose which line handles data, calls and texts.
How do I move my eSIM to a new phone?
Use the phone’s built-in transfer option or ask your carrier for a new QR code. Deleting the old profile first without a replacement can leave you without service.
Are travel eSIMs worth it?
Often, yes. A local or regional data eSIM is usually much cheaper than roaming, and you can keep your home number active for calls and texts.
What is SIM swap fraud?
A criminal persuades your carrier to move your number to their SIM, then receives your text-message codes. Use a carrier PIN and app-based two-factor authentication to protect yourself.
Does every phone support eSIM?
Most recent mid-range and flagship phones do; some markets and carriers still have limited support. Check the phone’s settings for an option to add an eSIM.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01What does the SIM keep secret?
02How does the network check your SIM is genuine?
03How does a new eSIM profile reach your phone?
04Why can’t a thief reuse an answer they overheard?
Sources & more
Sources
- eSIM (Wikipedia)(opens in a new tab)
- SIM card (Wikipedia)(opens in a new tab)
- eSIM (GSMA)(opens in a new tab)
- SIM swap scam (Wikipedia)(opens in a new tab)
Last updated 2026-11-26
Keep exploring
- Internet & WirelessExplore it
How does Bluetooth work?
- Internet & WirelessExplore it
How does WiFi work?
- Internet & WirelessExplore it
How does a QR code work?
- Internet & WirelessExplore it
How does GPS work?
- Internet & WirelessExplore it
How do mobile networks (4G and 5G) work?
- Internet & WirelessExplore it
How do fibre-optic cables work?