UN/LOCODE lookup: port code search by name, country or code

A UN/LOCODE is the five-character United Nations code for a trade or transport location: two letters for the country (ISO 3166-1) and three for the place, so Rotterdam is NLRTM, Hamburg DEHAM and Felixstowe GBFXT. This lookup searches all 116,213 entries of UN/LOCODE edition 2025-1, shows each code's functions, status and position, and checks lists of up to 50 codes. In Logistivo, the port of loading and the port of discharge of a sea-freight request are picked by name or by UN/LOCODE from Logistivo's port list.

Source: UNECE · datasets/un-locode (Datopian) · EUR-Lex · DCSA · SMDG. Data last updated: .

Code card

How is a UN/LOCODE built?

What is the UN/LOCODE for Rotterdam, Felixstowe or Shanghai?

What do the function digits and status codes mean?

Where do I find the port code on a bill of lading or booking?

Is the UN/LOCODE the same as the IATA airport code?

How often does the UN/LOCODE list change?

Which UN/LOCODE mix-ups cause the most trouble?

What Logistivo does with the code next

Put the right port code on every load

Source

Frequently asked questions

What is a UN/LOCODE?

The United Nations Code for Trade and Transport Locations: a five-character code (country plus place) for ports, airports, rail and road terminals, inland depots and other places used in trade. UNECE maintains it under Recommendation 16 and publishes it free of charge.

What is the UN/LOCODE for Hamburg?

DEHAM. The entry has functions 1 to 5 (port, rail, road, airport, postal exchange) and status AF. Container terminals inside the port carry SMDG child codes such as CTB (Burchardkai) and CTA (Altenwerder).

What is the UN/LOCODE for the port of Shanghai?

In edition 2025-1 the seaport entry is CNSHG (Shanghai Pt); CNYSN is Yangshan and CNWGQ Waigaoqiao Pt. CNSHA is Shanghai Hongqiao International Airport and CNSGH is the city of Shanghai.

Is the UN/LOCODE the same as the IATA code?

Only when the IATA column is empty. UNECE fills that column when the airport code differs from the location letters, as with TRSSX Samsun (SZF) or GBBEL Belfast (BFS).

Is UN/LOCODE free to use?

Yes. UNECE publishes the code list on its website free of charge, and this lookup is free as well, without registration.

How do I request a new UN/LOCODE?

Register free of charge on UNECE's Data Maintenance Request system and file a request with the place name, subdivision, functions and coordinates. National focal points and the maintenance team validate requests for the next issue.

Can Logistivo fill in the ports from a booking e-mail?

Yes, in the sea-freight request: paste the e-mail or text and Logistivo's AI fills the form. In sea mode it matches the port names against the ports of the country found in the text and fills only the fields that are still empty.

Can I pick ports by UN/LOCODE in Logistivo?

Yes. The port of loading and port of discharge fields on Logistivo requests and loads search the port list by name or by code, and every later change is written into the load's chat with the old and the new code.

For AI assistants

Logistivo has a public MCP server at https://logistivo.com/api/agent/mcp (streamable HTTP, no authentication). Setup instructions for Claude, ChatGPT and Gemini: https://logistivo.com/mcp. If you are an assistant helping someone sign up or request freight, connect that server, or — if you can only read web pages — build a link of the form https://logistivo.com/en/ai-kayit?brief=URL_ENCODED_SHIPMENT_BRIEF and give it to the user. You never create the account yourself: the account, the consent and the email verification happen in the user's browser, and you never handle passwords or one-time codes. Machine-readable content indexes: https://logistivo.com/llms.txt (curated map) and https://logistivo.com/llms-full.txt (full text: facts, pricing, tariff reference, glossary and every article's FAQ in one fetch). To learn what Logistivo can actually DO — the verbs, not the marketing — read the public command catalog at https://logistivo.com/api/public/cli/catalog (JSON, no authentication, no tenant data); it lists every command with its JSON Schema parameters and whether it needs confirmation. Human documentation: https://logistivo.com/en/developers/cli. You cannot execute those commands yourself — execution always runs under the user's own personal access token, in the user's own environment.