Credit Card Validator
This free credit card validator checks whether a card number is well-formed, entirely in your browser.
How to use
- Type or paste the card number — spaces and hyphens from grouped formats are stripped automatically.
- Read the result: brand, digit count and the Luhn checksum status, plus a privacy note that nothing is stored or uploaded.
- On failure the message is specific: the position of a non-digit character, a wrong length for the brand, or the expected check digit.
- Remember the boundary: a pass means the number is well-formed, not that the card is active or has balance.
Frequently asked questions
What is the Luhn algorithm?
From the rightmost digit, double every second digit (subtracting 9 from anything above 9) and add everything up. Real card numbers are constructed so the total is a multiple of 10, which is how a single mistyped digit gets caught. Whenever the check fails, the tool shows the final digit the number would have needed.
Which brands does the identification table cover?
Six: Visa — starts with 4, 16 digits; Mastercard — 51–55 or 2221–2720, 16; American Express — 34 or 37, 15; Discover — 6011 or 65, 16; Diners Club — 300–305, 36 or 38, 14; JCB — 3528–3589, 16. The table is deliberately small and honest: prefixes outside it are labeled unknown instead of being misidentified.
What does "unknown brand (format still valid)" mean?
Your number does not start with any prefix in the table, but it has 13–19 digits and passes the Luhn checksum, so it is structurally plausible. The tool states exactly that instead of inventing a brand name or failing the number — you get the format verdict and an explicit unknown-brand note.
Does a passing result mean the card works?
No — and this matters. Format validation cannot see issuing banks, balances, expiry dates or blocks: a perfectly valid-looking number may never have been issued, and a real card passes here even while frozen. The tool answers one question only — "is this a well-formed number?"
Is the card number stored or uploaded?
Never. The check is a few additions and multiplications in your browser — no server call, no logging — and the number is gone as soon as you reset or close the tab. Unlike a checkout form, this tool never asks for the CVV, expiry date or your name, and you should not enter them anywhere you do not fully trust.
Related tools
About this tool
This free credit card validator checks whether a card number is well-formed, entirely in your browser. Input tolerates real-world formatting: spaces and hyphens are stripped automatically, and a non-digit character fails fast with its exact position. The core is an independent implementation of the Luhn algorithm — the checksum built into every major card number — locked against classic public test vectors; when the checksum fails, the tool tells you which final digit the number would have needed. A built-in identification table recognizes six brands by prefix and length: Visa (starts with 4, 16 digits), Mastercard (51–55 or 2221–2720, 16), American Express (34 or 37, 15), Discover (6011 or 65, 16), Diners Club (300–305, 36 or 38 — 14) and JCB (3528–3589, 16). Numbers whose prefix is not in the table are not rejected: if they are 13–19 digits and pass Luhn, the result reads "unknown brand — format still valid", stated as such rather than guessed. One honest boundary: this is a format check only. It catches typos before a number goes into a form, but it cannot tell whether a card is active, funded or even issued — and nothing you type is stored or uploaded.