Boneyard Tools

Luhn Validator (Mod 10 Checksum)

Paste any number to test it against the Luhn (mod 10) checksum used by credit cards, IMEIs and many other identifiers. The tool also shows the check digit that would complete the number, all locally in your browser.

How to use the Luhn validator

  1. Type or paste the number. Spaces and hyphens are ignored.
  2. See the valid or invalid badge update with the reason.
  3. Read off the suggested check digit if you need to complete a number, then copy the result.

Examples

The classic Luhn example

79927398713
valid: true

One digit off

79927398714
valid: false, expectedCheckDigit: 3

Frequently asked questions

What is the Luhn algorithm?

The Luhn algorithm, also called the mod 10 check, is a simple checksum formula. Starting from the rightmost digit, it doubles every second digit, subtracts nine from any result over nine, sums all the digits, and the number is valid when that total is a multiple of ten. It catches most single-digit typos and digit transpositions.

What kinds of numbers use a Luhn check?

Lots of identifiers do: credit and debit card numbers, IMEI device serials, some national provider and tax identifiers, and many loyalty or account numbers. This generic tool runs the raw checksum on any digit string, so it works regardless of what the number represents.

How do I generate a Luhn check digit?

Enter the number without its final digit, and the tool shows the digit that should go in the last position to make the whole string pass the Luhn check. Append that digit and the number will validate. This is exactly how systems create the check digit when issuing a new number.

Does passing the Luhn check mean a number is real?

No. The Luhn check only proves a number is internally consistent. It cannot tell you whether a card, device, or account actually exists or is active. It is a typo-catching tool, not a security or lookup feature.

Is my number sent anywhere?

No. All validation runs locally in your browser using client-side JavaScript. The number you enter is never uploaded, logged, or stored, so it never leaves your device.

Related tools