Luhn / PAN Validator
Validate a credit or debit card number with the Luhn checksum, identify the scheme (Visa, Mastercard, Amex, Discover, JCB, UnionPay), and generate a display-safe mask.
Private: Validation runs entirely in your browser. Your card number is never sent to a server.
The Luhn algorithm (a simple modulo-10 checksum) is what catches typos in card numbers before they hit the payment processor. Every well-formed card number passes it; a single mistyped digit fails.
This tool validates the Luhn checksum, identifies the card scheme from the Issuer Identification Number (the first 6 digits), checks the length against what each scheme allows, and produces a display-safe mask for receipts and logs. Everything runs in your browser — no upload, no third-party API.