Credit Card Validator
Validate a credit card number online for free: check the Luhn checksum, detect the network from the first digits, and see the full Luhn working step by step. A pass means correctly formed only, never proof the card is real or active. 100% in your browser, no signup.
Validate one card number
0 digits · 0 characters typed
Type a card number above to check it. Use a publisher test number, never a real card.
Bulk validation
Paste card numbers above to validate them in bulk.
🔒 Privacy: validation, network detection and the Luhn working all run locally in your browser. Nothing you type is uploaded, stored or seen by anyone else.
More finance and developer tools
How this calculator works
Every card number carries its own typo detector, and it is 70 years old. The last digit of a card number is a check digit computed from all the digits before it by the Luhn algorithm, published by IBM scientist Hans Peter Luhn in 1954. Take the most used test number in the world, the Visa test card 4242 4242 4242 4242: starting from the right, every second digit is doubled, so the eight 4s become eight 8s worth 64 and the eight 2s stay worth 16, giving a weighted sum of 80, which is a multiple of 10, so the number passes. Change any single digit and the sum stops being a multiple of 10, which is how one mistyped digit is caught before the number goes anywhere. This tool shows that working digit by digit, so you can see exactly why a number passes or fails instead of taking a green tick on trust.
The first digits say which network issued the card, and the tool reads them. A number starting with 4 is Visa, 51 to 55 or 2221 to 2720 is Mastercard, 34 or 37 is American Express, 6011 or 65 is Discover, 35 is JCB, 300 to 305 or 36, 38, 39 is Diners Club, 62 is UnionPay, 50 or 56 to 69 is Maestro, 2200 to 2204 is Mir, and 60, 81, 82 or 508 is RuPay. The network also fixes the rules: Amex numbers have 15 digits and a 4-digit CID, Diners Club numbers have 14 digits, Visa numbers have 13, 16 or 19 digits, and every other network here uses a 3-digit CVV. The tool shows the BIN, the first 6 digits that identify the issuing bank, the first 8 digits when present, and the expected digit grouping, 4-4-4-4 for most cards and 4-6-5 for Amex, formatting the number as you type. Bulk mode checks up to 100 numbers at once, one per line, with a pass or fail verdict and the network for each row, and the results download as .csv.
The honest part matters more than the math. A pass means the number is correctly formed only. It does not prove the card is real, active, funded or issued, and a random 16-digit number still passes Luhn about 1 time in 10, because any check digit has a 1 in 10 chance of matching by luck. Real validation needs the issuing bank, which is why this tool never asks for an expiry date or a security code, and why you should never type a real card number into a site you do not trust: use the publishers public test numbers instead, like Visa 4242 4242 4242 4242, Mastercard 5555 5555 5555 4444, Amex 3782 822463 10005, Discover 6011 1111 1111 1117 or JCB 3566 0020 2036 0505. Everything runs in your browser, so nothing you type is uploaded or stored. Use the Pay Stub Generator when you need a printable paycheck stub, the Salary Paycheck Calculator when you need to see what a salary becomes after tax, the Hash Generator when you need a one-way fingerprint of a string, and the Base64 Encoder when text must travel safely inside other text.
