Skip to main content
Tool only for testing purposes. No data is transmitted - 100% validation on the client side.

NIR Entry

Examples (fictional):

Come utilizzare Come utilizzare questo validatore

Insert NIR (15 characters)

Enter French social security number (15 characters). Spaces are ignored. For Corsica, "2A" and "2B" are accepted.

Analyze structure

Decoder: Gender, birth year, month, department, municipality, and serial number.

Verify Control Key

Key (positions 14-15) is calculated as: 97 - (first 13 numbers of the NIR modulo 97). The validator compares the provided key with the expected one.

Suggerimenti

  • Do not enter real NIRs into production on an online tool. This validator is for testing and development purposes only.
  • To generate fake NIR valid for testing purposes, just build the first 13 digits coherent and calculate the key with 97 - (x mod 97).
  • Foreigners with unknown birthdate - their birth department is coded as 99.

Domande frequenti

What is the NIR?

The NIR (Numero d'Inscription au Repertoire) is the French social security number. It uniquely identifies every individual from birth. It consists of 15 digits (13 + 2 for the key) and encodes gender, year/month of birth, department, and commune.

How is the control key calculated?

The key is calculated as follows: key = 97 - (NIR's 13 digits mod 97). For Corsica, 2A becomes 19 and 2B becomes 18 for the numeric calculation. The key is always between 01 and 97.

Does the NIR cover the DOM-TOM (overseas territories)?

Yes: department codes 971 (Guadeloupe), 972 (Martinique), 973 (Guyana), 974 (Reunion) and 976 (Mayotte) are valid. People born abroad have code 99.

What do gender codes 7 or 8 mean in the NIR?

Digit 1 = male, 2 = female (born in France). Codes 7 (male) and 8 (female) are used for people born abroad whose birth date is uncertain.