Finance Tools

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.

Frequently asked questions

How do I validate a credit card number?
Type or paste the number into the validator, spaces optional. The tool strips spaces and hyphens, detects the network from the first digits, checks the length against that network, and runs the Luhn checksum. A valid number shows its network, length, security-code name and length, BIN and the full Luhn working. Try the Visa test number 4242 4242 4242 4242 to see a pass.
What is the Luhn algorithm?
The Luhn algorithm, also called mod 10, is the checksum behind every card number, published by Hans Peter Luhn in 1954. Starting from the rightmost digit, every second digit is doubled, and doubled values over 9 have their digits added. The weighted sum must be a multiple of 10. For the Visa test card 4242 4242 4242 4242 the sum is 80, which passes. Change one digit and the sum stops being a multiple of 10.
Does a valid result mean the card is real?
No. A pass means the number is correctly formed only. It does not prove the card is real, active, funded or issued. A random 16-digit number passes Luhn about 1 time in 10 by luck, because any check digit has a 1 in 10 chance of matching. Only the issuing bank can confirm a card is real, which is why this tool never asks for an expiry date or a security code.
How does the tool detect the card network?
From the first digits, called the IIN or BIN. 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 sets the allowed lengths and the security-code length: Amex has 15 digits and a 4-digit CID, every other network here uses a 3-digit CVV.
Can I validate many card numbers at once?
Yes. Paste one number per line, up to 100 lines, and the tool validates each one with its own verdict, network and reason when it fails. The live counts show how many passed and how many failed, and you can download the full results as a .csv file.
Is my card number uploaded anywhere?
No. Validation, network detection and the Luhn working all run locally in your browser with no server round trip, no account and no storage. Closing the page discards what you typed. Even so, never type a real card number into a site you do not trust: use the publishers public test numbers, and never enter an expiry date or security code anywhere that does not need them.
Disclaimer: Results are estimates for planning purposes only and are not financial advice. Actual loan terms, taxes and investment returns vary. Consult a qualified professional before making financial decisions.