Card Number Validator (Luhn)
Check a number with the Luhn formula — handy for testing forms.
Also called: credit card number checker, Luhn algorithm checker, Luhn check.
Card Number Validator (Luhn)
Check a number with the Luhn formula — handy for testing forms.
Watch: how to use the Card Number Validator (Luhn) (12 seconds)
Recorded on a phone, steps written on screen, no sound.
About the Card Number Validator (Luhn)
Check a card, IMEI or other number with the Luhn formula, the check-digit method that catches most typing mistakes. Handy for testing payment forms with test card numbers.
Passing Luhn only means the number is well-formed, not that a card exists. Never paste your real card number into websites you don't trust; this check runs in your browser.
What the Luhn check can and cannot verify
The Luhn algorithm is a checksum used by many payment-card number formats to catch common typing errors. It works by processing digits from right to left, doubling alternating digits and subtracting 9 from doubled values above 9; a number passes the checksum when the final sum is divisible by 10.
A passing result only means the digits satisfy the checksum. It does not prove that a card was issued, is active, has funds, belongs to a particular person or can be used for a payment. It is not a payment authorisation or fraud check.
Use synthetic test numbers in development and never paste a real card number, CVV, PIN or other payment credential into a general-purpose website tool. Follow your payment provider's test environment and PCI security requirements.
How to use the Card Number Validator (Luhn)
- Enter your textType number.
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the Card Number Validator (Luhn) gives for it (produced by the tool itself, not typed by hand).
- Number
- 4111 1111 1111 1111
Result:
✓ Passes the Luhn check Possible network: Visa This only checks the number format. It does not prove that a card exists or has funds. Never type real card numbers into tools you do not trust.
Good to know
- What you need
- You type or choose: Number
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
What is the Luhn check?
A simple sum of the digits that catches single-digit errors and most swaps.
Does it check IMEI numbers?
Yes, IMEIs use the same check digit.