AES Encryption Explained: How It Works and Why It Matters
Jun 23, 2026
Validate credit card numbers with Luhn algorithm, detect card issuer, and check card length and format.
Enter a credit card number to validate. Spaces and dashes are automatically removed.
Issuer
-
Length
-
IIN/BIN
-
Format
-
All validation is performed 100% client-side in your browser. No card data is sent to any server.
The Luhn algorithm (also known as Luhn formula or modulus 10 algorithm) is a simple checksum formula used to validate a variety of identification numbers, most notably credit card numbers. It was created by IBM scientist Hans Peter Luhn and is now in the public domain.
Starting from the rightmost digit (excluding the check digit), every second digit is doubled. If doubling results in a number greater than 9, the digits are added together (or the product minus 9). The sum of all digits must be divisible by 10 for the number to be valid.
This algorithm can detect single-digit errors and most adjacent digit transpositions, but it is not a cryptographic hash and should not be used for security purposes.
| Issuer | Prefix | Length |
|---|---|---|
| Visa | 4 | 13, 16, 19 |
| Mastercard | 51-55, 2221-2720 | 16 |
| American Express | 34, 37 | 15 |
| Discover | 6011, 622126-622925, 644-649, 65 | 16-19 |
| Diners Club | 300-305, 36, 38, 39 | 14-19 |
| JCB | 3528-3589 | 16-19 |
| Maestro | 50, 56-69 | 12-19 |
| UnionPay | 62 | 16-19 |
| Verve | 506099-506198, 650002-650027 | 16-19 |
No. All validation happens entirely in your browser using JavaScript. No card data is transmitted over the network or stored anywhere.
The Luhn algorithm (modulus 10) is a simple checksum formula used to validate credit card numbers. It verifies that the number is mathematically valid, but does not confirm that the card actually exists or has available funds.
No. A valid Luhn check only means the number is mathematically valid. It does not mean the card is issued, active, or has available balance. For actual card verification, you need a payment processor.
The tool detects Visa, Mastercard, American Express, Discover, Diners Club, JCB, Maestro, UnionPay, and Verve based on the IIN/BIN prefix of the card number.
Blog
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026