Verhoeff validator
Validate number with Verhoeff algorithm.
Input
Output
No value
Guide
What is the Verhoeff algorithm?
The Verhoeff algorithm adds a check digit to a number so that typing mistakes get caught. Jacobus Verhoeff, a Dutch mathematician, published it in 1969. It catches every single wrong digit and every swap of two neighboring digits, which the simpler Luhn algorithm misses in one case, 09 and 90. India's Aadhaar numbers end in a Verhoeff check digit.
Instead of plain arithmetic, it works with three small lookup tables based on the symmetries of a pentagon. That makes it hard to do by hand but easy for a computer.
Tool description
Type or paste a number with its check digit, and the result shows at once whether it passes the Verhoeff check. Enter only the digits: a space or a dash makes the check fail.
For example, 236 gets the check digit 3. So 2363 passes, while 2336, with two digits swapped, fails.
To work out the check digit for a number of your own, use the Verhoeff checksum generator. For random numbers that pass the check, use the Verhoeff Number Generator.
Features
- Checks numbers of any length as you type
- Catches every single wrong digit and every swap of two neighboring digits
- Runs in your browser, so the number isn't sent anywhere