Freight Reference

Port codes in ocean freight

Every port on a booking, a bill of lading or a customs filing is identified by a five-character UN/LOCODE. Once you can read the structure, you can read any of them.

This is a selection, not a directory. UN/LOCODE holds well over 100,000 entries and is revised twice a year. Listed here are codes for ports that matter in international container trade — a small fraction of the register. For the complete and current list, use the UNECE register itself.

How the code is built

NLRTM

That is the whole rule. It is why the table below groups by country: every code in the China section begins CN, every code in the Brazil section begins BR.

Things the code will not tell you

Port codes by country

Countries A–Z, and codes A–Z within each country. 115 entries.

Australia (AU)

AUBNEBrisbane
AUFREFremantle
AUMELMelbourne
AUSYDSydney

Belgium (BE)

BEANRAntwerpAntwerp-Bruges since the 2022 merger; the code is unchanged.
BEZEEZeebrugge

Brazil (BR)

BRPNGParanaguá
BRRIGRio Grande
BRSSZSantosSouth America’s busiest container port.

Canada (CA)

CAHALHalifax
CAMTRMontreal
CAPRRPrince RupertShortest Asia–North America sailing, and rail-connected inland.
CATORTorontoA Great Lakes port handling bulk — cement, sugar, salt — rather than containers. FrateZone is based in the Greater Toronto Area.
CAVANVancouver

Chile (CL)

CLSAISan Antonio
CLVAPValparaíso

China (CN)

CNDALDalian
CNGGZGuangzhou
CNNBONingboOperated jointly with Zhoushan as Ningbo-Zhoushan; the register lists Ningbo.
CNQINQingdao
CNSGHShanghaiThe world’s busiest container port.
CNSHKShekouA terminal area of Shenzhen with its own code — not the same as CNSNZ.
CNSNZShenzhen
CNTNJTianjin
CNXAMXiamen
CNYTNYantianA terminal area of Shenzhen, coded separately.

Colombia (CO)

COBUNBuenaventura
COCTGCartagena

Denmark (DK)

DKAARAarhus
DKCPHCopenhagen

Egypt (EG)

EGALYAlexandria
EGPSDPort SaidAt the Mediterranean end of the Suez Canal.

France (FR)

FRFOSFos-sur-Mer
FRLEHLe Havre
FRMRSMarseille

Germany (DE)

DEBRVBremerhaven
DEHAMHamburg
DEWVNWilhelmshaven

Greece (GR)

GRPIRPiraeus

Hong Kong (HK)

HKHKGHong Kong

India (IN)

INCOKCochin
INMAAChennaiThe code preserves the former name, Madras.
INMUNMundra
INNSANhava Sheva (JNPT)India’s largest container port, serving Mumbai.

Indonesia (ID)

IDJKTJakartaThe container terminal is Tanjung Priok, which has its own non-port code; cargo moves under IDJKT.
IDSUBSurabaya

Italy (IT)

ITGITGioia Tauro
ITGOAGenoa
ITSPELa Spezia

Japan (JP)

JPNGONagoya
JPOSAOsaka
JPTYOTokyo
JPUKBKobe
JPYOKYokohama

Malaysia (MY)

MYPENPenang
MYPKGPort Klang
MYTPPTanjung Pelepas

Mexico (MX)

MXATMAltamira
MXLZCLázaro Cárdenas
MXVERVeracruz
MXZLOManzanilloMexico’s busiest container port. Not to be confused with Manzanillo, Panama.

Morocco (MA)

MAPTMTanger Med

Netherlands (NL)

NLAMSAmsterdam
NLRTMRotterdamEurope’s largest container port.

New Zealand (NZ)

NZAKLAuckland
NZTRGTauranga

Oman (OM)

OMSLLSalalah

Panama (PA)

PABLBBalboaPacific end of the Panama Canal.
PACTBCristóbalAtlantic end of the Panama Canal.

Peru (PE)

PECHYChancayOpened 2024 and reshaping South American routings with direct Asia sailings.
PECLLCallao

