Generate a Luhn-valid test card number for development — not a real, chargeable card.
Luhn Check Digit Calculator
Compute the Luhn (mod 10) check digit for a number such as a card or IMEI.
- Free
- No sign-up
- Runs in your browser
Input
Fill in Number (without check digit) to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste the number without its check digit.
- 2
The result is the digit that completes a valid Luhn number.
Questions about Luhn Check Digit Calculator
What uses Luhn?
Payment cards, IMEIs and many ID numbers. It catches most single-digit typos and adjacent transpositions — a checksum, not security.
Does anything leave my device?
No. Everything is generated locally in your browser; nothing is sent or logged.
Does the Luhn Check Digit Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Luhn Check Digit Calculator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Luhn Check Digit Calculator uploaded or stored?
No. The Luhn Check Digit Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the Luhn Check Digit Calculator on a phone or tablet?
Yes. The page is responsive, so the Luhn Check Digit Calculator works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Compute the 13th EAN-13 barcode check digit from the first twelve digits.
Generate a strong random password with the character types you choose.
Generate a memorable passphrase from random words.
Generate a random numeric PIN of the length you choose.
Generate a random whole number within a range you set.
Generate a random decimal within a range, to the precision you choose.
Generate a list of random integers, optionally unique and sorted.