Skip to content
IoT Crest

What is an IMEI number? Digits, checks and uses

Published , 7 min read

Short answer: The IMEI (International Mobile Equipment Identity) is a 15-digit number that identifies a piece of cellular hardware: a phone, a tablet or an IoT modem. The first eight digits say which model it is, the next six are its serial number and the last is a check digit. It identifies the device, not the subscriber or the SIM; those are the IMSI and the ICCID. Dial *#06# on a phone to see it, or ask a cellular module with the AT+CGSN command.

What is IMEI: the 15-digit ID of a phone or cellular module, how its TAC, serial and check digit work, how it differs from IMSI and ICCID, and where to find it.

This article covers what the IMEI identifies, its structure digit by digit, how the check digit is calculated, the 16-digit IMEISV, how IMEI differs from IMSI, ICCID and EID, where to find it on phones and IoT modules, what networks and operators use it for, IMEI locking of IoT SIMs, and whether it is safe to share. It does not cover unlocking a particular phone, carrier-specific compatibility checks, or how to report a stolen phone in a given country.

IMEI stands for International Mobile Equipment Identity. It is a 15-digit number given to every piece of hardware that connects to a mobile network: phones and tablets, but also the cellular modems inside trackers, meters, alarm panels and other IoT devices. The number identifies the equipment itself. It stays the same whichever SIM is inside, and a phone with two SIM slots has two IMEIs, one for each. This article explains what the digits mean, how the last digit is checked, how the IMEI differs from the other identifiers on a cellular device, and what it is used for. It sits alongside the ICCID and IMSI guides, and the connectivity hub collects the rest of the cellular articles.

What the IMEI identifies

A cellular connection involves three separate things, and each has its own number:

  • The device, the radio hardware: identified by the IMEI.
  • The subscription, the account on a mobile network: identified by the IMSI, stored on the SIM.
  • The SIM card or chip itself, as a manufactured part: identified by the ICCID, its serial number.

Move a SIM from one phone to another and the IMSI and ICCID move with it, while each phone keeps its own IMEI. That separation is the whole reason the number exists: it lets a network tell which handset or modem is in use, independently of who is paying for the connection.

The format is defined by 3GPP, the body that writes the mobile standards, in its numbering specification TS 23.003. The first part of every IMEI is allocated through the GSMA, the mobile operators’ industry association, which runs the Type Allocation Code scheme for manufacturers.

The IMEI digit by digit

An IMEI, split into its parts (illustrative number) 3 5 1 2 3 4 5 6 7 8 9 0 1 2 4 TAC, 8 digits Type Allocation Code: the make and model first two digits: the reporting body SNR, 6 digits serial number, set by the manufacturer, unique within the TAC CD check digit IMEISV: the same TAC and SNR, then a 2-digit software version instead of the check digit, 16 digits in all
Diagram: an illustrative IMEI, 351234567890124, divided into its three parts. The first eight digits are the Type Allocation Code, which identifies the make and model and whose first two digits name the body that allocated it. The next six are the serial number the manufacturer assigns within that code. The last digit is a check digit. The IMEISV keeps the first fourteen digits and replaces the check digit with a two-digit software version number.

Type Allocation Code (TAC), 8 digits. Allocated to a manufacturer for one model, or for a variant of a model. Every unit of that model shares the same TAC, which is why a database of TACs can tell a network or a shop what kind of device a given IMEI belongs to. The first two digits are the Reporting Body Identifier, which shows which organization issued the code.

Serial number (SNR), 6 digits. Assigned by the manufacturer to each unit. Combined with the TAC, it makes the IMEI unique.

Check digit (CD), 1 digit. Calculated from the first fourteen digits with the Luhn formula, the same check used on payment card numbers. It catches a single mistyped digit and most swaps of two neighboring digits. It is not sent over the air; the network sees only the first fourteen.

Older IMEIs had a different split, with a six-digit type approval code followed by a two-digit final assembly code. The eight-digit TAC replaced that in 2004, so any IMEI still in use reads correctly with the current split.

