Verify payment card numbers in real time with the Luhn (MOD 10) algorithm. Automatically detects card networks, formats spacing, and breaks down the mathematical checksum.
All validation runs 100% locally in your browser via the Luhn algorithm. Card numbers are never stored, transmitted, or sent to any server.
Moving from right to left, every second digit is doubled. If doubling produces a number greater than 9, its digits are summed (subtracting 9). All processed values are then added together. If the total is divisible by 10 (totalSum % 10 === 0), the card checksum passes.
| Position (Right → Left) | Original Digit | Operation (Doubled on Even) | Added to Sum |
|---|---|---|---|
| Pos #1 Check Digit | 8 | — | +8 |
| Pos #2 | 7 | 7 × 2 = 14 (14 - 9 = 5) | +5 |
| Pos #3 | 6 | — | +6 |
| Pos #4 | 5 | 5 × 2 = 10 (10 - 9 = 1) | +1 |
| Pos #5 | 4 | — | +4 |
| Pos #6 | 3 | 3 × 2 = 6 | +6 |
| Pos #7 | 2 | — | +2 |
| Pos #8 | 1 | 1 × 2 = 2 | +2 |
| Pos #9 | 0 | — | +0 |
| Pos #10 | 5 | 5 × 2 = 10 (10 - 9 = 1) | +1 |
| Pos #11 | 1 | — | +1 |
| Pos #12 | 0 | 0 × 2 = 0 | +0 |
| Pos #13 | 2 | — | +2 |
| Pos #14 | 3 | 3 × 2 = 6 | +6 |
| Pos #15 | 5 | — | +5 |
| Pos #16 | 4 | 4 × 2 = 8 | +8 |
| Total Luhn Checksum: | 57 (Mod 10 = 7) → Invalid Checksum | ||
No paywalls, no subscriptions, and zero tracking. All card validation executes 100% locally in browser memory via the Luhn algorithm. If this tool aids your payment gateway tests or e-commerce development, consider buying a coffee to keep these tools free for everyone!
Explore complementary utilities and calculators in this category
Check email syntax, MX formatting, and disposable email domain detection.
Evaluate password entropy, crack time estimation, and security feedback.
Validate well-formed XML syntax and inspect tag hierarchy.
Validate IP address notation, check private subnet ranges, and CIDR masks.
Validate JSON syntax errors with precise line number reporting.
Test regular expressions against target text with group captures and syntax highlights.