Skip to main content
Skip to main content

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:

PositionFieldLengthMeaning & RuleExample
1Citizenship / Category Prefix1 digit1 = Saudi Citizen (National ID); 2 = Foreign Resident (Iqama)1
2 to 9Sequential Registration Number8 digitsUnique sequential number issued centrally by NIC/MOI02345678
10Check Digit1 digitCalculated 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. 1. Multiply even indices (0, 2, 4, 6, 8) by 2.
  2. 2. If product > 9, subtract 9.
  3. 3. Multiply odd indices (1, 3, 5, 7) by 1.
  4. 4. Sum all partial results into total S.
  5. 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.