France NIR validator
The NIR (numéro d’inscription au répertoire), commonly called the numéro de sécurité sociale, is France’s national identification number assigned by INSEE. This tool checks that a NIR is well-formed by verifying its two-digit control key, and decodes its structure — sex, birth month and year, department, commune and order number — so you can read and validate one at a glance.
How it works
A full NIR is 15 characters: a 13-digit base plus a 2-digit control key. The base breaks down as sex (1 digit), year of birth (2), month (2), department of birth (2), commune (3), order number (3). The validator parses each of these fields, then recomputes the key:
key = 97 − (base mod 97)
For births in Corsica the department codes 2A and 2B are alphanumeric, so INSEE defines numeric substitutions that are applied before taking the modulo — the tool handles this special case exactly. If the recomputed key does not match the supplied one, it flags a likely typo.
Example
For a NIR beginning 1 85 12 75…: the leading 1 means male, 85 is the birth year 1985, 12 is December, and 75 is the Paris department. The control key is found by reading the 13-digit base, taking it modulo 97, and subtracting from 97 — the result must equal the final two digits.
| Position | Field | Meaning |
|---|---|---|
| 1 | Sex | 1 = male, 2 = female |
| 2–3 | Year of birth | e.g. 85 → 1985 |
| 4–5 | Month of birth | 01–12 |
| 6–7 | Department | e.g. 75 = Paris |
| 8–10 | Commune | INSEE commune code |
| 11–13 | Order number | birth sequence |
| 14–15 | Control key | 97 − (base mod 97) |
A valid key confirms internal consistency only — not that the NIR was issued. Your NIR is processed entirely in your browser; nothing is uploaded, and no government database is queried.