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.
.editorconfig Generator
Dev Utilities
Create an .editorconfig file with per-language overrides.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
Android dp ↔ px ↔ sp Converter
Dev Utilities
Convert dp, px and sp across every Android density bucket.
Android Manifest Permissions Reference
Dev Utilities
Searchable Android permission list with protection levels and manifest snippets.
Frequently asked questions
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 1.0.0 · Updated 2026-08-17 · Runs entirely in your browser