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:
- Take the first nine digits.
- Multiply each by its weight: 10, 9, 8, 7, 6, 5, 4, 3, 2.
- Sum the nine products.
- Compute the remainder
r = sum mod 11. - The expected check digit is
rwhenris less than 2, otherwise11 - r. - 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.