Check whether a card number passes the Luhn checksum and identify its brand — Visa, Mastercard, Amex, Discover, Diners Club, or JCB. Everything runs in your browser, and the tool is strictly for test numbers: never enter a real card number.
Credit Card Validator — Check Card Numbers With the Luhn Algorithm
Enter a test card number to check the Luhn checksum and detect its brand — Visa, Mastercard, Amex, Discover, Diners Club, or JCB. Everything runs 100% in your browser: never enter a real card number.
Validate a card number
Spaces and dashes are stripped automatically, so you can paste numbers however they are formatted.
Runs entirely in your browser. Any number you type is never uploaded to any server.
Use it instantly. No accounts, no email, no waiting.
Unlimited checks with no limits, no watermarks, no locked features.
How to use the credit card validator
- 1Read the warning first
This tool is for test numbers only — the kind developers use when building checkout pages. Never type a real credit or debit card number here or anywhere you do not fully trust.
- 2Enter a test number
Type or paste a test card number. Spaces and dashes are stripped automatically, so any formatting works. Or tap one of the sample test numbers to try it instantly.
- 3Hit Validate
The page runs the Luhn checksum and reads the first digits (the IIN) to identify the card brand — all in a fraction of a second.
- 4Read the verdict
Green means the number passes the checksum and is well-formed for its brand. Red means it has a typo or is not a real number for that brand.
Features
The same mod-10 algorithm banks and payment networks use to catch typos in card numbers — doubled digits, summed, and checked against zero.
Reads the issuer identification number ranges for Visa, Mastercard (including the 2221-2720 range), American Express, Discover, Diners Club, and JCB.
No jargon — a plain-English result that explains exactly what a pass or a fail actually means.
The number is shown grouped the way it appears on real cards — 4-6-5 for Amex, 4-6-4 for Diners Club, groups of four for the rest.
One tap loads a known-valid Visa, Mastercard, or Amex test number — or a deliberately invalid one to see what a failure looks like.
No network calls at all. Whatever you type stays on your device and disappears the moment you close the tab.
Frequently asked questions
What is the Luhn algorithm?
Does "valid" mean the card is real and active?
Can this page charge a card or check a balance?
Does my number leave my browser?
Which card brands are detected?
Why should I never enter a real card number?
What do the sample test numbers do?
Related tools
Create strong, random passwords in one click.
Password Strength CheckerTest how resistant your password is to guessing.
2FA Code GeneratorGenerate time-based one-time codes for two-factor login.
SHA-256 Hash GeneratorHash any text with the SHA-256 algorithm.
AES Text Encrypt / DecryptEncrypt and decrypt text with AES in your browser.
