---
id: "fr_nif"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["finances", "pii"]
country: ["FR"]
langs: ["fr"]
quality: 100
url: "http://registry.apicrafter.io/datatype/fr_nif"
---

# French tax identification number (numéro fiscal) (`fr_nif`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Numéro fiscal de référence, also called NIF or SPI number, the 13-digit number that the French tax administration gives to each person who must report taxes. It starts with 0, 1, 2 or 3 and the last three digits are a check key.

- Personal data (PII): yes
- Categories: Finances and banking (finances), Personally identifiable information (pii)
- Countries: France (FR)
- Languages: French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-3]\d ?\d{2} ?\d{3} ?\d{3} ?\d{3}$
```

## Examples

- `3251768311393` — Synthetic number with a valid check digit
- `1351473348477` — Synthetic number with a valid check digit
- `32 51 768 311 393` — The first example in its printed form
- `32517683113937` (invalid example) — One character too many

## Mappings

- dpv: `pd:OfficialID`
- purview: `France Tax Identification Number (numéro SPI.)`, `France tax identification number`, `EU Tax Identification Number (TIN)`, `EU Tax identification number`
- schema_org: `taxID`
- stdnum: `fr.nif`

## Supported by tools

- `amazonmacie`
- `awsglue`
- `azureailanguage`
- `databricks`
- `dataprep`
- `microsoftpurview`
- `pythonstdnum`
- `snowflake`

## Translations

- fr: Numéro fiscal de référence

## Sources

- wikipedia: <https://fr.wikipedia.org/wiki/Num%C3%A9ro_d%27Immatriculation_Fiscale#France>
- doc: <https://ec.europa.eu/taxation_customs/tin/tinByCountry.html>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.fr.nif.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_fr_nif.html>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/fr_nif.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/finances/fr_nif.yaml>
