Skip to main content
Free Tool

Visa Card Number Validator

Check whether a number is a structurally valid Visa card: the leading 4, the length and the Luhn check digit. Everything runs in your browser.

Try a test card number

Visa card number format at a glance

Starts with (IIN)4
Length16 digits (13 and 19 on some ranges)
Security codeCVV2, 3 digits, back of the card, next to the signature strip
Luhn check digitYes. The last digit is a Luhn (mod 10) check digit.
Issued inWorldwide. Visa cards are issued by banks and fintechs in almost every country.
Network operatorVisa Inc.

Visa IIN (BIN) ranges

PrefixNotes
4Every Visa card number starts with 4

What the first digits mean

The leading 4 is the major industry identifier for banking and financial cards under ISO/IEC 7812, and Visa holds the whole 4 range. The first 6 or 8 digits (the BIN, or IIN) identify the issuing bank and card product; Visa moved to 8-digit BINs in 2022. The remaining digits, except the last, identify the account, and the final digit is the Luhn check digit.

A prefix tells you the network, not the bank. To see the issuing bank, country and card type behind a Visa BIN, use the BIN lookup tool or browse the full Visa BIN list.

Worked Luhn example with a Visa test number

This uses a public test number from the Stripe testing docs. It passes every format check but is not a real account, so it cannot be charged.

Number: 4242 4242 4242 4242 (16 digits)

  1. Start from the rightmost digit (the check digit) and move left.
  2. Double every second digit, starting with the one just left of the check digit.
  3. If doubling gives a number above 9, subtract 9 (same as adding its two digits).
  4. Add every value together. The number is valid if the total ends in 0.
Digit4242424242424242
Double?x2=8-x2=8-x2=8-x2=8-x2=8-x2=8-x2=8-x2=8-
Value8282828282828282

Total: 80. 80 mod 10 = 0, so the number passes the Luhn check.

Working backwards: without the check digit, the other digits add up to 78. The check digit is whatever brings that total to the next multiple of 10: (10 - 8) mod 10 = 2, which matches the last digit.

Why a valid Visa card number still declines

Passing the Luhn and length checks only proves the number is well formed. Whether the payment goes through is decided by the issuer, and these are the common reasons a Visa card is still declined:

  • Insufficient funds

    The number is fine, but the account cannot cover the amount right now. This is a soft decline: retrying after payday or once the balance recovers often succeeds.

  • CVV2 mismatch

    A correct number with a wrong 3-digit CVV2 is declined by the issuer (Visa response code N7). The Luhn check cannot catch this because the CVV2 is not part of the number.

  • Expired or replaced card

    Luhn and length checks never look at the expiry date. A card reissued after loss, fraud or expiry keeps failing until the customer updates it or a card updater service supplies the new details.

  • Visa retry limits

    Visa limits how often a merchant can reattempt the same declined card, and some decline codes mean the issuer will never approve the transaction. Retrying blindly wastes those attempts.

  • Issuer fraud rules

    Unusual amounts, a new merchant, or a country mismatch between the card and the customer can trigger a "do not honor" or suspected fraud decline even on a perfectly valid number.

Look up the exact response code in the Visa decline codes to see whether it is a soft decline worth retrying or a hard decline that needs the customer.

Visa card number FAQ

How many digits is a Visa card number?

A Visa card number is 16 digits (13 and 19 on some ranges). The last digit is a check digit calculated with the Luhn algorithm.

What does a Visa card number start with?

Visa card numbers start with 4. The first 6 to 8 digits (the BIN) identify the issuing bank.

What is the CVV2 on a Visa card?

The CVV2 (Card Verification Value 2) is the 3-digit security code on the back of the card, next to the signature strip. It is not part of the card number, so a number validator cannot check it.

Do Visa card numbers use the Luhn algorithm?

Yes. The last digit is a Luhn (mod 10) check digit.

Why would a valid Visa card number still be declined?

A valid number only proves the format is right. Insufficient funds, CVV2 mismatch, Expired or replaced card are common reasons a Visa payment still fails.

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy