Credit Card Number Validator (Luhn Check)

Check a card number with the Luhn checksum, detect the brand from its prefix and mask it. Nothing is sent to a server.

About Credit Card Number Validator (Luhn Check)

Check a card number with the Luhn checksum used by card networks to catch typing errors, identify the brand from its starting digits (Visa, Mastercard, American Express, Discover, JCB, Diners Club and UnionPay) and show a masked version. Use it to validate form input in testing or to check a number you already have.

Validation runs in your browser, and the number is never sent to a server. This tool does not confirm that a card is active or funded.

How to use it

  1. Paste the card number. Spaces and hyphens are ignored.
  2. Read the checksum, brand and length results.
  3. Use the masked value when you need to show the number.

Questions

Is my text uploaded?

No. Everything runs in your browser; nothing you type or generate is sent to a server.

Does a valid Luhn check mean the card works?

No. Luhn only catches typing mistakes. Only the card issuer can confirm an account is real and has funds.

Is my card number stored?

No. The number stays in the page memory and is not sent or saved.

More Security & Crypto tools

Home · All Tools · Blog