Finance Calculators
Credit Card Checker and Validator
Check a card number's length, brand prefix and Luhn check digit in your browser. Nine card brands are recognised, and failures show the correct last digit.
How to use Credit Card Checker and Validator
Enter a card number with or without spaces or hyphens and the result shows whether it passes, the brand, the digit count and a masked number. Put one number per line to check several. Numbers stay in your browser and never go into share links.
- Enter the numberType or paste the full number; spaces, hyphens and full-width digits are handled for you.
- Read the resultSee the card brand, the digit count, the Luhn result and a masked number showing only the last four digits.
- Check a listPut one number per line and the table shows which pass and why the others fail.
What the checker verifies
Spaces and hyphens are removed and the number must have 12 to 19 digits. The prefix identifies the brand: 4 for Visa, 51 to 55 and 2221 to 2720 for Mastercard, 34 and 37 for American Express, 62 for UnionPay, plus JCB, Discover, Diners Club, Maestro and Mir, and the length must suit that brand. Finally the Luhn algorithm runs from right to left; the test number 4111 1111 1111 1111 passes.
What a Luhn check can and cannot tell you
The Luhn check digit catches almost every single mistyped digit and most swaps of neighbouring digits. When the check fails, the tool works out what the last digit should be, so 4111 1111 1111 1112 should end in 1. Passing only means the number is well formed. It does not show that a card exists, is active, has funds or belongs to anyone in particular; only the issuer or a payment processor can authorise a payment.
Accuracy and data handling
Money results depend on the inputs and rounding method and are not financial, tax or investment advice. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
What does a valid Luhn result mean?
The number has a mathematically valid check digit. It does not prove that the card exists, is active, has funds or belongs to a particular person.
Are card numbers sent to the server?
No. Every check runs in your browser, and this tool has no share link, so numbers never appear in a URL.
Which card brands can it recognise?
Visa, Mastercard, American Express, UnionPay, JCB, Discover, Diners Club, Maestro and Mir. Issuers occasionally change their number ranges.
More Finance Calculators
Related toolsTotals, VAT and discount for invoice line items, with mixed rates.
PayPal fees, amount received and the amount to charge for a target.
Stripe fees, net amount and the price to charge for a target payout.
How long to reach a savings goal, or the monthly amount you need.
Simple interest, total and reverse solving for principal, rate or term.
Payoff time, total interest and debt-free date for any debt.