UN/LOCODE Port & Location Code Lookup

Find UN location codes for ports, airports, and rail terminals

Search UN/LOCODE 5-character location codes for major ports, airports, and terminals worldwide. Look up codes like USNYC or NLRTM by code, city, or country, and see each location's function, in your browser.

What is a UN/LOCODE?

UN/LOCODE is the United Nations Code for Trade and Transport Locations, a five-character code identifying ports, airports, and terminals worldwide. It combines a two-letter ISO 3166 country code with a three-character location code, so USNYC means New York in the United States and NLRTM means Rotterdam in the Netherlands.

What this tool is for

This lookup helps you identify and validate UN/LOCODEs, the standard five-character codes used across shipping, customs, and logistics to name a port, airport, or terminal. You can search by code, city, or country, and confirm that a code you have is well-formed and points to the location you expect.

How it works

A UN/LOCODE is built from two parts. The first two characters are the ISO 3166 country code, and the last three are a location code usually drawn from the place name. For example, SGSIN resolves to Singapore in Singapore and DEHAM to Hamburg in Germany. To avoid ambiguity, the location characters use letters and, rarely, the digits 2 to 9, deliberately skipping 0 and 1 because they look like O and I.

When you enter a full five-character code, the tool first checks it against that format with a pattern, then looks it up. Partial searches instead filter the list by code, city, or country. Each result shows the location’s function flags, summarising whether it acts as a seaport, airport, rail terminal, or road terminal.

Tips and notes

The official register, maintained by UNECE and republished roughly twice a year, holds over 100,000 entries, so this tool curates the busiest ports and airports for fast reference. A code that passes the format check but is not listed here may still be valid in the complete dataset, so for authoritative validation in production sync against the latest UNECE release. Remember that UN/LOCODEs are not the same as IATA airport codes or ISO port codes, even though they sometimes coincide.