IMEI vs IMSI vs ICCID: what each number means
Short answer: The IMEI identifies the phone or cellular module, and the IMSI identifies the subscription the network authenticates. The ICCID is the serial number of the SIM card or eSIM profile, the EID identifies an eSIM chip, and the phone number (MSISDN) is what people dial. Move a SIM to another phone and the IMEI changes while the IMSI, ICCID and number stay; download a new operator's eSIM profile and the IMSI and ICCID change while the IMEI and EID stay.
IMEI vs IMSI vs ICCID, plus the EID and phone number: what each identifies, where it is stored, how long it is, when it changes and how to read it.
This article covers the IMEI, IMSI, ICCID, EID and phone number side by side: what each identifies, where it is stored, its length and format, when it can change, how to find it on a phone and on a cellular module with AT commands, and which to use as a key for an IoT fleet. It does not cover the digit-by-digit structure of each number (the IMEI, IMSI and ICCID guides cover that), unlocking or blocking a particular phone, or any operator's own numbering.
| IMEI | IMSI | ICCID | EID | Phone number (MSISDN) | |
|---|---|---|---|---|---|
| Identifies | The phone or cellular module | The subscription, to the network | The SIM card or eSIM profile | The eSIM chip (eUICC) | The subscription, to callers and billing |
| Stored in | The device, set by its maker; printed on the label or box | The SIM, one per profile | The SIM, and printed on the card | The eUICC | The operator’s records; sometimes also on the SIM |
| Length | 15 digits (14 plus a check digit); 16 as IMEISV | Up to 15 digits | Usually 19 or 20 digits, starting 89 | 32 digits | Varies by country: country code, then the national number |
| Can it change? | No, fixed when the device is made | Yes: new SIM or profile, or a multi-IMSI SIM switching | Yes: new SIM or new eSIM profile | No, fixed for the chip | Yes, by the operator; it can be kept when moving operator |
| On a phone | Dial *#06#, or Settings, About | Rarely shown | Settings, About or SIM status | Settings, About on eSIM phones | Settings, where the phone has it stored; the operator always has it |
| On a module (AT command) | AT+CGSN or AT+CGSN=1 | AT+CIMI | AT+CRSM read of the ICCID file, or the maker’s own command | AT+CGEUICCID (Release 19 on), or the maker’s command | AT+CNUM, if the number is stored |
A cellular device carries five numbers that are easy to mix up, and each belongs to a different thing: the hardware, the subscription, the SIM, the eSIM chip and the dialable number. The table above sets them side by side. The rest of this page explains the difference that causes most confusion, IMEI vs IMSI, then where the other three fit, what happens to each when something changes, and how to read them on a phone and on an IoT module. For the digit-by-digit structure of each number, see the guides on the IMEI, the IMSI and the ICCID.
Quick answers
What is the difference between IMEI and IMSI? The IMEI identifies the phone or cellular module, the hardware. The IMSI identifies the subscription the network authenticates, and it lives on the SIM.
What is an ICCID? The ICCID is the serial number of the SIM card itself. It starts with 89, and it is 19 or 20 digits in common use.
What is the difference between an EID and an ICCID? The EID identifies the eSIM chip and stays put. The ICCID identifies the SIM or eSIM profile, and it changes when you download a new operator’s profile.
What is the difference between IMEI and IMSI?
The IMEI, International Mobile Equipment Identity, names a piece of radio hardware. Its format is set in 3GPP TS 23.003: an eight-digit Type Allocation Code for the model, a six-digit serial number and a check digit. 3GPP TS 22.016 requires it to be unique and not changed after the device’s final production, and the GSMA’s allocation rules in TS.06 prohibit the same IMEI in more than one piece of equipment at a time. A dual-SIM phone that can serve both SIMs at once has two, one for each SIM.
The IMSI, International Mobile Subscriber Identity, names a subscription. It is up to 15 digits under TS 23.003, built from a three-digit mobile country code, a two- or three-digit mobile network code and the subscriber number. ITU-T Recommendation E.212 sets the plan, and the operator assigns the subscriber number to identify each of its subscriptions. The IMSI lives on the SIM, and it is the identity the network uses to recognize the subscription.
So the two answer different questions. The IMSI tells the network who is paying and whether to let the connection in. The IMEI tells it which handset or module is in use, which it can check against a list of stolen or barred devices, as TS 22.016 describes.
What is an ICCID, and how does it differ from an EID?
The ICCID is the serial number of the SIM itself, defined in ITU-T Recommendation E.118. It starts with 89, the major industry identifier that ISO/IEC assigned to the ITU for telecommunications. ETSI TS 102 221 gives it a 10-byte file on the card, room for 20 digits, which is why both 19- and 20-digit ICCIDs are common.
The EID identifies an eUICC, the chip behind an eSIM. The GSMA’s SGP.29 fixes it at 32 digits and makes it unique to one chip. An eUICC can hold several operator profiles, and each profile carries its own ICCID and IMSI, so the EID stays put while the other two change with the profile.
The phone number, called the MSISDN in the standards, is an ordinary international number from the ITU-T E.164 plan: a country code followed by the national number. The operator links it to the IMSI in its subscriber database. TS 23.003 says it should be possible to change the IMSI without changing the number and the other way round, and it allows data-only subscriptions with no number at all.
What changes when
The pattern follows from what each number names. The IMEI belongs to the hardware, so it changes only when the hardware does. The IMSI and ICCID belong to a SIM or profile, so they move with a SIM card and change with a new profile. The EID belongs to the eSIM chip and survives every profile change. The phone number belongs to the subscription and can be carried across both.
Finding each number on a phone
3GPP TS 22.030 defines *#06# as the code that makes a phone display its IMEI, with or without a SIM inserted. Settings show it too, along with the ICCID and, on eSIM phones, the EID: Apple’s instructions put the EID, IMEI and ICCID under Settings, General, About on an iPhone. Android menus vary by maker.
The IMSI is the hard one. Phones seldom display it, and since Android 10 ordinary apps cannot read it or the IMEI, because both count as non-resettable identifiers that need a privileged permission. The operator, and for IoT SIMs the connectivity platform, can always look it up from the ICCID.
Reading them from a cellular module
Most IoT modules follow the AT command set in 3GPP TS 27.007, which covers four of the five numbers directly:
AT+CGSN=1 IMEI (plain AT+CGSN usually returns it too)
AT+CIMI IMSI
AT+CNUM phone number, if stored on the SIM or module
AT+CGEUICCID EID, on modules built to Release 19 or later
AT+CRSM=176,12258,0,0,10 raw ICCID, read from the SIM's file 2FE2
The plain AT+CGSN returns text chosen by the manufacturer, which TS 27.007 says is typically the IMEI; the =1 form asks for the IMEI by name. AT+CNUM only returns a number when one has been written to the SIM or the module, and a data-only subscription may have no number at all. The EID command was added to TS 27.007 in Release 19, in 2024, so older modules use their maker’s own command, and the module’s AT manual is the place to check.
TS 27.007 has no dedicated ICCID command, which is why modules answer to different ones, such as AT+CCID or AT+ICCID. The AT+CRSM line above works on any module that supports restricted SIM access: 176 is READ BINARY, and 12258 is file 2FE2, which ETSI TS 102 221 defines as the 10-byte ICCID file. The reply comes back with each pair of digits swapped and padded with F, so decode it before comparing it with the number printed on the card. The ICCID guide covers the swapped layout.
Which number to use as a fleet key
For an IoT fleet, the IMEI is the natural key for the device and the ICCID for the connectivity. The IMEI stays with the hardware through SIM swaps, and the ICCID is what the operator’s platform and invoices use. The IMSI is a poor key, because a multi-IMSI SIM can change it without anyone touching the device, as the IoT SIM card guide explains. On eSIM hardware, store the EID too: SGP.29 describes it as the chip’s own serial number, unrelated to any subscription, so it is the one number that survives every profile change. Reading all of them at first boot, and again whenever the SIM or profile changes, gives a record that can answer which SIM was in which device and when. For who issues those SIMs and runs the networks behind them, see MNO vs MVNO.
Sources
- 3GPP TS 23.003, numbering, addressing and identification, the IMEI and IMSI formats, the MSISDN structure, and changing the IMSI and number independently
- 3GPP TS 22.016, International Mobile station Equipment Identities, the IMEI as unique and fixed after production, and the network’s IMEI check
- GSMA TS.06, IMEI allocation and approval process, no duplicate IMEIs, and one IMEI per SIM served at the same time
- ITU-T Recommendation E.212, the identification plan behind the IMSI
- ITU-T Recommendation E.118, the numbering plan for the ICCID
- ITU, Issuer Identifier Numbers, major industry identifier 89 for telecommunications
- ETSI TS 102 221, UICC-terminal interface, the 10-byte ICCID file 2FE2 and its digit coding
- ITU-T Recommendation E.164, the international numbering plan for phone numbers
- GSMA SGP.29, EID definition and assignment process, the 32-digit EID and its uniqueness
- 3GPP TS 22.030, man-machine interface of the user equipment, the *#06# code
- 3GPP TS 27.007, AT command set for user equipment, AT+CGSN, AT+CIMI, AT+CNUM, AT+CRSM and AT+CGEUICCID
- Apple Support, find the serial number or IMEI on your iPhone, where an iPhone shows the EID, IMEI and ICCID
- Android developers, privacy changes in Android 10, apps’ access to the IMEI and IMSI
Common questions
Is the IMEI unique to the phone or to the SIM?
To the phone. The IMEI is written into the device by its manufacturer and identifies the radio hardware, whichever SIM is inside. 3GPP requires it to be unique and not changed after production, and the GSMA's allocation rules forbid the same IMEI in more than one piece of equipment. The SIM has its own numbers, the ICCID and the IMSI, which move with it to another phone.
Can two phones have the same IMSI?
Not two genuine SIMs. The operator assigns each subscription its own subscriber number within its country and network code, so every IMSI points to one subscription. A dual-SIM phone has two IMSIs, one per SIM, and some IoT SIMs carry several IMSIs and switch between them, but each of those IMSIs still belongs to one subscription.
Is the IMSI the same as the phone number?
No. The IMSI is the identity the network uses inside its own systems and is rarely shown to anyone. The phone number, the MSISDN, is the number people dial and the one that appears on bills. The operator links the two in its subscriber records, and 3GPP's numbering rules say it should be possible to change either without changing the other, which is how a number keeps working after it is moved to a new SIM.
Does a phone with an eSIM still have an IMEI?
Yes. The IMEI belongs to the phone's radio and has nothing to do with the type of SIM. A phone with an eSIM also has an EID, the 32-digit number of the eSIM chip, and each operator profile on that chip has its own ICCID and IMSI.
Does it matter whether I give IMEI 1 or IMEI 2?
For identifying the phone, no: both belong to the same device, one for each SIM it can serve at the same time. When reporting a lost or stolen dual-SIM phone, give both numbers, since the network sees each SIM's connection under its own IMEI.
Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.