Skip to content
2x2xKit

Credit Card Number Validator

Check if a card number passes the Luhn checksum and identify its network.

How this is calculated
Luhn algorithm: double every second digit from the right, sum all digits, valid if total is a multiple of 10

Assumptions used in this calculation

  • Format check only: This only checks the Luhn checksum and prefix, it does not verify the card is real, active, or has funds.

About this calculator

The credit card validator checks whether a card number passes the Luhn (mod 10) checksum algorithm and identifies its likely card network from the prefix.

Worked example

A sample Visa test number

Result: Valid, Visa

Was this helpful?

Frequently asked questions