---
id: "fr_department_code"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["geo", "government"]
country: ["FR"]
langs: ["fr"]
quality: 100
url: "http://registry.apicrafter.io/datatype/fr_department_code"
---

# French department code (INSEE) (`fr_department_code`)

> **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.

Code of a French department in the INSEE Official Geographic Code (COG). Departments in metropolitan France use two characters from 01 to 95, with 2A (Corse-du-Sud) and 2B (Haute-Corse) in place of 20. Overseas departments use three digits, 971 to 974 and 976.

- Pattern of: `fr_department`
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: France (FR)
- Languages: French (fr)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:0[1-9]|1\d|2[1-9AB]|[3-8]\d|9[0-5]|97[1-46])$
```

## Examples

- `01` — Ain
- `2A` — Corse-du-Sud
- `75` — Paris
- `974` — La Réunion
- `20` (invalid example) — replaced by 2A and 2B
- `975` (invalid example) — Saint-Pierre-et-Miquelon is not a department

## Mappings

- wikidata: `P2586`

## Supported by tools

- `csvdetective`

## Translations

- fr: Code département

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P2586>
- doc: <https://www.insee.fr/fr/information/2560452>
- wikipedia: <https://en.wikipedia.org/wiki/Departments_of_France>

## Quality

Score 100/100.

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