IMEISV Converter
Turn an IMEI and a software version number (SVN) into the 16-digit IMEISV that networks see, or get the IMEI back from an IMEISV, including its Luhn check digit.
By David Santacruz · Updated
IMEI → IMEISV
IMEISV → IMEI
Try an example
Convert a list (up to 500 lines)
Lines with 16 digits are read as IMEISVs; 14 or 15 digits as IMEIs.
Conversion runs in your browser. Nothing you type is sent to the server.
What an IMEISV is
The IMEISV (International Mobile station Equipment Identity and Software Version Number) is the 16-digit form of a device identity that also says which software the phone runs. 3GPP TS 23.003 defines it in clause 6.2.2 as three fields, all decimal digits:
| Field | Digits | In the IMEI | In the IMEISV |
|---|---|---|---|
| Type Allocation Code (TAC) | 8 | Digits 1–8 | Digits 1–8, identical |
| Serial number (SNR) | 6 | Digits 9–14 | Digits 9–14, identical |
| Check digit (CD) | 1 | Digit 15, Luhn | Not present |
| Software version number (SVN) | 2 | Not present | Digits 15–16 |
The manufacturer assigns the SVN and changes it when the device firmware changes. 3GPP's security requirements for the IMEI cover the TAC and serial number only, not the SVN, which is why the SVN can change through a software update while the IMEI stays the same. SVN 99 is reserved for future use.
How the conversion works
Because the TAC and serial number are shared, converting only swaps the end of the number. With the IMEI 490154203237518 and SVN 04:
- Drop the check digit:
490154203237518 becomes49015420323751. - Append the two-digit SVN:
4901542032375104.
Going back, take the first 14 digits of the IMEISV and calculate the Luhn check digit over them. Counting from the left, double digits 2, 4, 6, 8, 10, 12 and 14, add the digits of each product, add the undoubled digits, and pick the number that brings the total to the next multiple of 10. For 49015420323751 the total is 52, so the check digit is 8 and the IMEI is 490154203237518.
An IMEI whose 15th digit fails this check still converts, because the IMEISV does not carry the check digit. The converter warns you anyway: a wrong check digit usually means one of the other 14 digits was mistyped, and that error would carry into the IMEISV.
Where you meet the IMEISV
- Network signalling. In LTE the MME can ask the phone to include its IMEISV in the SECURITY MODE COMPLETE message (3GPP TS 24.301, clause 5.4.3.2). In 5G the permanent equipment identifier (PEI) can be either an IMEI or an IMEISV (TS 23.003).
- Android. Apps with the phone-state permission can read the software version through
TelephonyManager.getDeviceSoftwareVersion(), and the Settings app shows it under the label "IMEI SV". Android's radio interface returns that value as two decimal digits: the SVN on its own, not the 16-digit IMEISV. - Device management and inventory exports. MDM tools and network probes sometimes export the 16-digit value in a column labelled IMEI. A 16-digit "IMEI" is almost always an IMEISV, and its last two digits are not a check digit.
Test cases worth covering
- Length decides the type. A field that accepts both forms should treat 15 digits as an IMEI (Luhn-checked) and 16 digits as an IMEISV (no check). Feed it 14, 15, 16 and 17 digits.
- SVN boundaries. 00 and 98 are valid; 99 is reserved. A single digit such as 4 should be padded to 04, never stored as 4.
- Store as text. Excel keeps 15 significant digits, so a 16-digit IMEISV typed as a number loses its last digit. JavaScript cannot represent integers above
9007199254740991(Number.MAX_SAFE_INTEGER) exactly, which includes every 16-digit value starting with 91 to 99. Keep identifiers as strings end to end. - Leading zeros. TACs can begin with 0, so an IMEISV can too. Numeric columns drop that zero and change the length.
- One device, two identifiers. If your data model links an IMEI and an IMEISV, check that the first 14 digits match. The bulk converter above gives you matched pairs to load.
Sources
- ETSI TS 123 003 V16.11.1 (3GPP TS 23.003), clauses 6.2 and 6.3 — ETSI / 3GPP. Composition of IMEI and IMEISV, the Luhn check digit (Annex B) and the reserved SVN 99
- ETSI TS 124 301 V16.8.0 (3GPP TS 24.301), clause 5.4.3.2 — ETSI / 3GPP. The MME may request the IMEISV in the SECURITY MODE COMPLETE message
- TelephonyManager.getDeviceSoftwareVersion() — Android Developers. Where Android exposes the IMEI/SV software version to apps
- RIL_REQUEST_GET_IMEISV in include/telephony/ril.h — Android Open Source Project. The radio returns the "IMEISV" as two decimal digits
- Excel specifications and limits — Microsoft Support. Number precision of 15 digits
- Number.MAX_SAFE_INTEGER — MDN Web Docs. The largest integer JavaScript represents exactly
Frequently asked questions
Does an IMEISV have a check digit?
No. An IMEISV is the 8-digit TAC, the 6-digit serial number and a 2-digit software version number. The Luhn check digit belongs only to the 15-digit IMEI, so nothing in an IMEISV can be checked for typos on its own.
Can I get the IMEI back from an IMEISV?
Yes. The first 14 digits of an IMEISV are the same TAC and serial number as the IMEI. Calculate the Luhn check digit over those 14 digits and append it. The converter does this for you.
Which SVN should I use for test data?
Any two digits from 00 to 98. The manufacturer assigns the SVN, so there is no list of valid values to follow. Use one or two fixed values in tests so you can see which firmware a record claims to come from. 3GPP reserves 99 for future use.
Is the "IMEI SV" shown in Android settings the same thing?
It is the last part of it. The "IMEI SV" value in Android settings is the two-digit software version number. Put the first 14 digits of the IMEI in front of it to get the full 16-digit IMEISV.
Why does my spreadsheet change the last digit of an IMEISV?
Excel keeps 15 significant digits, so a 16-digit IMEISV typed as a number loses its last digit. Store IMEISVs as text, or import CSV columns as text. The CSV from this page quotes every value for that reason.
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.
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.