Credit Card Validator (Luhn)

Check card numbers with the Luhn algorithm and detect the brand.

Works Offline
Privacy First
No Login
No API

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
3
Invalid
1
  • 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 4242

Output

Valid — Visa, 16 digits, Luhn passed

Keyboard 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

Frequently asked questions

Version 1.0.0 · Updated 2026-08-17 · Runs entirely in your browser