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:
| Part | Digits | Assigned by |
|---|---|---|
| EUM Identification Number (EIN), one or more EID Range Holder Identifiers (ERHIs) | N, variable | The GSMA assigns the first ERHI; its holder can assign the next level |
| EUM Specific Identification Number (ESIN) | 30 − N | The eUICC manufacturer |
| Check digits | 2 | Calculated 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:
| Digits | Field | Example |
|---|---|---|
| 1–2 | Major industry identifier 8, then 9 for telecommunications | 89 |
| 3–5 | Country code, padded with zeros to three digits | 034 (34, Spain) |
| 6–8 | Issuer identifier, padded to three digits | 011 |
| 9–13 | Platform and OS version information | 56001 |
| 14–18 | Additional issuer information | 00000 |
| 19–30 | Individual identification number | 000000000001 |
| 31–32 | Check digits | 21 |
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:
- Put
00where the check digits go:89034011560010000000000000000100. - Divide that 32-digit number by 97. The remainder is 77.
- 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:
| Number | Remainder after dividing by 97 |
|---|---|
| 89034011 | 39 |
| 3956001000 | 45 |
| 4500000000 | 56 |
| 5600000100 | 77 |
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
DeviceInformationcommand can return anEIDinsideServiceSubscriptionson iOS 14 and later. The Android Management API reportshardwareInfo.euiccChipInfo, a list with oneeidper 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') % 97returns 35, not 1, because the value is stored as89034011560010005118671107653632. Use strings, withBigIntor 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.
89999000000000000000000000001100passes 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, sinceeuiccChipInfois 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
- GSMA SGP.29 v1.1, EID Definition and Assignment Process (22 March 2024) — GSMA. EID principles, the EIN and ESIN structure, the mod 97 check digits and requirement AE.R02 on the 89 prefix
- GSMA SGP.02 v4.2, Remote Provisioning Architecture for Embedded UICC (7 July 2020), section 2.2.2 and Annex J — GSMA. Field layout of EIDs that start with 89, storage in the ECASD and example EIDs
- eSIM Application Note: Handling of SGP.29 EIDs in SGP.02 and SGP.22 (29 October 2020) — GSMA. Why software should not assume a leading 89 or an 8-digit IIN
- List of ITU-T Recommendation E.164 assigned country codes (position on 15 December 2016) — ITU. Country code 999 is reserved for future global service; 34 is Spain
- Device Information command (information.device.yaml) — Apple device-management schema on GitHub. The EID key in ServiceSubscriptions, iOS 14 and later
- Android Management API, enterprises.devices — Google for Developers. HardwareInfo.euiccChipInfo, one EID per eUICC chip on company-owned devices with Android 13 and later
- EuiccManager.getEid() — Android Developers. Carrier privileges required; may return null if the eUICC is not ready
- Find the serial number, EID, or IMEI on your iPhone, iPad, or iPod touch — Apple Support
- Find your IMEI and other Pixel phone ID numbers — Pixel Phone Help
- How to use an eSIM with your Galaxy phone — Samsung Support
- Keeping leading zeros and large numbers — Microsoft Support. Excel keeps 15 significant digits and converts long numbers to scientific notation
- Number.MAX_SAFE_INTEGER — MDN Web Docs. The largest integer JavaScript represents exactly
- What is the EID and how to find it? — Infineon OPTIGA Connect IoT wiki. The sample EID 89034011560010000000000000000121 and its GET DATA trace
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.
Mobile Test Data Tools
Generate, convert and check the identifiers that phones, SIM cards and eSIMs carry
Random IMEI Generator
Generate up to 50 Luhn-valid test values with profile labels and CSV export. Labels do not verify a device model.
IMEI Calculator
Calculate the last digit of a 14-digit body, or check a 15-digit IMEI with the Luhn check digit.
Random Phone Number Generator
Fictional US, Canadian, UK and Australian numbers from ranges regulators keep out of service for TV and film.
ICCID Generator & Checker
Create SIM card numbers with a valid Luhn digit, or check and complete an ICCID you already have.
IMSI Generator
Build subscriber identities under MCC 999, the ITU code for private networks, or your own lab PLMN.
IMEISV Converter
Turn an IMEI and a software version number into a 16-digit IMEISV, or recover the IMEI from one.
MEID & ESN Converter
Convert an MEID between hexadecimal and decimal, and compute its check digits and pseudo-ESN.
IMEI Knowledge Base
Learn about IMEI structure, TAC codes, validation methods, and testing best practices.