Luhn check-digit calculator, IMEI, credit cards, ...

Verify a number that ends in a Luhn check-digit

Enter the number including its right most check-digit:
number:
is valid:


Please turn on JavaScript!


Calculate a Luhn check digit

Enter the number without the right most check-digit:

number -- checkdigit: --



Calculate number length

Remove non number characters (dots, dashes, space..) and calculate the length:

number: => len:



Luhn check digits in credit-card numbers

The Luhn algorithm is not used to protect against fake card numbers. The last digit on your credit card number is just there to be able to quickly identify an accidental typo.

Luhn check digits in IMEI numbers

An IMEI (International Mobile Equipment Identity) is a hardware identifier for a mobile phone. They are like serial numbers but the left most digits contain information about the type of mobile phone. You can get the IMEI of your phone by typing *#06# "call" on your mobile phone. This will display the full 15 digit IMEI which includes a check digit in the right most position. Within the network the IMEI may be transmitted as IMEI, or IMEI with the check digit set to zero or as IMEISV.
T=Type Allocation Code = phone model and manufacturer identifier, first 8 digits of the IMEI
N=serial number
D=check digit
S=mobile phone software version number

To calculate a valid IMEI with check digit from either a IMEI or a IMEISV one would use the first 14 digits and enter it in the above "Calculate a Luhn check digit" form.

References



This page requires a javascript capable webbrowser.
© Guido Socher, License: MIT, This software is provided without warrenty of any kind.
Version: 2018-09-28