Complete French data protection with NIR detection, CNIL/GDPR compliance, and support for all French identifier formats including SIREN, INSEE codes, and carte nationale d'identité.
All French identifiers and CNIL requirements
Numéro de sécurité sociale (NIR) detection with full 15-digit validation including control key.
Full support for CNIL guidance and French GDPR implementation requirements.
French business identifiers with Luhn validation for SIREN and SIRET numbers.
French landline and mobile number formats with regional code recognition.
French address conventions with code postal, CEDEX, and département identification.
Carte nationale d'identité and French passport number detection.
Simple integration, powerful results
Send your documents, text, or files through our secure API endpoint or web interface.
Our AI analyzes content to identify all sensitive information types with 99.7% accuracy.
Sensitive data is automatically redacted based on your configured compliance rules.
Receive your redacted content with full audit trail and compliance documentation.
Get started with just a few lines of code
import requests
api_key = "your_api_key"
url = "https://api.redactionapi.net/v1/redact"
data = {
"text": "John Smith's SSN is 123-45-6789",
"redaction_types": ["ssn", "person_name"],
"output_format": "redacted"
}
response = requests.post(url,
headers={"Authorization": f"Bearer {api_key}"},
json=data
)
print(response.json())
# Output: {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
const axios = require('axios');
const apiKey = 'your_api_key';
const url = 'https://api.redactionapi.net/v1/redact';
const data = {
text: "John Smith's SSN is 123-45-6789",
redaction_types: ["ssn", "person_name"],
output_format: "redacted"
};
axios.post(url, data, {
headers: { 'Authorization': `Bearer ${apiKey}` }
})
.then(response => {
console.log(response.data);
// Output: {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
});
curl -X POST https://api.redactionapi.net/v1/redact \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "John Smith's SSN is 123-45-6789",
"redaction_types": ["ssn", "person_name"],
"output_format": "redacted"
}'
# Response:
# {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
France has been at the forefront of data protection since 1978 when it enacted one of the world's first national data protection laws (Loi Informatique et Libertés), establishing the CNIL (Commission Nationale de l'Informatique et des Libertés) as the supervisory authority. This heritage continues through robust GDPR implementation, active CNIL enforcement, and specific French requirements that organizations must address. The CNIL has been among Europe's most active data protection authorities, imposing significant fines and establishing detailed guidance on personal data handling.
French personal data has specific characteristics requiring specialized detection—from the NIR (numéro de sécurité sociale) with its complex validation algorithm to distinctive French address formats and business identifiers. Understanding these French particulars is essential for any organization processing French personal data.
The NIR is France's primary personal identifier, used for social security, healthcare, taxes, and various administrative purposes. Its structure encodes personal information:
Format: 15 digits (13 base digits + 2-digit control key)
Corsican Handling: Corsican départements use 2A and 2B instead of numeric codes. For validation, these are converted to numeric equivalents (2A→19, 2B→18) before modulo calculation.
CNIL Restrictions: The CNIL specifically restricts NIR collection and use. Only specific authorized purposes (social security, healthcare, employment) justify NIR processing. Detection helps identify potentially improper NIR presence.
France implements GDPR through the updated Loi Informatique et Libertés and the CNIL's guidance:
CNIL Enforcement: The CNIL has imposed some of Europe's largest GDPR fines, including €150 million against Google, €90 million against Google again, and €60 million against Facebook. Active enforcement makes compliance critical for organizations operating in France.
NIR Processing Restrictions: CNIL guidance specifically limits NIR use to authorized purposes. Organizations cannot freely use NIR as a general identifier—its collection requires legal basis tied to social security, health, or employment purposes.
Cookie and Tracking Rules: CNIL has established detailed guidance on cookies and online tracking that goes beyond general GDPR requirements, affecting how customer data is collected.
Data Retention: CNIL emphasizes data retention limits and has enforced violations. Redaction supports retention compliance by removing identifying data while preserving non-personal content.
French identity documents have specific formats:
Carte Nationale d'Identité (CNI): The French national ID card number follows a specific format. New biometric cards (since 2021) use 12 alphanumeric characters; older cards used different formats. The CNI number appears in MRZ format on the card.
French Passport: French passport numbers follow standard format: 2 digits + 2 letters + 5 digits. The MRZ contains additional encoded data including control digits.
Titre de Séjour: Residence permits for foreign nationals use specific numbering systems varying by permit type and issue date.
Permis de Conduire: French driver's license numbers follow formats that have evolved over time, with current licenses using a 12-digit format.
French business identification uses a hierarchical system:
SIREN: 9-digit identifier assigned by INSEE to each legal entity. The last digit is a Luhn check digit. SIREN is unique and permanent for each company.
SIRET: 14 digits = SIREN (9) + NIC (5). SIRET identifies a specific establishment (location) of a company. Each company location has a distinct SIRET.
NIC (Numéro Interne de Classement): 5-digit suffix to SIREN identifying the establishment. The 5th digit is a check digit.
Numéro de TVA Intracommunautaire: French VAT number format: FR + 2 check digits + SIREN. The check key is calculated from SIREN using a specific algorithm.
French addresses follow specific conventions:
Standard Format: [numéro] [type de voie] [nom de voie], [code postal] [ville]. Example: "25 rue de la Paix, 75002 Paris"
Types de Voie: French uses numerous street type designations: rue, avenue, boulevard, place, allée, chemin, impasse, passage, quai, square, and many others. Abbreviations are common (av., bd., pl.).
Code Postal: 5-digit postal code. First two digits indicate département (75 = Paris, 69 = Rhône, 13 = Bouches-du-Rhône). This enables département identification from postal code.
CEDEX: Business postal addresses often include CEDEX (Courrier d'Entreprise à Distribution Exceptionnelle), indicating special delivery service. CEDEX addresses have a distinct format.
DOM-TOM: Overseas departments and territories use 97xxx (DOM) and 98xxx (TOM) postal codes with territory-specific formats.
French contact information follows specific patterns:
Phone Numbers: French numbers are 10 digits displayed as 0X XX XX XX XX. Geographic codes: 01 (Île-de-France), 02 (Northwest), 03 (Northeast), 04 (Southeast), 05 (Southwest). Mobile: 06, 07. Service numbers: 08, 09. International format: +33 X XX XX XX XX.
Email: French business email often uses [email protected] format. Detection handles accented names in email addresses where supported.
French banking and financial data has specific formats:
French IBAN: FR + 2 check digits + 23 characters (5-digit bank code + 5-digit branch code + 11-character account + 2-digit RIB key). Total: 27 characters.
RIB (Relevé d'Identité Bancaire): The French domestic bank account identifier consisting of bank code, branch code (guichet), account number, and RIB key. While IBAN is now standard, RIB format still appears in older documents.
BIC/SWIFT: French banks use standard BIC format with bank-specific codes.
French healthcare uses specific identifiers:
Carte Vitale: The French health insurance card contains the NIR as primary identifier. Carte Vitale numbers are NIR numbers.
RPPS: Répertoire Partagé des Professionnels de Santé identifies healthcare professionals. 11-digit format used for doctors, nurses, and other practitioners.
FINESS: Fichier National des Établissements Sanitaires et Sociaux identifies healthcare facilities with a 9-digit code.
France actively enforces data protection requirements:
CNIL Powers: The CNIL can impose fines up to €20 million or 4% of global revenue, conduct audits, issue orders, and publicize violations. The CNIL has used these powers actively.
Recent Actions: Major CNIL actions include fines against Google, Facebook/Meta, Amazon, Microsoft, and many French companies. Both data protection and cookie compliance have been enforcement priorities.
Sectoral Focus: The CNIL has specific guidance for healthcare, employment, and other sectors that creates additional requirements beyond general GDPR.
RedactionAPI has transformed our document processing workflow. We've reduced manual redaction time by 95% while achieving better accuracy than our previous manual process.
The API integration was seamless. Within a week, we had automated redaction running across all our customer support channels, ensuring GDPR compliance effortlessly.
We process over 50,000 legal documents monthly. RedactionAPI handles it all with incredible accuracy and speed. It's become an essential part of our legal tech stack.
The multi-language support is outstanding. We operate in 30 countries and RedactionAPI handles all our documents regardless of language with consistent accuracy.
Trusted by 500+ enterprises worldwide





The NIR (numéro de sécurité sociale) is 15 digits including a 2-digit control key. The key is calculated as 97 minus (first 13 digits modulo 97). We validate both format structure and control key algorithm, handling special cases like Corsican départements (2A, 2B).
We support CNIL guidance on personal data categories, with particular attention to NIR handling (which has specific CNIL restrictions). Our detection aligns with CNIL definitions of sensitive data and supports data minimization principles emphasized in CNIL enforcement.
Yes, we detect SIREN (9-digit company identifier) and SIRET (14-digit establishment identifier) with Luhn check digit validation. We also detect NIC (establishment number), TVA intracommunautaire (VAT number), and other business identifiers.
French addresses follow specific conventions: numéro + type de voie + nom de voie, code postal (5 digits) + ville, optional CEDEX for business addresses. We recognize all French voie types (rue, avenue, boulevard, etc.) and validate code postal against known ranges.
We support French overseas departments (DOM) and territories (TOM) including Guadeloupe, Martinique, Guyane, Réunion, and Mayotte with their specific postal code ranges (97xxx, 98xxx) and NIR coding.
Yes, we detect NIR (used as health identifier), carte Vitale numbers, and RPPS numbers for healthcare professionals. French healthcare data has additional protections we support.