Slugify for Developers
Turn any text into a safe slug, filename, anchor or branch name.
Check any number against the Luhn checksum and see the working.
The Luhn Validator checks a number against the mod-10 checksum and shows the working — which digits double, what each contributes, and the final total — because seeing it is what makes the algorithm implementable.
Paste a number and the Luhn checksum is calculated with the working shown: which digits are doubled, what each becomes, the running total and the final modulo. Seeing it is far more useful than a yes or no when you are implementing the check yourself.
The algorithm is used for far more than card numbers — IMEI numbers, some national identification numbers, and a variety of account references all use it. Where the input looks like a card number the scheme is identified from its prefix and length, and the expected check digit is shown when the number fails, which usually makes the typo obvious.
Each digit with whether it doubled and what it contributed, so you can implement the check yourself from what you see.
When a number fails, the check digit that would have been correct is given — which usually makes the typo obvious.
A card number is matched to its scheme from the prefix and length.
IMEIs, some national identification numbers and many account references use the same checksum.
Luhn catches typos. It says nothing about whether an account exists, and the page does not pretend otherwise.
Spaces and hyphens are ignored.
Pass or fail, plus the check digit that would have been correct.
Each digit is shown with what it contributes to the total.
Card numbers are identified from their prefix and length.
Every single-digit error and almost every transposition of adjacent digits — which together are nearly all the mistakes a person makes typing a long number.
Swapping 09 for 90, which is the one transposition it misses. It also says nothing about whether the number corresponds to a real account.
IMEI numbers on phones, some national identification numbers, SIM card serials and a range of account references. It is a general-purpose checksum, not a payment-specific one.
Yes, as a courtesy — it catches a typo instantly instead of after a round trip. It is not a substitute for an authorisation, which is the only thing that proves a card is usable.
What people who use the Luhn Validator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Luhn Validator. It takes half a minute and no account.
Write the first reviewTurn any text into a safe slug, filename, anchor or branch name.
Make every editor agree on indentation, line endings and charset.
Collapse nested JSON into one flat level of dot-notation or bracket keys.
Generate cryptographically random version 4 UUIDs in bulk.
Normalise YAML indentation, quoting and key order in one pass.
See an IP address in binary, hex and decimal, octet by octet.
Build and edit URL query strings without breaking the encoding.
Stack CSS filters on a real image and copy the declaration.