Check Digit Calculator

Compute or verify check digits using Luhn, Mod 11, ISBN-10, ISBN-13, EAN-13, and UPC-A algorithms for cards, books, and barcodes.

856.7K uses Updated · 2026-05-14 Runs locally · zero upload
AD

The Check Digit Calculator computes or verifies a check digit using common algorithms used in payment cards, ISBNs, EAN barcodes, and UPC product codes. Spaces and dashes are stripped automatically so codes can be pasted directly. Choose an algorithm, pick “compute” or “verify”, and the tool will return the expected digit or whether the supplied number is valid.

How to Use Check Digit Calculator

  1. Choose an algorithm — Luhn, Mod 11, ISBN-10, ISBN-13, EAN-13, or UPC-A.
  2. Pick the mode: compute a new check digit, or verify a complete number.
  3. Paste or type the code; separators are removed automatically.
  4. Read the resulting check digit or validation status.

Formula & Theory - Check Digit Calculator

Luhn:    double every 2nd digit from the right; sum digits; check digit = (10 - sum mod 10) mod 10
Mod 11:  weights 2..7 cyclic; sum × weight; check = (11 - sum mod 11) mod 11 (10 → "X")
ISBN-13: weight 1 and 3 alternating; check = (10 - sum mod 10) mod 10
EAN-13:  weights 1 and 3 alternating from the right; check = (10 - sum mod 10) mod 10
UPC-A:   weights 3 and 1 alternating; check = (10 - sum mod 10) mod 10

Use Cases for Check Digit Calculator

  • Verify a credit-card number was entered correctly.
  • Generate ISBN-10 or ISBN-13 check digits when publishing a book.
  • Validate scanned EAN-13 or UPC-A barcodes.
  • Demonstrate check-digit algorithms in a classroom setting.

Frequently asked questions about Check Digit Calculator

Does a valid check digit mean the number is genuine?

No. It only confirms the number is internally consistent. Authenticity must be verified by the issuing system.

Why does ISBN-10 sometimes end with "X"?

Its check digit ranges from 0 to 10; the value 10 is encoded as the letter "X".

Are letters allowed in inputs?

Only ISBN-10 accepts a trailing "X". Other algorithms accept digits only.

Is my data stored?

No. The calculation runs in your browser; nothing is uploaded.