Community Identification Number (Groß-Deutschland)

The Official Municipality Key, formerly also known as the Official Municipality Characteristic Number or Municipality Code Number, is a number sequence for the identification of politically independent municipalities or unincorporated areas. Other nomenclatures for the demarcation of areas are postal codes, NUTS codes or FIPS codes.

Germany
In Germany the Official Municipality Key serves statistical purposes and is issued by the statistics offices of individual German states. The municipality key is to be indicated in instances such as changing residence on the notice of departure or registration documents. This is done at the registration office in every town's city hall.

Structure
The municipality key consists of eight digits, which are generated as follows: The first two numbers designate the individual German state. The third digit designates the government district (in areas without government districts a zero is used instead). The fourth and fifth digits designate the number of the urban area (in a district-free city) or the district (in a city with districts). The sixth, seventh, and eighth digits indicate the municipality or the number of the unincorporated area.

Examples
08 1  11  000 : Stuttgart


 * 08 : Baden-Württemberg
 * 1 : Government district of Stuttgart
 * 11 : Urban area of Stuttgart
 * 000 : No other municipality is available, since Stuttgart is an urban area

15 3  52  002 : Aschersleben


 * 15 : Saxony-Anhalt
 * 3 : Government district of Magdeburg
 * 52 : District of Aschersleben Strassfurt
 * 002 : City of Aschersleben

Federal States

 * 01: Lübeck
 * 02: Schleswig-Holstein
 * 03: Hamburg
 * 04: Hanover
 * 05: Bremen
 * 06: Westphalia
 * 07: Rhineland
 * 08: Hesse
 * 09: Luxembourg
 * 10: Saarland-Palatinate
 * 11: Lorraine
 * 12: Alsace
 * 13: Baden
 * 14: Württemberg
 * 15: Bavaria
 * 16: Liechtenstein
 * 17: Vorarlberg
 * 18: Tyrol
 * 19: Carniola
 * 20: Carinthia
 * 21: Styria
 * 22: Salzburg
 * 23: Upper Austria
 * 24: Lower Austria
 * 25: Moravia
 * 26: Bohemia
 * 27: Upper Silesia
 * 28: Lower Silesia
 * 29: Saxony
 * 30: Thuringia
 * 31: Saxony-Anhalt
 * 32: Brandenburg
 * 33: Mecklenburg
 * 34: Pomerania
 * 35: West Prussia
 * 36: South Prussia
 * 37: East Prussia
 * 38: New East Prussia
 * 39: Vienna (Imperial City)
 * 40: Berlin (Imperial City)