← All Tools

Credit Card Validator🔒 100% local

Validate credit card numbers using the Luhn algorithm. Identifies card type (Visa, Mastercard, Amex, etc.).

Related Tools

UUID ValidatorISBN ValidatorISBN Validator

Runs the Luhn checksum over a card number and works out the network from its leading digits. Spaces are stripped out, the digits are walked from the right with every second one doubled and reduced by nine, and the page reports the detected type, whether the checksum passes, and how many digits the number holds. The number is read and checked in the tab, and it is neither stored nor sent to a server.

How to use it

  1. Paste the number, with or without the spaces printed on the card.
  2. Press Validate.
  3. Read the type, the Luhn result and the digit count.

Worked example

4242 4242 4242 4242becomesCard Type: Visa Luhn Check: VALID ✓ Length: 16 digits This card number passes the Luhn algorithm check.

The standard Visa test number. It passes the checksum and belongs to no account.

4111 1111 1111 1112becomesCard Type: Visa Luhn Check: INVALID ✗ Length: 16 digits This card number fails the Luhn algorithm check.

One digit differs from a valid test number, so the checksum fails even though the prefix is still a Visa range.

When to use it

What it does not do