Saudi National ID / Iqama Validator
Validate the authenticity, format, and checksum of Saudi National ID / Iqama.
About Saudi National ID / Iqama Validation
The Saudi National ID (for citizens) and Iqama ID (for resident expatriates) are the standard 10-digit civil identification numbers in Saudi Arabia.
Consists of 10 digits: begins with "1" for Saudi nationals and "2" for foreign residents, with the 10th digit validated by the Luhn algorithm (Modulo 10).
Anatomy & Structure of National ID / Iqama — Saudi Arabia
The Saudi identification number consists of 10 digits in 3 parts:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 | Citizenship / Category Prefix | 1 digit | 1 = Saudi Citizen (National ID); 2 = Foreign Resident (Iqama) | 1 |
| 2 to 9 | Sequential Registration Number | 8 digits | Unique sequential number issued centrally by NIC/MOI | 02345678 |
| 10 | Check Digit | 1 digit | Calculated via **Luhn (Modulo 10)** algorithm with weights [2, 1, 2, 1, 2, 1, 2, 1, 2] | 4 |
Official Algorithm (Luhn Modulo 10 — MOI/NIC)
Official check digit calculation for Saudi National ID / Iqama:
S = Σ luhn(d[i], i) (i=0..8); (S + d[9]) mod 10 === 0
- 1. Multiply even indices (0, 2, 4, 6, 8) by 2.
- 2. If product > 9, subtract 9.
- 3. Multiply odd indices (1, 3, 5, 7) by 1.
- 4. Sum all partial results into total S.
- 5. The check digit satisfies (S + check) mod 10 = 0.
Frequently Asked Questions & Technical Guidelines
How to distinguish a Saudi National ID from an Iqama residency card?
The rule is simple: IDs starting with digit "1" are for Saudi citizens, while IDs starting with digit "2" are Iqama residency permits.
Are the data in this tool real or official?
All identifiers generated by this tool are strictly synthetic and calculated via mathematical algorithms for software development and QA testing purposes. Using fake data in official or legal filings is strictly prohibited by law.