Skip to content
EMV Tools

Tools

Luhn checker

The last digit of a card number (PAN) is a check digit calculated with the Luhn algorithm. It catches every single wrong digit and most swaps of two neighboring digits.

Use it when a form, a test, or a log rejects a PAN and you want to know whether the number itself is malformed.

The Luhn check doubles every second digit from the right, adds the digits, and accepts the number when the total is a multiple of 10. The result shows every step. This tool only checks numbers you already have; it never generates or completes card numbers.

Worked example: the test PAN 4761 7390 0101 0010 from the card record example adds up to 40, a multiple of 10, so it passes.

New to EMV? Read EMV in 5 minutes or browse the glossary

Everything runs in your browser. Nothing you enter leaves this page.

Digits, spaces, and dashes are accepted. This tool only checks numbers; it never generates or completes them.

How the Luhn check works

How the Luhn check worksThe Luhn check on the test PAN 4761739001010010. Starting from the right, every second digit is doubled, and 9 is subtracted when the result is above 9. The digits add up to 40, a multiple of 10, so the number passes.×24877×26311×27533×29900×20011×20011×20000×21200Sum: 40
  1. Starting from the rightmost digit, double every second digit.
  2. When a doubled digit is above 9, subtract 9.
  3. Add all the digits. The number passes when the sum is a multiple of 10.