Skip to content

French social security number (NIR): anonymize it before ChatGPT or sharing

The French social security number (NIR) (France) is the numéro d’inscription au répertoire, the social security number of everyone born or working in France. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

13 digits and a 2-digit key: sex, year and month of birth, department and commune of birth, order number (1 85 05 78 006 084 + key).

Sex, year and month of birth and place of birth, straight from the number.

Carte Vitale, payslips (bulletins de paie), medical and insurance documents, HR files.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake of the same kind with correct check digits, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.