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. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

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 UN/LOCODE is and why it matters

UN/LOCODE (the United Nations Code for Trade and Transport Locations) is the universal identifier for logistics locations: seaports, airports, inland freight terminals, rail cargo facilities, and road border crossings worldwide. It appears in shipping instructions, customs declarations (including HMRC import/export filings), bills of lading, HS-coded trade data, and EDI messages.

The code is maintained by UNECE (the United Nations Economic Commission for Europe) and republished approximately twice a year. The register currently holds over 100,000 active and retired locations across more than 200 countries.

How a UN/LOCODE is structured

Every code is five characters: a two-letter ISO 3166 country code followed by a three-character location code:

  US  NYC
  ^^  ^^^
  |   |
  |   Location code — usually derived from the city name
  Country code (ISO 3166-1 alpha-2)

Common examples:

CodeLocation
USNYCNew York City, United States
NLRTMRotterdam, Netherlands
GBLONLondon, United Kingdom
SGSINSingapore, Singapore
DEHAMHamburg, Germany
CNSHAShanghai, China
JPNGONagoya, Japan
AEAUHAbu Dhabi, United Arab Emirates

The location characters use letters and, in rare cases, the digits 2 to 9. The digits 0 and 1 are deliberately excluded because they look like the letters O and I in some typefaces.

How the lookup works

When you enter a full five-character code, the tool validates the format and looks it up in the curated dataset. Partial queries filter by code, city name, or country. The function column next to each result summarises the location’s role using flags from the official register:

  • P — Seaport
  • A — Airport
  • R — Road terminal
  • T — Rail terminal
  • B — Border crossing
  • Q — Liquid bulk / gas terminal
  • F — Inland freight terminal
  • M — Multimodal

A location may carry multiple flags, for example a major hub like Dubai’s Jebel Ali acts as both a seaport and an inland freight terminal.

UN/LOCODE vs other location codes

UN/LOCODEs are sometimes confused with related but distinct systems:

  • IATA airport codes (three letters, e.g., LHR for Heathrow) cover only civilian airports. UN/LOCODEs cover airports too, but also seaports, rail depots, and land crossings. The same airport may have both: London Heathrow is LHR (IATA) and GBLHR (UN/LOCODE).
  • ISO 3166-2 subdivisions identify regions and states within a country, not logistics locations.
  • ICAO codes (four characters, e.g., EGLL for Heathrow) are used in aviation operations, not trade logistics.

Notes on the curated dataset

The full UNECE register exceeds 100,000 entries. This tool curates the most frequently referenced ports, airports, and multimodal hubs for fast browser-based lookup. A code absent from this list may still be valid in the complete UNECE dataset — always cross-reference against the current official release for production customs or logistics systems.

All searching runs locally in your browser. Nothing is uploaded.