All tools
Developer

Check Digit Validator

Validate card numbers, ISBNs, and barcodes (Luhn, ISBN-10, EAN-13).

🔒 Runs entirely in your browser — nothing here is ever uploaded

About the Check Digit Validator

Validates the check digit on credit/debit card numbers (Luhn algorithm), ISBN-10 book codes, and EAN-13/UPC-A barcodes — the built-in error-detection digit each format includes.

100% Free Runs in Your Browser No Sign-Up Required
How to use it
  1. Choose a Format: Luhn (card), ISBN-10, or EAN-13/UPC-A.
  2. Enter the Number.
  3. Read whether the check digit is valid in the readout.
Formula
Luhn: double every second digit from the right, sum all digits (subtracting 9 from any result over 9), and check the total is divisible by 10. ISBN-10 and EAN-13 use their own weighted-sum formulas. The Luhn algorithm was devised by IBM scientist Hans Peter Luhn (U.S. Patent 2,950,048, filed 1954, granted 1960); it's since entered the public domain and is specified for payment cards in ISO/IEC 7812-1.
Worked example

The test card number 4111 1111 1111 1111 passes the Luhn check, confirming it's a structurally valid card number format.

Check-digit formats supported
Check-digit formats supported
FormatLengthMethod
Luhn (cards)Varies (13-19 digits)Double every 2nd digit from the right, sum, check mod 10
ISBN-1010 digitsWeighted sum (10 down to 1), check mod 11
EAN-13 / UPC-A13 digitsAlternating ×1/×3 weighted sum, check mod 10
Recommendations
  • A passing check digit only confirms structural validity — it says nothing about whether the card, ISBN, or barcode is actually issued or real.
  • The Luhn algorithm covers most major card networks, so this one check applies broadly.
  • This tool treats UPC-A as a 12-digit EAN-13 with a leading zero, the standard relationship between the two formats.
Frequently asked questions
No — it only confirms the number follows the correct mathematical structure. Real numbers are also validated against the issuer's actual records, which this tool has no access to.