Card · Card
Luhn / Brand / Mask
Validate test PAN, detect brand, mask safely.
Luhn / Brand / Mask
Run local card number diagnostics without storing PAN.
Luhn valid
Input
Treat this as sensitive card data. This tool runs locally and never stores the full PAN.
This tool runs in the browser only. Full PAN is never persisted in localStorage.
Output
| Check | Result |
|---|---|
| Brand | Visa |
| Luhn | Valid |
| Length | Expected length |
| Mask first 6 + last 4 | 411111******1111 |
| Mask first 8 + last 4 | 41111111****1111 |
Safe diagnostic JSON
{
"sanitized": "[not stored]",
"brand": "Visa",
"luhnValid": true,
"lengthValid": true,
"mask6": "411111******1111",
"mask8": "41111111****1111",
"warning": "Treat this as sensitive card data. This tool runs locally and never stores the full PAN."
}