100% Private

Luhn Calculator - Validate & Generate Check Digits

Validate any number using the Luhn algorithm or generate check digits. Universal mod-10 checksum tool for credit cards, IMEI, and ID numbers.

Input

Enter any numeric string (spaces/dashes OK)

Quick Examples

Click to load:

Valid numbers:
Invalid numbers:
Generate check digit:

Result

Enter a number and click Calculate

Algorithm Explained

  1. Start from the rightmost digit and move left
  2. Double every second digit (positions 2, 4, 6...)
  3. If doubling gives > 9, subtract 9
  4. Sum all digits
  5. Valid if sum mod 10 = 0

Related Tools

View all General calculators →

Privacy Notice: This site works entirely in your browser. We don't collect or store your data. Optional analytics help us improve the site. You can deny without affecting functionality.