EID Generator and Checker

Generate 32-digit eSIM EIDs with valid check digits for test data, or check an EID against the mod 97 rule of GSMA SGP.29 and see which numbering scheme it belongs to.

By David Santacruz · Updated

Generate test EIDs

No real eUICC can have an EID starting with 89999. Enter another prefix to test a specific range.

Check an EID

Try an example

Check a list (up to 500 lines)

Spaces and hyphens are ignored. Lines with 30 digits get their check digits added; repeated EIDs are flagged.

Generation and checks run in your browser. Nothing you type is sent to the server.

What the EID identifies

The EID (eUICC Identifier) is the serial number of an eUICC, the chip that stores eSIM profiles in a phone, watch or IoT module. GSMA SGP.29 describes it as a unique global serial number for eUICCs that is not related to service subscriptions. The eUICC manufacturer (EUM) assigns it and stores it on the chip.

Three identifiers meet on an eSIM device. The EID names the chip. Each eSIM profile on the chip has its own ICCID, and the subscription is identified by its IMSI. Downloading or deleting profiles changes the ICCIDs and IMSIs in use, not the EID.

EIDs come from two numbering schemes. The first reused the ICCID format of ITU-T E.118, and national authorities issued the prefixes under different rules. In 2019 the industry asked the GSMA to administer EIDs, and SGP.29 now defines the second scheme. SGP.29 EIDs never start with 89 (requirement AE.R02); that prefix stays with the E.118-based scheme, whose EIDs remain valid. An SGP.29 EID has three parts:

PartDigitsAssigned by
EUM Identification Number (EIN), one or more EID Range Holder Identifiers (ERHIs)N, variableThe GSMA assigns the first ERHI; its holder can assign the next level
EUM Specific Identification Number (ESIN)30 − NThe eUICC manufacturer
Check digits2Calculated over all 32 digits

N is not written anywhere in the EID, so software cannot split the EIN from the ESIN. EIDs that start with 89 follow the field layout of GSMA SGP.02 section 2.2.2, shown with Infineon's sample EID:

DigitsFieldExample
1–2Major industry identifier 8, then 9 for telecommunications89
3–5Country code, padded with zeros to three digits034 (34, Spain)
6–8Issuer identifier, padded to three digits011
9–13Platform and OS version information56001
14–18Additional issuer information00000
19–30Individual identification number000000000001
31–32Check digits21

Use these fields for debugging only. GSMA's application note on SGP.29 EIDs tells eSIM systems to assume no structure beyond the SGP.29 format: no leading 89 and no 8-digit issuer number (IIN).

How the check digits are calculated

Both schemes use the same two check digits, defined in SGP.29 clause 10 and SGP.02 section 2.2.2. For the 30-digit body 890340115600100000000000000001:

  1. Put 00 where the check digits go: 89034011560010000000000000000100.
  2. Divide that 32-digit number by 97. The remainder is 77.
  3. Subtract the remainder from 98: 98 − 77 = 21. A one-digit result gets a leading zero. The EID is 89034011560010000000000000000121.

To verify an EID, divide all 32 digits, check digits included, by 97. A valid EID leaves a remainder of 1.

Without a big-integer type, work through the number in pieces: write the remainder so far in front of the next group of digits and divide again. With groups of eight:

NumberRemainder after dividing by 97
8903401139
395600100045
450000000056
560000010077

Because a remainder runs from 0 to 96, the calculation only produces check digits 02 to 98. The remainder test still accepts 00, 01 or 99 when they sit exactly 97 away from the right value (00 instead of 97, 01 instead of 98, 99 instead of 02). This checker accepts them, as the specification's verification does, and flags them.

Mod 97 catches every single wrong digit and every swap of two different adjacent digits. The Luhn check digit of an IMEI misses one of those swaps, 09 to 90.

Why test EIDs start with 89999

SGP.29 never assigns EIDs that start with 89. In the 89 scheme, digits 3 to 5 are an ITU-T E.164 country code, and the ITU lists 999 as reserved for a future global service, not assigned to any country. An EID starting with 89999 therefore cannot belong to a real eUICC under either scheme. Use generated EIDs as test data in databases, forms, fixtures and parsers.

