/

/

Luhn check

Luhn check

A simple formula that tells a real card number from a random run of digits.

/

/

Luhn check

Luhn check

A simple formula that tells a real card number from a random run of digits.

/

/

Luhn check

Luhn check

A simple formula that tells a real card number from a random run of digits.

A checksum for card numbers

In practice

Detectors use it to avoid masking order numbers. A 16 digit string that fails the check is probably not a card.

Example

Before

4242 4242 4242 4242 (passes)

After

1234 5678 9012 3456 (fails)

Related

Put it to work.

Put it to work.

Put it to work.

Copy template

Create a free website with Framer, the website builder loved by startups, designers and agencies.