Card number checker

Check payment card numbers with the Luhn algorithm and see the network: Visa, Mastercard, American Express. Nothing is stored or sent.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.
Lines: 0
Need numbers for testing? Test data generator

Card number checker

The last digit of a card number is a check digit, worked out with the Luhn algorithm. It lets a shop spot a typo before it even asks the bank. This tool does the same: paste a number (or a list) and it checks the length and the check digit, and names the network from the first digits - Visa, Mastercard, American Express and others.

Each number is shown grouped the way it is printed on the card. There are no ads on this page, and the number goes nowhere: your browser does the arithmetic.

Valid is not the same as real. Luhn only checks that a number is put together correctly. It cannot tell you whether the card exists, is in date or has money on it. To test a checkout, use the test numbers from the test data generator or from your payment provider.

Examples

  • A card number read out over the phone: a quick check before it goes into the terminal.
  • A shop's payment form: does its validation let correct numbers through.
  • A payment provider's list of test numbers: which are Visa and which are Mastercard.

Who it is for

Developers and testers of online shops, customer service, and anyone curious about how card numbers work.