Computing French Social Security Key Code, checking and decoding

Decoding French Social Security Number French Social Security number (also called NIR or INSEE number) has 13 digits plus 2 control key digits.
It is written on Vitale Card, it is written on pay slips and it used for pension or health insurance.


This form checks structure of Social Security Number, it computes or check social security number to avoid some mistakes.

All computations are done automatically when you enter a value

This sofware also decode social security number to display birth location (town, canton, borough, department, region, country)from a database with more than 40 000 geographical codes coming from INSEE.


Try with example of
Now, and try yourself to enter a social security number on line with yellow background.

For example, to check a social security number with 15 digits, enter it the field on the right of the line with yellow background.

To decode a social security number with 13 digits, enter it the field on the left of the line with yellow background.

To decode a social security number with 15 digits, enter it the field on the right of the line with yellow background.

To generate a social security number, enter the informations in the fields on the middle of the line with yellow background.

To search which town or country is related a geographical code, enter department code and Insee town code on line with yellow background.


StructureShort numberSexBirth yearBirth month Birth DepartmentBirth townOrder number Control keyLong social security number
Format 13 digits 1 digit
1 = man
2= female
8= temporary number
2 digits
last 2 digits of the year
ie: 1980 ->80
on 2 digits
january = 01
december=12
20 and above : incomplete birth certificate
on 2 digits or letters:
75 : Paris
99 : foreign country
2A : South Corsica
2B : North Corsica
France overseas : department on 3 digits (1 on following field)
on 3 digits
(2 for overseas)
Insee code of the town
990 to 999 : ward of the state or unknown birth place
3 digits
001 for the firth birth of the month on town registry
2 digits15 digits
(13 digits + 2 digits of control key)
Exemple:
Décodage :
2 87 05 35 238 0012870535 238001472 87 05 35 238 001 47
Female1987MayIlle et VilaineRennesOkCorrect
Yours :
Decoding :  


Compute this person's life expectancy
Compute this person's body mass index

Note

This tool computes control key of a French Social Security Number (last 2 digits) and checks that the number is properly formatted. It decodes it and extract sex, birth month and year, birth location (town, Borough, canton, department, Region, country, associated zip codes).
Example of a number (female born in Rennes in May 1987).
Use décodeur avancé de numéro de sécurité sociale pour plus d'explications et les conditions d'utilisation.
Entered Social Security Number is not sent to us, so we don't know it. Only 5 digits geographical code is sent to our server to retrieve associated birth town, no personal data is used.
French Social Security Number (also known as NIR) written on Vitale card is issued by INSEE from birth certificate.
From the age of 16, Seocial Security send Vitale card with the Social Security number.
French Social Security number has 13 digits plus 2 control key digits (computed using div modulo 97).

See also :
Copyright © 2000-2025 Laurent Pelé
Use of this software is limited to educational purpose and abuse uses will be prosecuted according to article L 335-3 alinea 2 of code de la propriété intellectuelle.


Lots pages :

Keywords
decode
decrypt
compute
check
social
security
number
key
code
birth
date
locate
insee
vitale
card
check free
online
town
luhn