Luhn checksum (mod 10)
ClientThe Luhn algorithm verifies a trailing check digit for many digit strings—common in payment cards and some device identifiers. Paste digits (spaces and dashes are ignored) to see pass or fail without uploading anything.
What this checks
Starting from the rightmost digit, the algorithm walks left, doubling every second digit. If doubling yields a two-digit number, 9 is subtracted. When the sum of all processed digits is divisible by 10, the string satisfies the Luhn condition. It catches many single-digit typos and transpositions but is not a cryptographic guarantee.
How to use
Paste the full digit string including its check digit. Use "Load example" for a known-good vector, or prefill via ?q= / ?qb= (Base64) for automation. At least two digits are required after non-digits are removed.
For other local format checks, open Validate tools or Regex generator for pattern-heavy inputs.
?
Spaces and punctuation are ignored. The Luhn algorithm doubles every second digit from the right (starting with the digit left of the check digit), subtracts 9 when a doubled value is greater than 9, and requires the sum to be a multiple of 10.
Result
Passes Luhn mod 10 (16 digits).
Common use cases
- Sanity-check a primary account number or tokenized card string from docs before wiring a payment form.
- Verify IMEI or other identifiers that use a Luhn check digit in their specification.
- Teach or debug Luhn: compare a failing number against a known-good test vector in the same tab.
- Pair with regex or E.164 tools when you are validating structured digit strings end to end.
Common mistakes to avoid
Treating Luhn pass as proof of a real or active card
Luhn only checks the checksum. It does not mean the number is issued, funded, or authorized.
Forgetting to strip spaces or dashes mentally
This page strips non-digits automatically; your backend should apply the same normalization rule you document.
Using one digit
A single digit cannot form a meaningful mod-10 chain; this tool asks for at least two digits after cleanup.
FAQ
Is my number sent to a server?
No. The check runs entirely in your browser; Toolcore does not receive the digits you paste.
Does this validate card type or issuer?
No. Only the Luhn checksum is evaluated. BIN/IIN lookup and network rules are out of scope here.
Which algorithm is this?
ISO/IEC 7812 mod 10: from the right, double every second digit, subtract 9 from any product over 9, sum all digits, total divisible by 10.
What is a safe example?
Use published test PANs from your processor or the sample on this page—never paste production card data on shared devices.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- luhn algorithm check online
- mod 10 credit card validation browser
- validate luhn checksum locally
- imei luhn check digit online
More tools
Related utilities you can open in another tab—mostly client-side.
IBAN validate & format
ClientMOD-97-10 checksum, country length (embedded list), compact or grouped copy—no bank lookup; browser-only.
File checksum & hash
ClientSHA-256, SHA-512, MD5, CRC-32, and more for a local file—verify downloads without uploading.
Regex generator & tester
ClientPresets (US/NANP & E.164 phones, email, URL), JS snippet, local test.
Encrypt & decrypt
ClientEncrypt, decrypt, hash (AES, DES, RC4, Rabbit, TripleDES, MD5, SHA) and Base64—client-side.