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:

FieldDigitsIn the IMEIIn the IMEISV
Type Allocation Code (TAC)8Digits 1–8Digits 1–8, identical
Serial number (SNR)6Digits 9–14Digits 9–14, identical
Check digit (CD)1Digit 15, LuhnNot present
Software version number (SVN)2Not presentDigits 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:

  1. Drop the check digit: 490154203237518 becomes 49015420323751.
  2. 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

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.