France NIR / Numéro de Sécurité Sociale Validator

Validate a French social-security number and decode its 13-digit structure.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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.

PositionFieldMeaning
1Sex1 = male, 2 = female
2–3Year of birthe.g. 85 → 1985
4–5Month of birth01–12
6–7Departmente.g. 75 = Paris
8–10CommuneINSEE commune code
11–13Order numberbirth sequence
14–15Control key97 − (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.

Ad placeholder (rectangle)