ICCID Generator and Checker
Check a SIM card number (ICCID) for its length, the 89 prefix and the Luhn check digit, or generate unique test ICCIDs under the unassigned country code 999.
By David Santacruz · Updated
Check an ICCID
Spaces and hyphens are ignored. Raw EFICCID reads, with swapped digit pairs and F padding, are decoded.
Generate test ICCIDs
2 to 12 digits. The default is 89 (telecommunications), 999 (a country code ITU has not assigned) and issuer 01, which matches no registered issuer.
Try the checker with an example
Check a list (up to 500 lines)
Each line is checked on its own, and repeated ICCIDs are flagged.
Generation and checks run in your browser. Nothing you type is sent to the server.
What an ICCID identifies
The ICCID (Integrated Circuit Card Identification) is the number that identifies a SIM card. Its format comes from ITU-T Recommendation E.118, and the SIM keeps it in a file called EFICCID. On an eSIM, every profile has its own ICCID, while the EID identifies the eUICC chip that holds the profiles: a chip with three profiles has one EID and three ICCIDs. The subscription itself has a third number, the IMSI.
| Part | Digits | In 8999901123456789010 |
|---|---|---|
| Major industry identifier (MII) | 2 | 89, telecommunications |
| Country code (E.164) | 1–3 | 999 |
| Issuer identifier | 1–4 | 01 |
| Individual account identification number | The rest | 12345678901 |
| Check digit | 1 | 0, Luhn |
The first three parts form the issuer identification number (IIN), at most 7 digits. The country code is the E.164 country calling code: 1 for the North American Numbering Plan, 44 for the UK, 49 for Germany. ITU registers IINs and publishes them in its list of issuer identifier numbers.
Real cards do not follow this layout consistently: ITU's list shows issuers in the United States and Canada as 89 1 plus a three-digit number, yet many North American ICCIDs begin 8901. The checker therefore does not guess a country or operator from the digits; look the IIN up in ITU's list instead.
How the check digit is calculated
The last digit is a Luhn check digit computed over every digit before it, the same algorithm the IMEI uses; E.118 points to ISO/IEC 7812-1, Annex B for the formula. For the 18-digit body 899990112345678901:
- Starting with the digit next to the check digit and moving left, take every second digit. Here that is digits 2, 4, 6 and so on up to 18: 9, 9, 0, 1, 3, 5, 7, 9 and 1.
- Double them and subtract 9 from any result above 9: 9, 9, 0, 2, 6, 1, 5, 9 and 2, which add up to 43.
- Add the digits that were not doubled: 8 + 9 + 9 + 1 + 2 + 4 + 6 + 8 + 0 = 47.
- The total is 90. The check digit is the amount that brings the total to a multiple of 10, and 90 already is one, so the check digit is 0 and the ICCID is
8999901123456789010.
A 20-digit ICCID works the same way over its first 19 digits: 8901410321111851072 adds up to 60, so 89014103211118510720 ends in 0. Change its tenth digit from 1 to 2 and the total becomes 61; the check digit would have to be 9, so the final 0 exposes the typo. The Luhn check catches any single mistyped digit and any swap of two adjacent digits except 0 and 9. The checker shows this calculation for any number.
19 or 20 digits, and the 8999901 prefix
E.118 (2006) limits the card number to 19 digits including the check digit. Many SIM cards in circulation carry 20 digits, from older issuance and operator practice, and the SIM file has room for them: ETSI TS 102 221 gives EFICCID 10 bytes, two digits per byte. Pick 19 to follow E.118 or 20 to match those cards. The check digit is calculated the same way for both.
The default prefix is 89, then country code 999, then issuer 01. ITU's list of E.164 country codes marks 999 as reserved for future global service, and its list of issuer identifier numbers has no entry under 89 999, so the generated numbers cannot belong to a registered issuer. To match a format your system expects, enter your own prefix of 2 to 12 digits; the tool warns when it does not start with 89.
Where you meet an ICCID
- On the SIM card. The number is printed on the card itself, and carriers can ask for it when you activate a new device.
- In the phone's settings. On an iPhone, Settings > General > About lists the ICCID further down the screen. Android phones show it on the SIM status or About screen.
- In raw SIM reads. Card readers and SIM tools that read file 2FE2 get the bytes as stored. ETSI TS 102 221 clause 13.2 codes the ICCID as BCD, left justified and padded with F, with the first digit of each pair in the low half of the byte. A hex dump therefore shows every pair swapped:
8999901123456789010reads as989909113254769810F0. Paste a dump into the checker and it is decoded. - In back-office data. Systems that track SIM stock and activations store the ICCID, so the numbers travel through CSV imports, APIs and spreadsheets, where the problems below appear.
Test cases worth covering
- Store ICCIDs as text. Excel keeps 15 significant digits: it shows a typed ICCID in scientific notation, such as 8.9E+18, and turns every digit after the 15th into zero. Every ICCID is also above JavaScript's
Number.MAX_SAFE_INTEGER(9007199254740991), soNumber('8999901123456789010')returns8999901123456790000, andJSON.parsedoes the same to an unquoted ICCID. A signed 64-bit integer column holds every 19-digit ICCID but no 20-digit one; even the unsigned maximum,18446744073709551615, is too small. Keep ICCIDs as strings end to end. - Accept 19 and 20 digits. Run each validation and import path with both lengths, then with 18 and 21 digits to confirm they are rejected or flagged. A system tested only with 19-digit data can pass every test and still fail on the first 20-digit card.
- Do not hard-code a prefix. IINs differ by country and issuer. Check the 89, the length and the Luhn digit; do not reject a number because it does not start with 8999 or with your own operator's prefix.
- Raw reads. Feed your parser raw dumps of a 20-digit ICCID and of a 19-digit one, which carries an F pad. A parser that forgets to swap returns a number starting with 98, and one that forgets the padding keeps an F after the 19th digit.
- Whitespace from scanners and paste. Barcode scanners and copied text add spaces, tabs or line breaks around the number, and documents often group the digits with spaces. Strip them before validating instead of rejecting the value.
- Typos the check misses. Swapping the 9 and 0 in
89014103211118510720gives80914103211118510720, which still passes the Luhn check. Only the 89 prefix check catches it, so test both. - One chip, many profiles. Model the EID-to-ICCID relation as one-to-many: one eUICC can hold several profiles, each with its own ICCID.
Sources
- Recommendation ITU-T E.118 (05/2006): The international telecommunication charge card — ITU-T. Card number structure: MII 89, country code, issuer identifier, account number and a Luhn check digit, 19 characters at most
- ETSI TS 102 221 V18.4.0, clause 13.2: EF ICCID (ICC Identification) — ETSI. How the SIM stores the number: file 2FE2, 10 bytes of BCD, left justified and padded with F
- List of issuer identifier numbers (in accordance with Recommendation ITU-T E.118) — ITU, annex to the Operational Bulletin. Registered IINs under MII 89; the 2023 edition covers registrations up to 1 January 2024
- List of Recommendation ITU-T E.164 assigned country codes — ITU, annex to the Operational Bulletin. Country code 999 is reserved for future global service (position on 15 December 2016)
- ETSI TS 123 003 V16.11.1 (3GPP TS 23.003), clauses 2.2 and 6.2.1 — ETSI / 3GPP. IMSI of at most 15 digits and IMEI of 15 digits, the lengths the checker uses to spot a pasted IMEI or IMSI
- Find the serial number, EID, or IMEI on your iPhone, iPad, or iPod touch — Apple Support. Settings > General > About lists the ICCID
- Keeping leading zeros and large numbers — Microsoft Support. Excel keeps 15 significant digits and turns later digits into zeros
- Number.MAX_SAFE_INTEGER — MDN Web Docs. The largest integer JavaScript represents exactly
Frequently asked questions
How many digits does an ICCID have?
ITU-T E.118 (2006) allows up to 19 digits, including the Luhn check digit. Many SIM cards in circulation carry 20 digits, and the SIM file that stores the number has room for 20. Software that handles real cards should accept both lengths.
Are the generated ICCIDs real SIM card numbers?
No. By default they start with 89 999 01, and ITU reserves country code 999 for a future global service, so no issuer holds numbers under it. They pass length, prefix and Luhn checks and are meant as test data.
Can I tell the country or carrier from an ICCID?
Not reliably from the digits. After 89 come the country code and the issuer identifier, but real cards do not follow that layout consistently; many North American ICCIDs begin 8901. Look up the issuer identification number in ITU's list of issuer identifier numbers instead.
What is the difference between an ICCID, an EID and an IMSI?
The ICCID identifies a SIM card or one eSIM profile, the EID identifies the eUICC chip that stores eSIM profiles, and the IMSI identifies the mobile subscription. An eUICC with three profiles has one EID and three ICCIDs.
Why does Excel show my ICCID as 8.9E+18?
Excel turns a long run of digits into a number, keeps 15 significant digits and shows it in scientific notation, so every digit after the 15th becomes zero. Format the column as text before pasting, or import CSV columns as text.
Why does a raw SIM read start with 98 instead of 89?
ETSI TS 102 221 stores the ICCID in the EF_ICCID file as 10 bytes of BCD with the first digit of each pair in the low half of the byte, so a hex dump shows every pair swapped. A 19-digit ICCID is padded with F. The checker on this page swaps the digits back for you.
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.
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.
EID Generator & Checker
Validate a 32-digit eSIM EID with its mod 97 check digits, or generate test EIDs from a prefix.
IMEI Knowledge Base
Learn about IMEI structure, TAC codes, validation methods, and testing best practices.