{"inline_business":{"france-nir-social-security-key-calculator":{"privacy":"The NIR is personal data. Nothing is sent: the calculation runs entirely in your browser and nothing is stored.","validate_title":"Check a full number (15 characters)","input_label":"Social security number with its key","input_hint":"With or without spaces; 2A and 2B accepted for Corsica.","empty":"Enter a number to check it.","valid":"Key is correct","formatted":"Standard format:","invalid":"Invalid number","reason_chars":"Character not allowed: digits only, plus 2A or 2B in positions 6 and 7 (Corsica).","reason_length":"Wrong length: {{n}} characters instead of 15 (13 + a 2-digit key).","reason_key_range":"Key {{entered}} is impossible: a key ranges from 01 to 97.","reason_key":"Expected key {{expected}}, entered key {{entered}}: a digit of the number or the key is probably wrong.","d_sex":"Sex","d_year":"Year of birth","d_month":"Month of birth","d_place":"Place of birth","d_rank":"Order number","sex_male":"Male (1)","sex_female":"Female (2)","non_standard":"Non-standard code ({{value}})","year_value":"19{{yy}} or 20{{yy}} (the century is not encoded)","country_code":"country with INSEE code {{code}}","place_abroad":"Born abroad (99): {{country}} (country code {{code}})","place_overseas":"French overseas: department or territory {{dep}}, municipality {{commune}}","place_2a":"Corse-du-Sud, Corsica (2A), municipality {{commune}}","place_2b":"Haute-Corse, Corsica (2B), municipality {{commune}}","place_20":"Corsica (20, numbering used before 1976), municipality {{commune}}","place_91_94":"Department {{dep}} (Île-de-France since 1968), municipality {{commune}}; for a birth in Algeria before independence, this code may also mean Algeria","place_95":"Val-d'Oise (95) since 1968, municipality {{commune}}; for a birth in Morocco before independence, this code may also mean Morocco","place_96":"Tunisia, birth before independence (code 96), municipality {{commune}}","place_metro":"Department {{dep}}, municipality {{commune}} (INSEE municipality code {{dep}}{{commune}})","compute_title":"Work out the key from the first 13 characters","base_label":"First 13 characters of the NIR","key_result":"Check key","steps":"{{n}} mod 97 = {{rest}}; key = 97 − {{rest}} = {{key}}","base_invalid":"Enter exactly 13 characters: digits, with 2A or 2B allowed in positions 6 and 7.","rule":"INSEE rule: key = 97 − (13-digit number mod 97). For Corsica, the letter becomes 0 and 1,000,000 (2A) or 2,000,000 (2B) is subtracted, which amounts to reading 19 and 18."}},"docs_business":{"tools":{"france-nir-social-security-key-calculator":{"content":{"title":"How the key of a French social security number (France) works","intro":"In France, the key of a social security number (NIR) is 97 minus the remainder of the first 13 digits divided by 97, so it ranges from 01 to 97. For Corsica, the letters A and B are replaced by 0 and 1,000,000 (2A) or 2,000,000 (2B) is subtracted before dividing. A wrong key almost always reveals a typing error.","details":"
The French INSEE register number has 13 characters: sex (1 male, 2 female), last two digits of the birth year, birth month (01 to 12), birthplace in 5 digits, then a 3-digit order number. The 2-digit key is added at the end.
Sources and dates: INSEE, individual identifier: NIR (key formula and 2A/2B rule, 2A/2B numbering since 1976); INSEE, Courrier des statistiques no. 8 (2022) (Coulommiers example); Service-public.fr, what the social security number means (codes 99 and 91 to 96, checked 14/09/2026); Decree no. 82-103 of 22 January 1982 on the register (checked on 15/10/2026).
"},"faqs":[{"question":"How do I calculate the key of a French social security number?","answer":"Take the first 13 digits, divide them by 97 and subtract the remainder from 97. For 1 21 12 77 131 232, the remainder is 47 and the key is 50. The result always ranges from 01 to 97."},{"question":"How is the key calculated for someone born in Corsica (2A or 2B)?","answer":"INSEE replaces the letter with 0, then subtracts 1,000,000 for 2A or 2,000,000 for 2B before dividing by 97. This is the same as reading 2A as 19 and 2B as 18. People born in Corsica before 1976 have code 20, which is calculated normally."},{"question":"What does 99 mean in a French social security number?","answer":"Code 99 in place of the department means a birth abroad; the next 3 digits are the INSEE country code (352 Algeria, 350 Morocco, 351 Tunisia, 109 Germany). For births in Algeria, Morocco or Tunisia before independence, codes 91 to 96 may replace 99."},{"question":"Does a correct key prove the number exists?","answer":"No. The key catches a single mistyped digit or a common transposition, but a consistent number may never have been issued. Only the French health insurance (Assurance maladie) or INSEE can confirm that a person is registered."}]}}}}