Skip to content
Menu

UN/LOCODE Lookup

Look up UN/LOCODE port and location codes in bulk: code to name, or name to code, with country, functions and coordinates. Free, no sign-up.

Server lookup (entries not kept)

UN/LOCODEs or place names

One per line, or separated by commas or semicolons. Codes may contain spaces or hyphens (JP TYO). Entries are sent to our server to be looked up and are not stored.

0 entries

What this tool does

Enter UN/LOCODEs or place names, one per line. For each entry the tool finds the location in UN/LOCODE and shows its code, name, country, subdivision, functions (port, airport, rail terminal …), status and coordinates.

  • Code to name: JPTYO, jptyo, JP TYO and JP-TYO all find Tokyo.
  • Name to code: an exact name (case and accents ignored) is used first; otherwise the closest similar name, marked as such.
  • Ports only (on by default): names match only seaports and inland water ports. A code is always looked up, and a location that is not a port gets a note.

Reading the results

Column Meaning
UN/LOCODE Two letters for the country, three for the place
Functions What the location is used for, from the UN/LOCODE function classifier
UN/LOCODE status Who approved the entry, for example AF “Approved by national facilitation body” or RL “Recognised location”
Match Code, exact name, or similar name
Matches How many locations have that name

Common problems

  • Two letters of a name look like a country. A five-character name such as TOKYO is looked up as a code first; when no such code exists, it is looked up as a name.
  • Several places with the same name. Victoria matches places in many countries. Add the code instead of the name when you know it.
  • Requested or removed entries. Entries with status RQ are still under review and should not be used in international messages; entries marked for removal disappear in the next UN/LOCODE release.

FAQ

What is a UN/LOCODE?

The United Nations Code for Trade and Transport Locations. It has five characters, two letters for the country (ISO 3166-1) and three for the place, for example JPTYO for Tokyo. It is used in shipping documents, EDI messages and customs declarations.

Why does a name give a different place than I expected?

Many places share a name. When several locations match, the tool shows one, ranked by whether it has a detail page, is a port and has an approved status, and adds a note with the number of matches. Check the country column, or enter the code instead.

What does “similar name” mean?

No location has exactly that name, so the closest name is shown, for example Tokio for Tokyo. Always check such rows before using the code.

Is my data stored?

Your entries are used only to look them up. Our server does not store them, and our application logs do not record what you enter. If you use a share link, your entries are part of its web address. Downloads are created in your browser.

Where do the coordinates come from?

From UN/LOCODE. When UN/LOCODE has none and the port has a Wikidata item, the item's coordinates are used; they usually point to the city center, so use them for reference only. The coordinates source column shows which one you got.

Data: UN/LOCODE, Unicode CLDR, Wikidata. Data sources and licenses