Credit Card Validator
Type a card number to verify its check digit and see the issuer network, length and IIN. Nothing is sent anywhere.
Type a card number to check it.
The Luhn check only proves the number is well-formed. It cannot tell whether a card exists, is active or has funds. Nothing you type leaves your browser.
About this tool
Every payment card number ends with a check digit computed by the Luhn algorithm, which catches typos and single transpositions before a form is submitted. The first digits (the IIN or BIN) identify the network: 4 for Visa, 51–55 and 2221–2720 for Mastercard, 34 and 37 for American Express, 9792 for Turkey's Troy. Each network also has fixed lengths.
Developers use this to test checkout validation and payment gateways with test numbers; support staff use it to spot mistyped numbers in tickets. A number passing the check is well-formed, nothing more — it says nothing about whether the account exists.
Frequently asked questions
- Is it safe to type a real card number here?
- The check runs in your browser and nothing is transmitted. Even so, prefer test numbers such as 4242 4242 4242 4242.
- Can this generate valid card numbers?
- No. Generating numbers is deliberately not offered; use your payment provider's documented test cards.
- The number passes but my payment failed. Why?
- Luhn only validates the format. Expiry date, CVV, funds and issuer rules are checked by the bank.