Where you meet the EID

  • Phone settings and the box. On an iPhone it is in Settings > General > About, further down. Pixel phones show it under Settings > About phone > SIM status, Samsung Galaxy phones under Settings > About phone > Status. Apple, Google and Samsung also print it on the box.
  • eSIM activation. Carriers can ask for the EID to pre-assign a plan to a phone, and a Pixel can show its EID as a QR code for activation in a store.
  • Device management. Apple's MDM DeviceInformation command can return an EID inside ServiceSubscriptions on iOS 14 and later. The Android Management API reports hardwareInfo.euiccChipInfo, a list with one eid per eUICC chip, on company-owned devices with Android 13 and later.
  • Android apps. EuiccManager.getEid() requires carrier privileges and can return null if the eUICC is not ready.
  • On the chip. The EID lives in the eUICC's ECASD security domain, and a device reads it with a GlobalPlatform GET DATA command for tag 5A. It is stored as 16 bytes with the first digit in the high nibble, so a trace reads like the digits: 89 03 40 11 … 01 21.

Test cases worth covering

  • Keep EIDs as text. Excel keeps 15 significant digits and shows long numbers in scientific notation, so digits 16 to 32 become zeros. A 64-bit integer column cannot hold 32 digits either. In JavaScript, Number('89034011560010000000000000000121') % 97 returns 35, not 1, because the value is stored as 89034011560010005118671107653632. Use strings, with BigInt or the piecewise method above.
  • EIDs that don't start with 89. SGP.29 EIDs never do. Check that forms, regular expressions and database constraints accept them, and that nothing reads the first 8 digits as an issuer number.
  • Separators. SGP.02 prints its example EIDs in groups, such as 8900 1012 0123 4123 4012 3456 7890 1224. Paste EIDs with spaces, non-breaking spaces, hyphens and line breaks, and store them without.
  • Length. Exactly 32 digits. Thirty digits usually means the check digits were left off; 31 or 33 means a digit was dropped or doubled.
  • Check digits 00, 01 and 99. 89999000000000000000000000001100 passes the remainder test with 00, where the calculation gives 97. Decide whether your validator accepts it.
  • EID versus ICCID. Both can start with 89, because the EID format came from the ICCID. Tell them apart by length and check algorithm, never by prefix.
  • No EID, or several. Inventory imports need devices without an EID (no eUICC, iOS before 14, getEid() returning null) and devices with more than one, since euiccChipInfo is a list.
  • Duplicates. SGP.29 requires an EID to identify one eUICC, so a repeated EID in an import is a data error. The bulk checker above flags repeats.

Sources

Frequently asked questions

What does EID stand for?

eUICC Identifier: the 32-digit serial number of the eUICC, the chip that stores eSIM profiles. Google's Pixel and Android Management API documentation spell it out as Embedded Identity Document, but GSMA specifications use eUICC Identifier.

Where do I find the EID on my phone?

On an iPhone, open Settings > General > About and scroll down. On a Pixel, open Settings > About phone > SIM status; on a Samsung Galaxy, Settings > About phone > Status. Apple, Google and Samsung also print the EID on the box.

Is the EID the same as the IMEI or the ICCID?

No. The IMEI identifies the phone, the EID identifies the eUICC chip inside it, and each eSIM profile on that chip has its own ICCID. Adding or deleting profiles changes ICCIDs, not the EID.

Can an EID start with something other than 89?

Yes. EIDs assigned under GSMA SGP.29 never start with 89, because that prefix stays with the older ITU-T E.118-based scheme. EIDs from both schemes are valid, so validators should accept both.

How do I check whether an EID is valid?

Read all 32 digits as one integer and divide it by 97. A valid EID leaves a remainder of 1. The check catches typos; it cannot tell you whether a chip with that EID exists.

Why do the generated EIDs start with 89999?

SGP.29 never assigns EIDs that start with 89, and in the older 89 scheme the next three digits are an ITU-T E.164 country code. The ITU lists 999 as reserved for a future global service, so no real eUICC can have an EID starting with 89999.