Checking an IMEI with the Luhn formula

The check digit is simple to verify by hand, which makes it a quick test of whether a number typed into a form or read off a label is plausible.

Working out the check digit of 35123456789012 digit double? result add 35123456789012 x2x2x2x2x2x2x2 31014385127169014 31143853779014 sum = 56, next multiple of 10 = 60, check digit = 60 - 56 = 4 two-digit results add their digits: 10 gives 1, 12 gives 3, 16 gives 7
Diagram: the Luhn check on the fourteen digits 35123456789012. Every second digit, counting from the second, is doubled; where doubling gives two digits, they are added together, so 10 becomes 1, 12 becomes 3 and 16 becomes 7. All fourteen results add up to 56. The check digit is whatever brings that to the next multiple of ten, here 4, giving the full IMEI 351234567890124.

To check a full 15-digit IMEI, run the same steps over all fifteen digits, doubling every second digit from the second as before. If the total is a multiple of ten, the number passes. A pass does not mean the device exists; it only means the number was not mistyped.

IMEISV: the version with software

Networks often ask a device for its IMEISV rather than its IMEI. It has 16 digits: the same TAC and serial number, followed by a two-digit software version number in place of the check digit. That lets an operator see which firmware version a model is running, which helps when a network problem turns out to affect one software release.

In 5G, the standards use the general term Permanent Equipment Identifier (PEI). For an ordinary 3GPP device, the PEI is its IMEI or IMEISV, so nothing changes in practice.

IMEI vs IMSI vs ICCID vs EID

NumberIdentifiesDigitsWhere it livesChanges when
IMEIThe device or modem15 (16 as IMEISV)Device firmware, printed on the labelNever, for a given radio
IMSIThe subscription on a networkUp to 15On the SIM or eSIM profileYou change operator or profile
ICCIDThe SIM card or profile as a productUp to 20 (19 or 20 in practice)On the SIM, printed on the cardYou change SIM or profile
EIDThe eSIM chip (eUICC) itself32On the eUICCNever, for a given chip

An eSIM does not replace the IMEI. A phone or module with an eSIM still has an IMEI for its radio, and the eSIM chip has its own 32-digit EID as well. The IoT SIM card guide explains eSIM and iSIM, and the IMSI article covers how the subscription identity is protected over the air.

Where to find the IMEI

On a phone. Dial *#06# and the IMEI appears on screen; this works on almost every handset. It is also in the settings, usually under the “about” section, on the original box, and on the SIM tray or the back of some models.

On a cellular module or IoT device. The module’s label normally carries the IMEI as digits and as a barcode or QR code, and the finished product often repeats it on its own label. From software, send the standard AT command AT+CGSN to the modem, which returns the IMEI on modules that follow the 3GPP command set; check the module’s AT command manual for its exact response format. Many IoT platforms also report the IMEI of each device in their dashboard, because it is the one identifier that stays fixed when SIMs are swapped.

What the IMEI is used for

Network checks. When a device attaches, the network can ask for its IMEI or IMEISV and compare it against an equipment register. Operators use this to refuse devices that have been reported stolen or that are not allowed on the network.

Stolen-phone blocking. In many countries, operators share lists of IMEIs reported lost or stolen, so a blocked phone cannot be used on any participating network even with a new SIM. Changing an IMEI to get around this is illegal in some countries, including the United Kingdom.

Compatibility. Operators and online checkers read the TAC to see the model, and from that which bands and technologies it supports, before activating a service.

Device identity in IoT fleets. For a fleet of trackers or meters, the IMEI is a convenient permanent key in an asset register: printed on the device, readable remotely, and unaffected by SIM changes.

IMEI locking of IoT SIMs. Many IoT SIM providers let you lock a SIM to the IMEI of the device it was installed in. If someone removes the SIM and puts it in a phone, the network refuses the connection, which stops a stolen data SIM from being used elsewhere. It is worth enabling on devices installed in public or unattended places, and worth remembering before a field technician swaps a modem. The MNO and MVNO guide covers who provides IoT SIMs and what they control.

