Iran National ID (Kod Melli) Validator

Validate an Iranian national identity code with the modulo-11 check.

Ad placeholder (leaderboard)

The Iranian national identity code (Kod Melli) is a 10-digit number issued to every Iranian citizen and used throughout banking KYC, HR onboarding and government services. The final digit is a modulo-11 check digit, so a single mistyped digit is detectable. This free validator runs the exact algorithm in your browser.

How it works

The official modulo-11 check-digit algorithm:

  1. Take the first nine digits.
  2. Multiply each by its weight: 10, 9, 8, 7, 6, 5, 4, 3, 2.
  3. Sum the nine products.
  4. Compute the remainder r = sum mod 11.
  5. The expected check digit is r when r is less than 2, otherwise 11 - r.
  6. The code is valid when the tenth digit equals that expected value.

A leading zero is sometimes lost when a code is stored as a number, so the tool pads shorter input to 10 digits. Codes made of one repeated digit are rejected even if the arithmetic passes.

Example

For 0084575948 the weighted sum is 212. 212 mod 11 = 3, so the expected check digit is 11 - 3 = 8. The tenth digit is 8, so the code is valid. Change any digit and the expected check digit no longer matches.

A valid checksum confirms the code is well-formed, not that the person exists. All processing stays on your device.

Ad placeholder (rectangle)