Philippines (PH)

PHMNLManila

Poland (PL)

PLGDNGdańsk

Portugal (PT)

PTLISLisbon
PTSIESines

Saudi Arabia (SA)

SADMMDammam
SAJEDJeddah

Singapore (SG)

SGSINSingaporeThe world’s largest transhipment hub.

South Africa (ZA)

ZACPTCape Town
ZADURDurban

South Korea (KR)

KRINCIncheon
KRKANGwangyang
KRPUSBusanNorth-east Asia’s main transhipment hub.

Spain (ES)

ESALGAlgeciras
ESBCNBarcelona
ESVLCValencia

Sri Lanka (LK)

LKCMBColombo

Sweden (SE)

SEGOTGothenburg

Taiwan (TW)

TWKELKeelung
TWKHHKaohsiung
TWTXGTaichung

Thailand (TH)

THBKKBangkok
THLCHLaem Chabang

Türkiye (TR)

TRAMRAmbarlı
TRMERMersin

United Arab Emirates (AE)

AEAUHAbu Dhabi
AEJEAJebel AliThe Gulf’s principal transhipment hub.

United Kingdom (GB)

GBFXTFelixstoweThe UK’s largest container port.
GBLIVLiverpool
GBSOUSouthampton

United States (US)

USBALBaltimore
USCHSCharleston
USHOUHouston
USJAXJacksonville
USLAXLos AngelesAdjacent to Long Beach and often quoted together, but a separate port with a separate code.
USLGBLong Beach
USMIAMiami
USNYCNew YorkThe complex is marketed as the Port of New York and New Jersey, but USNYC names New York. The New Jersey terminals also appear under USEWR, Newark.
USOAKOakland
USORFNorfolk
USSAVSavannah
USSEASeattle
USTIWTacoma

Vietnam (VN)

VNHPHHaiphong
VNSGNHo Chi Minh CityThe code preserves the former name, Saigon.

Questions

What is a UN/LOCODE?
A five-character code identifying a trade location: two characters for the country under ISO 3166, then three for the place. NLRTM is the Netherlands, Rotterdam. It covers seaports, airports, rail terminals and inland points alike.
Why use a code instead of the port name?
Because names repeat and codes do not. There are many places called Portsmouth, Santa Cruz and Victoria. A booking that says the port name alone is ambiguous; one that carries the code is not.
Is a port code the same as a terminal?
No. A port code identifies the port, not the berth. A large port has several terminals, and knowing a container arrived at a port does not tell you which terminal to collect it from. Terminal-level identification uses a separate scheme.
Why do Los Angeles and Long Beach have different codes?
Because they are separate ports with separate authorities, despite sharing a harbour and usually being quoted together as one gateway. USLAX and USLGB are not interchangeable on a booking.
Is this list complete?
No. UN/LOCODE contains over 100,000 entries and is revised twice a year. This page lists a selection of significant container ports; the UNECE register is the authoritative and complete source.

UN/LOCODE is maintained by the United Nations Economic Commission for Europe, which publishes the complete and current register. FrateZone is not affiliated with the UNECE, and this page is neither the register nor a substitute for it.

Provided for convenience and general information only.Figures, definitions and descriptions on these pages are compiled from publicly available sources — published industry standards, official code registers and carriers' own published specifications — and are nominal: actual equipment, regulations and commercial terms vary by manufacturer, carrier, jurisdiction and contract, and change over time. FrateZone is not the issuing authority for any of it, does not warrant that any figure here is correct, current or complete, and makes no representation that a source has not changed since it was read. Where a specification belongs to a specific physical unit or a specific contract — a container's certified plate, an airline's tariff, the wording of your own sale agreement — that document governs, not this page. FrateZone accepts no liability for any error or omission here, nor for any operational, commercial, financial or legal decision taken in reliance on it. Verify against the authoritative source before you act.

Start tracking in under a minute

Create a free account, explore a live sandbox with real routes, and only buy credits when you are ready.

Create free account