Credit Card Validator
Validate credit card numbers using the Luhn algorithm. Detect card type (Visa, Mastercard, Amex, Discover, JCB, Diners Club) by prefix.
Enter a card number to validate.
Related tools
Validate IBAN numbers, verify check digits, and show country and BBAN breakdown.
Format numbers as currency for 50+ locales with live preview.
Validate email addresses per RFC 5322 with detailed breakdown and batch support.
Validate UUID strings (v1–v8) and show version/variant.
Format phone numbers in international and national formats for 10+ countries.
Preview how a page looks when shared on Facebook, Twitter, LinkedIn, and Discord.
About Credit Card Validator
Check whether a credit card number is structurally valid using the Luhn checksum, and identify its card network (Visa, Mastercard, American Express, Discover, JCB, Diners Club, UnionPay, or Maestro) from its prefix and length. Useful for validating test numbers, debugging payment form logic, or checking a number was typed correctly — nothing here verifies whether a card is real, active, or has funds.
How to use
- Type or paste a card number into the input (spaces and dashes are ignored).
- Read the Luhn check, length check, and detected card type.
- Use the IIN/BIN and last-four breakdown to confirm the number matches what you expect.
Frequently asked questions
- Is my card number sent to a server?
- No. The Luhn check and card-type detection run entirely in your browser using JavaScript — nothing is transmitted or stored anywhere, including by this site.
- Does a passing check mean the card is real or has money on it?
- No. Luhn is just a checksum built into how card numbers are generated; it catches typos and malformed numbers but says nothing about whether the account exists, is active, or has available funds.
- Why does it say a valid-looking number is invalid?
- Either the digit count does not match what that card network uses, or the checksum digit is wrong — often a sign of a typo or a fabricated (non-Luhn) test number.