Europe · Generator & Validator

France NIR Generator & Validator

The French NIR encodes sex, birth date and place of birth, ending with a two-digit mod 97 key. Corsica uses 2A and 2B.

15 charactersKey = 97 − (body mod 97)2A → 19, 2B → 18

Generate a NIR

Produces a random Numéro de sécurité sociale (NIR) that passes the official checksum. Format: 13 digits + 2 key digits

Validate a NIR

About the Numéro de sécurité sociale (NIR)

Expected format: 13 digits + 2 key digits. The validator checks the structure and the official checksum, so a number that is well formed but fails its check digit is rejected.

Everything runs locally in your browser — nothing is sent to a server. Generated numbers are random test data: they match the algorithm but belong to no real person and must not be used to impersonate anyone.

Other countries

About this tool

This ID number toolkit generates and validates national identification numbers for more than 40 countries, including passport numbers, national IDs, tax numbers and social security formats. Each generator follows the official structure and check-digit algorithms of the respective country.

It is built for developers and QA teams who need valid-format test data without using real personal information. Everything runs locally in your browser, and all generated numbers are random, fictional and safe for testing environments.