esc
ID checkers

Social security number key:
France, NIR

Type the first 13 characters of a numéro de sécurité sociale to get its clé, or all 15 to check it.

More tools for France Other countries

How to use Social security number key

  1. 01Type the number13 or 15 characters.
  2. 02Read the cléOr whether it matches.
  3. 03See what it containsSex, year, month, place.
Front and back of an ID card on one sheet of paper

2 95 10 99 126 111 → clé 93.

The last two digits of a French social security number are a key: 97 minus the remainder of the 13-digit number divided by 97. For people born in Corsica, 2A counts as 19 and 2B as 18. The tool also shows what the first 13 characters say.

Calcul clé sécurité sociale in one step: type the 13 characters of a numéro de sécurité sociale and the tool gives the 2-digit clé that completes it, or checks the clé on a full 15-character number from a carte Vitale, a payslip or an attestation de droits. It also explains what the first 13 characters say.

What the 15 characters mean

  • Character 1: sex, 1 for men and 2 for women (3, 4, 7 and 8 are used for provisional registrations).
  • Characters 2–3: the last two digits of the year of birth.
  • Characters 4–5: the month of birth (codes from 20 upwards are used when the civil record is incomplete).
  • Characters 6–10: the place of birth. A département and commune code, 97x or 98x for overseas, or 99 plus a country code for people born abroad.
  • Characters 11–13: the order number of the birth in that place and month.
  • Characters 14–15: the clé.

Calculating the clé

  1. Take the first 13 characters as a number. For Corsica, replace 2A with 19 or 2B with 18 for this step only.
  2. Divide by 97 and keep the remainder.
  3. Subtract the remainder from 97. That is the clé, written on two digits.
  4. Example: 2 95 10 99 126 111 divided by 97 leaves 4, so the clé is 97 − 4 = 93.

Why the clé is there

The clé catches typing mistakes. Software that accepts a full numéro de sécurité sociale, such as payroll tools and online forms, can recalculate it and reject numbers where it doesn’t match.

Because a calculator can easily get the 2A and 2B rule wrong, people born in Corsica are the ones who most often see a valid number rejected. This tool applies the 19 and 18 substitution.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

Why does my number contain a letter?

People born in Corsica since 1976 have 2A or 2B in place of the département. For the key, 2A counts as 19 and 2B as 18; the number itself keeps the letters.

Can the clé be 97?

Yes. Keys run from 01 to 97. A remainder of 0 gives 97.

Does a correct clé mean the number is real?

No. It only means the 15 characters are consistent. The tool doesn’t look anything up.

Is my social security number sent or saved?

No. It is personal data, so the calculation runs only in your browser and nothing is stored.

I was born in Corsica before 1976. Which code do I have?

The letters 2A and 2B are used for births in Corsica from 1 January 1976. Earlier births have the single département number 20, which is calculated like any other.

My month of birth shows as 20 or more. Is that an error?

No. Codes 20 to 42 and 50 to 99 are fictitious months used when the civil record didn’t give a full date of birth.