Coverage · France
French NIR (social security number) redaction
OpenAnonymizer finds the French NIR in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.
At a glance
- Country
- France FR
- Format
- NIRNuméro d'inscription au répertoire national d'identification des personnes physiques
- Placeholder
- Each distinct value gets its own number: FR_NIR_1, FR_NIR_2, and so on.
- How it is confirmed
- Official label and checksum
- Used for
- Identifying people in the French social security system; it is the number on the Carte Vitale. It is often called the social security number or INSEE number.
About the NIR
The register is kept by INSEE.
The NIR is 15 digits: sex, year and month of birth, five digits for the place of birth, a three-digit serial, and a two-digit check key (97 minus the first 13 digits modulo 97).
- In
- NIR: 180017512345660
- Out
- NIR:
How OpenAnonymizer handles it
Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.
- It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
- Every package ships every detector, so this format is covered in each of them.
- It covers 34 languages.
Related formats
The same country, or the same kind of number elsewhere.