NIR Securite Sociale Number Validator and Decoder (France)
Paste one or more numéros de sécurité sociale to check the key and decode sex, year and month of birth, department and commune code.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste numbers
One NIR per line; spaces are ignored.
- 2Read the result
Valid or not for each line.
- 3Check the details
Sex, year, month, department, commune and key.
- 4Copy valid ones
Use the copy button.
About this tool
Every person born or registered in France has a social security number, officially the NIR, managed by INSEE. It has 13 characters and a two-digit control key. The first digit gives the sex, the next four the year and month of birth, then the department and commune of birth (or 99 and a country code for people born abroad), and an order number. The key is 97 minus the number modulo 97, with the Corsican departments 2A and 2B replaced by 19 and 18. This validator checks the key and decodes the parts, in batch.
Who this is for
HR and payroll staff entering employee data, developers testing forms, and people checking a number they copied.
Structure
Position 1: 1 for men, 2 for women (7 and 8 for temporary numbers). Positions 2-3: year of birth. Positions 4-5: month of birth (codes above 12 can appear when the month is unknown). Positions 6-7: department of birth, 2A or 2B for Corsica, 99 for abroad. Positions 8-10: commune of birth (INSEE code) or country code. Positions 11-13: order number of the birth register. Positions 14-15: key.
The key
The key is 97 minus the remainder of the 13-digit number divided by 97. For Corsica, replace 2A by 19 and 2B by 18 before calculating. A single wrong digit or swapped digits almost always change the key.
Overseas departments
People born in overseas departments have three-digit department codes (971, 972 and so on) that use positions 6 to 8; the structure check still works.
Privacy
The NIR is sensitive personal data in France, and its use is restricted by law to specific purposes such as social security, employment and health. This tool works in your browser only; do not paste lists of numbers into tools you do not trust.
What a valid result means
A correct key means the number is consistent. It does not prove that the number exists or belongs to a person.
Temporary numbers
Foreign workers and newcomers sometimes receive a temporary number (NIA) starting with 7 or 8 until their civil status is confirmed; it is then replaced by a definitive NIR. The checker accepts these first digits.
Where the number appears
The NIR is printed on the carte Vitale, on payslips and on letters from the health insurance. Employers declare it in the monthly social declaration (DSN), so a wrong number can block health reimbursements or pension rights. Check it carefully when you start a job.
Worked example
2 84 05 75 112 233 43 is valid: a woman born in May 1984 in Paris (75), commune code 112, order 233, key 43. Changing the key to 44 makes it invalid.
Limits
A format and key check only, not an official confirmation.
Worked example
2 84 05 75 112 233 43 is valid and decodes as a woman born in May 1984 in department 75.
Quick facts
- Category: Legal & Government
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Numéro d'inscription au répertoire (NIR, INSEE): 13 characters plus a 2-digit key = 97 − (number mod 97), with 2A and 2B replaced by 19 and 18 for Corsica
Frequently asked questions
How many digits does a French social security number have?
Thirteen characters plus a two-digit key.
How is the key calculated?
97 minus the 13-digit number modulo 97.
What about Corsica?
Replace 2A by 19 and 2B by 18 before calculating.
What does 99 in the department mean?
Born abroad; the next three digits are a country code.
Does a valid key prove the number exists?
No, only that it is consistent.
Is my data stored?
No. It is checked only in your browser.
