Credit Card Validator (Luhn)
Check card numbers with the Luhn algorithm and detect the brand.
Card numbers
One number per line — use test numbers only, never a real card
Everything is checked locally in your browser. Numbers are never sent anywhere, but you should still only paste test data.
Results
Luhn checksum, brand detection and length rules
- Valid••••••••••••4242Visa
16 digits · Luhn passed · length allowed · CVV 3 digits
- Valid••••••••••••4444Mastercard
16 digits · Luhn passed · length allowed · CVV 3 digits
- Valid•••••••••••0005American Express
15 digits · Luhn passed · length allowed · CVV 4 digits
- Invalid••••••••••••4241Visa
16 digits · Luhn failed · length allowed · CVV 3 digits
About the Credit Card Validator (Luhn)
Validate test card numbers with the Luhn (mod-10) checksum, detect the issuing network from the IIN prefix, and confirm the digit length and expected CVV size. Numbers are masked in the output and never leave your browser.
Examples
Visa test number
4242 4242 4242 4242Output
Valid — Visa, 16 digits, Luhn passedKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
IBAN Validator & Formatter
Dev Utilities
Validate IBANs with the mod-97 checksum and country length rules.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Bash Alias Generator
Dev Utilities
Create shell aliases for Bash, Zsh or Fish with correct quoting.
Chmod Calculator
Dev Utilities
Unix permission calculator: checkboxes, octal, and symbolic.
Code Comment Stripper
Dev Utilities
Remove comments from JS, HTML, Python, or SQL source.
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-17 · Runs entirely in your browser