All Tools
Categories
Email Marketing Tools 55 Import-Export Tools 50 XML Tools 19 Text Tools 12 Shipping Freight Tools 5 Calculator 4 Marketing Tools 3 Encoder Tools 1
About Contact Privacy

Port Code Lookup Tool (UN/LOCODE Finder)

Look up the UN/LOCODE for any major world port. Search by port name or country, and instantly get the 5-character UN/LOCODE, country code, location type, coordinates and country. Covers the world’s main container and cargo ports. Free reference tool for freight forwarders, shippers and anyone completing shipping documents.

Search ports
Type at least 2 characters. The list is filtered as you type.
Port details

Search for a port to see its details here. You can also browse all ports using the country filter below.

Browse by country

About Port Code Lookup Tool (UN/LOCODE Finder)

The Port Code Lookup Tool is a fast UN/LOCODE finder for the world’s major ports. Enter a port name, country or code and the tool instantly returns the matching ports with their five-character UN/LOCODE, country, coordinates and location type. It is an essential quick reference when preparing bills of lading, shipping instructions, invoices and customs documents.

The tool works completely in your browser against a built-in list of the main container and cargo ports, so there is no network call and no waiting.

Features

  • Search by port or country: Type a name, a country, or a code to find matches instantly.
  • UN/LOCODE results: The five-character code for each matching port.
  • Full details: Country, coordinates and location type.
  • Copy to clipboard: Copy the code with one click.
  • Fast local search: No network calls; results appear as you type.
  • Free and private: Your searches never leave the browser.

How to Use

  1. Type a search term — a port name, country or a UN/LOCODE.
  2. Review the matching results shown below the search box.
  3. Check the UN/LOCODE, country and coordinates for the port you need.
  4. Copy the code with the copy button for use in your documents.
  5. Clear the search to browse the full list by country.

Examples

Example – Preparing a bill of lading: A freight forwarder needs the code for the Port of Rotterdam. Typing “Rotterdam” returns NLRTM. For the discharge port Ningbo in China, typing “Ningbo” or “China” returns CNNGB. Both codes go straight onto the bill of lading.

Benefits

  • Avoid document errors: Use the correct standard code every time.
  • Speed up shipping docs: Find any major port code in seconds.
  • Bilingual search: Match by name, country or code.
  • Works offline: The port list is built into the page.
  • 100% free: No sign-up, no limits.

Frequently Asked Questions

What is a UN/LOCODE?
A UN/LOCODE (United Nations Code for Trade and Transport Locations) is a five-character code that identifies a port, airport or inland location. The first two letters are the country code (for example CN for China) and the last three identify the location. It is used widely on bills of lading and in trade documents.
How do I read a UN/LOCODE?
The code is five characters: two letters for the country followed by three letters/numbers for the location. For example, CNNGB is Ningbo in China (CN + NGB), and AUMEL is Melbourne in Australia (AU + MEL).
Is a UN/LOCODE the same as a port code?
UN/LOCODE is the standard international system for identifying trade locations, including ports. It is maintained by UNECE. Many companies and software also use their own internal port codes, but the UN/LOCODE is the widely recognised international standard.
Where is a UN/LOCODE used?
On bills of lading, shipping instructions, customs declarations, invoices and commercial documents. Using the correct code reduces errors and delays by unambiguously identifying the load and discharge ports.
How many ports are in this tool?
This tool covers the world’s major container and cargo ports. For the complete UN/LOCODE directory maintained by UNECE you can visit the official reference, which lists hundreds of thousands of locations. This tool focuses on the most commonly used ports.
Can I search by country?
Yes. Type a country name to list that country’s ports, or type a port name to find its exact code. You can also search by the 2-letter or 5-character code directly.
Is my data stored?
No. The search runs entirely in your browser against a built-in port list. Nothing you type is transmitted or saved.