NIR Numéro de sécurité sociale validateur et décodeur (France)

Insérez un ou plusieurs numéros de sécurité sociale pour vérifier la clé et décoder le sexe, l'année et le mois de naissance, le code du département et de la commune.

S'exécute dans votre navigateur. Vos fichiers ne quittent jamais votre appareil. Voir comment vérifier

…

Comment faire

  1. 1
    Nombre de collage

    Un NIR par ligne; les espaces sont ignorés.

  2. 2
    Lisez le résultat.

    Valide ou non pour chaque ligne.

  3. 3
    Vérifiez les détails .

    Sexe, année, mois, département, commune et clé.

  4. 4
    Copiez les copies valides

    Utilisez le bouton de copie.

À propos de cet outil

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.

Exemple concret

2 84 05 75 112 233 43 est valide et décode comme une femme née en mai 1984 dans le département 75.

L'essentiel

Questions fréquentes

Combien de chiffres a un numéro de sécurité sociale français ?

13 caractères plus une clé à deux chiffres.

Comment la clé est-elle calculée ?

97 moins le nombre de 13 chiffres modulo 97.

- Et la Corse ? Elle est à l'intérieur.

Remplacer 2A par 19 et 2B par 18 avant de calculer.

Que signifie 99 dans le département ?

Né à l'étranger; les trois chiffres suivants sont un code de pays.

Une clé valide prouve-t-elle l'existence du numéro ?

Non, seulement que c'est cohérent.

Mes données sont-elles stockées ?

Non, il est vérifié uniquement dans votre navigateur.

Entièrement gratuitAucun coût, aucune inscription
Fichiers privésTout s'exécute dans votre navigateur
Simple dans votre langueDisponible en de nombreuses langues