Port Code Lookup
Search the complete UN/LOCODE database of over 17,000 seaports and cargo ports worldwide. Find the exact 5-character port code for bills of lading, booking notes, and customs declarations in seconds.
| LOCODE | Port Name | City | Country | Subdivision |
|---|
Loading seaport database…
How It Works
Look up the exact UN/LOCODE port code you need for ocean freight, customs, and bookings in three quick steps.
Type to Search
Enter a LOCODE (like CNSHA), port name, city, or 2-letter country code — results filter instantly as you type.
Browse the Table
Narrow results with the country dropdown, then page through thousands of seaports. Each row shows the LOCODE, port name, city, country, and subdivision.
Click to Copy
Click any row to copy the 5-character UN/LOCODE to your clipboard, ready to paste into your bill of lading, booking note, or customs document.
Benefits of the Port Code Lookup
Built for freight forwarders, customs brokers, and shipping teams who handle ocean freight and need accurate UN/LOCODE port codes at their fingertips.
17,000+ Seaports
Covers every seaport and cargo port with a UN/LOCODE worldwide — from mega-ports to regional terminals — all in one searchable database.
Instant Filtering
Real-time search across LOCODEs, port names, cities, and countries — no page reloads, no waiting, just type and find.
One-Click Copy
Click any row to copy the LOCODE straight to your clipboard — perfect for filling bills of lading (B/L) and booking systems.
Verified & Free
Data sourced from the official UN/LOCODE database (UNECE). Free to use, no sign-up, no ads, and no data leaves your browser.
Frequently Asked Questions
Your Complete UN/LOCODE Port Database
Shipping ocean freight requires the correct port code — the five-character UN/LOCODE that tells carriers, customs, and terminal operators exactly which port your cargo is moving through. Our free port code lookup puts the complete global database of over 17,000 seaports at your fingertips, searchable by LOCODE, port name, city, or country.
How UN/LOCODE Works for Ports
Every UN/LOCODE starts with a 2-letter country code followed by a 3-letter location code. For example, CNSHA breaks down as CN (China) + SHA (Shanghai), USLAX as US (United States) + LAX (Los Angeles), and NLRTM as NL (Netherlands) + RTM (Rotterdam). This structure lets you identify the country at a glance and makes the codes far less error-prone than port names, which vary by language and spelling.
Common Ocean Freight Port Codes
- CNSHA — Port of Shanghai (world's busiest container port)
- SGSIN — Port of Singapore (largest transshipment hub)
- NLRTM — Port of Rotterdam (Europe's largest port)
- USLAX — Port of Los Angeles (busiest US west coast port)
- HKHKG — Port of Hong Kong (major Asian transshipment center)
- DEHAM — Port of Hamburg (Germany's largest port)
How Freight Forwarders Use Port Codes
Every bill of lading, booking confirmation, and customs entry references the port of loading and port of discharge by UN/LOCODE. Getting a code wrong can route containers to the wrong country, trigger customs holds, or incur costly demurrage. Forwarders keep a reference list handy — and this tool replaces that printed list with a searchable database that is always up to date and free to use.