Is it safe to share an IMEI?

The IMEI is not a password. Networks authenticate the SIM, using a secret key stored on it, and never treat the IMEI as proof of anything. Someone who knows your IMEI cannot take over your phone number or read your messages with it.

It is still reasonable to keep it private. A known IMEI can be used to file a false stolen-device report against it, or cloned into a counterfeit device in places where that is not policed. Share it with your operator, an insurer or a repair shop when they need it, and avoid posting it publicly, for example in a photo of a phone’s box on a sales listing.

For the other numbers on a cellular device and how a connection is set up, read the ICCID and IMSI guides, and browse the rest of the connectivity guides.

Written by the IoT Crest editorial team. Facts in this article follow the editorial policy: only well-established behavior is stated and no figures are invented.

More from Connectivity

  1. What is LPWAN? Low-power wide-area networks

    What LPWAN is, what it gives up for range and battery life, how NB-IoT, LTE-M, LoRaWAN and Sigfox differ, who runs each network and how to choose.

  2. 5G RedCap: what it is and where it fits

    5G RedCap explained: what Reduced Capability 5G cuts from full 5G, how it compares with LTE-M, NB-IoT and Cat 1 bis, eRedCap, and which devices should use it.

  3. Wi-Fi HaLow (802.11ah): range, speed and uses

    Wi-Fi HaLow explained: how 802.11ah uses sub-1 GHz bands for long range, what speed and battery life to expect, how it compares with LoRaWAN, and where it fits.

  4. What is IMSI? The international mobile subscriber identity

    What is IMSI: the subscriber identity on every SIM, its MCC, MNC and MSIN digits, how networks hide it with temporary IDs and SUCI, and IMSI vs IMEI vs ICCID.

  5. What is an MNO? Mobile network operators vs MVNOs

    MNO meaning in telecoms: what a mobile network operator owns, MVNOs, MVNEs and MVNAs, what a PLMN is, and how to compare an MNO and an MVNO for IoT SIMs.

  6. 2.4 GHz vs 5 GHz: which Wi-Fi band IoT devices need

    2.4 GHz vs 5 GHz Wi-Fi for IoT: range, speed, channels 1, 6 and 11, why smart devices need 2.4 GHz, and how to fix pairing on a dual-band router.

  7. ICCID number explained: the SIM serial, digit by digit

    The ICCID number explained: what the SIM serial is, how its digits break down, how it differs from IMSI and IMEI, and where to find it on phones and modules.

  8. What is an M2M SIM card? How M2M and IoT SIMs differ from phone SIMs

    What an M2M or IoT SIM card is, how it differs from a regular phone SIM, where it is used, activation, the 2FF to MFF2 form factors, M2M eSIM and iSIM.

  9. IoT protocols explained: the radio, network and messaging layers

    IoT protocols explained layer by layer: radio and link protocols, the network and transport layers above them, messaging on top, and how to combine them.

  10. MQTT vs CoAP: which IoT messaging protocol to use

    MQTT vs CoAP compared for IoT devices: publish-subscribe over TCP against a REST-like protocol over UDP, delivery guarantees, power and when each one fits.

  11. MQTT explained: topics, QoS levels and retained messages

    MQTT explained: how a broker, publishers and subscribers fit together, how to name topics and use wildcards, what QoS levels promise and retained messages.

  12. LoRaWAN explained: range, data rates and when to use it

    LoRaWAN explained: how LoRa radio and the LoRaWAN network layer differ, what range to expect, how spreading factors work, and when to pick it.

  13. NB-IoT vs LTE-M for cellular IoT devices

    NB-IoT vs LTE-M for cellular IoT devices: bandwidth and latency, mobility, power saving modes, coverage inside buildings, and which one to pick.

All connectivity articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.

Ask a question

Ask a question

Spotted an error, or want a topic covered? It goes straight to the editors, who reply by email, WhatsApp or SMS.