UN/LOCODE, or the United Nations Code for Trade and Transport Locations, is a geographic coding scheme developed and maintained by United Nations Economic Commission for Europe (UNECE). UN/LOCODE assigns codes to locations used in trade and transport with functions such as seaports, rail and road terminals, airports, postal exchange offices, and border crossing points. The first issue in 1981 contained codes for 8,000 locations. As of 2026, UN/LOCODE includes over 103,034 locations in 249 countries and territories.
Structure UN/LOCODEs have five characters. The first two letters represent the country as defined in ISO 3166-1 alpha-2. The three remaining characters represent a location within that country. Letters are preferred, but digits 2 through 9 may be used, excluding 0 and 1, to avoid confusion with the letters O and I. For each country, there can be a maximum of 17,576 entries using only letters (26 × 26 × 26), or 39,304 entries using letters and digits (34 × 34 × 34). For the US, the letter combinations have almost all been exhausted. In 2006, the Secretariat added 646 entries with a digit as the last character. For airports, the three letters following the country code are not always identical to the IATA airport code.
See also Lists of airports § By code List of IATA-indexed railway stations, bus stations and ferry terminals
References
External links UN/LOCODE Code List by Country and Territory