Home🇫🇷 FranceNuméro de sécurité sociale (NIR)

Generate a test France Numéro de sécurité sociale (NIR)

A French social security number (NIR) is fifteen digits: sex, year and month of birth, department and commune of birth, an order number, and a two-digit MOD-97 key. These test values are synthetic but carry a valid key.

Synthetic · not collision-guaranteed Validate a number →
2 00 07 94 959 281 45

Synthetic French NIR with a valid key; not a real INSEE number.

Format specification

IdentifierNuméro de sécurité sociale (NIR) (NIR / INSEE)
Country🇫🇷 France
FormatA NN NN NN NNN NNN NN
Length15 characters
ChecksumMOD 97
Example2 28 12 10 375 654 29
Safe strategy Synthetic
Data qualityVerified against sources

Validation regex

Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()

^[12]\d{14}$

References

  1. www.insee.fr/fr/information/2113537

Common questions

Will these pass my validation?

Yes — they are well-formed Numéro de sécurité sociale (NIR) values (A NN NN NN NNN NNN NN) and pass standard format checks, including the MOD 97 checksum.

Could one belong to a real person?

These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.

Can I generate many at once?

Increase the count, or use the free API and CSV/JSON export for large datasets.

Validate an existing number →

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.