Visa card number format
Starts with (IIN)
4
Length
13, 16 or 19 digits
Security code
3 digits
Check digit
Luhn (mod 10)
Test number
4242424242424242
A Visa number starts with 4 and has 13, 16 or 19 digits. The last digit is a Luhn check digit, so a typo in one digit is almost always caught before the payment reaches the bank.
FAQ
How do I know if a Visa card number is valid?
Paste it above: the validator checks the prefix, the length and the Luhn checksum, and tells you which last digit is expected if the checksum fails.
Does a valid Visa number mean the card works?
No. Only the issuing bank can confirm the card exists and can be charged, during an authorization.
Where can I get Visa test numbers?
Use the Visa test card generator or the official sandbox cards of Stripe and Adyen, e.g. 4242424242424242.
Other card brands
Mastercard · American Express · Discover · JCB · Diners Club · UnionPay · Maestro