Iranian national identification number (code melli)
ID ir_melli_code
DatatypePersonal data (PII)identifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Ten-digit national identification number (code melli) printed on the Iranian national identity card and written as XXX-XXXXXX-X. Validators such as validator.js treat the last digit as a modulo 11 check digit over the first nine; no official description of the algorithm was found, so the record sets no checksum.
- Categories
- Personally identifiable information, Person related
- Countries
- Iran
- Languages
- Persian
- W3C DPV
pd:OfficialID- Quality
- 75/100 · missing: examples, negative example, translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- validator.js
Regular expression
^[0-9]{3}-?[0-9]{6}-?[0-9]$
Python re syntax.
Sources
- wikipedia: https://en.wikipedia.org/wiki/National_identification_number
- other: https://github.com/validatorjs/validator.js/blob/master/src/lib/isIdentityCard.js
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/ir_melli_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/IR/persons/ir_melli_code.yamlon GitHub