Tool to find French INSEE city code or search city name from INSEE code, but also postal codes correspondances for a given french city.
INSEE French City Code - dCode
Tag(s) : Geography, Notation System
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The French INSEE code (or city code) is administratively called official geographic code (in France) and is defined by the INSEE institute (National Institute of Statistics and Economic Studies). It applies to French towns, townships, boroughs, counties, regions, and overseas territories.
The INSEE code consists of 5 digits, the first 2 digits are the number of the French department the town belongs to (coded on 2 digits) and the other 3 digits are a code given to the town (coded on 3 digits).
The INSEE code is different from the postal code (zip code) and should not be confused. The INSEE code is unique, whereas a city can have several postal codes and a postal code can correspond to several cities.
dCode retrieves a code from the name of a city, but also to find a city from its code.
Example: 02468 gives the French city Marle
Example: Caen gives the INSEE code 14118
The current nomenclature does not allow for more than 1000 towns by department.
Cities sometimes change names or disappear or regroup. dCode manages the codes of all cities, even with old town names.
Municipalities in other countries (such as Algeria which was French) are not registered.
If the city is only renamed, then the code can remain the same.
However, the merger of cities can sometimes lead to the creation of a new code.
The same applies to the separation of a city into two, which generally generates a new code (unless the city had already been the subject of a merger and already had a code)
The commune of birth code is the INSEE geographic code. It is used in particular by the administration or social security.
The common code normally refers to the INSEE code, but it can erroneously refer to the postal code.
The structured part of the code (the first 2 digits) is fixed according to the department, the last 3 digits are chosen by INSEE. In the beginning it was mainly alphabetical order (cities starting with A had the first numbers 001, etc.) then the emerging or merging cities take the unused numbers.
The INSEE repository also contains a list of foreign countries to code the places of birth (country only, not the city) of certain people not born in France.
Example: The code 99134 indicates Spain (all cities in Spain) and is used to code a person who was not born in France but in Spain.
Yes, the INSEE geographical code repository associates a unique code with a given city.
dCode retains ownership of the "INSEE French City Code" source code. Except explicit open source licence (indicated Creative Commons / free), the "INSEE French City Code" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "INSEE French City Code" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "INSEE French City Code" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "INSEE French City Code" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
INSEE French City Code on dCode.fr [online website], retrieved on 2024-11-21,