Finance CalculatorsA little help for every day

Search by name or task, such as JSON or percentage.

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.

View all tools
ResultUpdates as you type
Result✓ Passes
Card brandVisa
Digits16
Luhn check digitPass (1)
Masked number•••• •••• •••• 1111

The length, brand prefix and Luhn check digit all pass.

Card numbers are checked only in this browser: they are not uploaded or put in share links. Passing only means the number is well formed; it does not prove the card exists, is active or can be charged.

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.

  1. Enter the numberType or paste the full number; spaces, hyphens and full-width digits are handled for you.
  2. Read the resultSee the card brand, the digit count, the Luhn result and a masked number showing only the last four digits.
  3. 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.

Often Used Together

Next step

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 tools