Mod 10 (Luhn Algorithm) Checksum Validator

Q

**How to validate Mod 10 (Luhn Algorithm) checksum?**

In order to help your programming or testing tasks, FYIcenter.com has designed this online tool for you to validate the Mod 10 (Luhn Algorithm) checksum digit of any given credit card, ATM card, or SIM card number.

All you need to do is to enter the card number, and click the "Validate" button. Validation result will be displayed in the result area.

✍: FYIcenter.com

A

**Validation result by FYIcenter.com - Card Number:**

Specified Card Number: **Valid ✔**

Card Number: 4417123456789113 Provided checksum: 3 Expected checksum: 3

**What is the Mod 10 checksum?**

Mod 10 checksum is the last digit of your credit card, ATM card or many other financial card numbers. It is calculated based on the other digits of the number using Mod 10, also called Luhn algorithm.

The main purpose of the checksum digit in a multi-digit number is to allow the user interface to detect mistyped digits quickly. For example, 4417123456789113 is a credit card number with 3 as the valid Mod 10 checksum digit at the end. If someone mistypes 0 instead of 9 and enters 4417123456780113 as the credit card number. The user interface will detect that 3 is no longer a valid Mod 10 checksum and reject this credit card number.

Here is how Mod 10 (Luhn algorithm) checksum validation works:

- Remove the checksum digit, which is the last digit of the number.
- Reverse positions of all remaining digits.
- For every digit in an odd position, double its value and subtract 9 if result is over 9.
- Sum up values from all digits.
- Add the checksum digit to the sum.
- If the sum is divisible by 10 (mod 10), then the checksum is valid.

For example, given credit card number "4417123456789113":

- Remove the checksum digit "3": "441712345678911".
- Reverse positions: "1198 7654 3217 144".
- Double values on odd positions and subtract 9 if needed: "219856146227248".
- Sum up all digits: 77.
- Add the checksum digit: 80.
- Mod 10: 0. So the checksum is valid.

**⇐** Credit Card Number Validator

**⇑⇑** Online Tools

2024-02-21, 23150🔥, 3💬

Popular Posts:

How to call JMeter command in a Windows batch file? I want to create a single batch job to run JMete...

How to perform regular expression pattern match with multiple occurrences? To perform a regular expr...

How to find out my browser request headers? To help you to see your browser request headers, FYIcent...

How to generate test credit card numbers? Test credit card numbers are frequently needed in testing ...

How to valid IP addresses? In order to help your programming or testing tasks, FYIcenter.com has des...