Container number & ISO 6346 check-digit validator.

Check any container number against the ISO 6346 check digit and the owner prefixes of all 16 supported ocean lines, the same rules the API runs before it calls a carrier. Leased boxes (Textainer, Triton, CAI, SeaCo …) need the line passed as ?carrier=, and a bill of lading is recognised by its SCAC (see the container tracking API).

Try sample:
MSKU7812341
Maersk (maersk)

MSKU is a Maersk owner prefix; the API detects the line on its own.

Type
Container number (ISO 6346) · 11 chars
Owner code · category
MSK + U · freight container
Check digit
1 ✓ valid
Matched format
/^(MSKU|MRKU|MRSU|MNBU|SUDU)\d{7}$/
Line (SCAC)
Maersk (MAEU)

Synchronous REST lookup

curl "https://api.containerfeed.com/v1/track/MSKU7812341" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"

The check digit is verified before any carrier call, so a mistyped container number fails fast with 400 and never counts toward your monthly containers.

Want live moves, vessel and ETA for MSKU7812341? Run free live lookup →

Owner prefixes & SCACs for all 16 lines

A container number detects to a line by its owner prefix once the check digit is valid; a bill of lading detects by the SCAC it starts with. Anything else needs ?carrier=.

Full format reference →
#Line?carrier=SCACContainer & B/L formatsSample container
1MaerskmaerskMAEUFormat: Container MSKU, MRKU, MRSU, MNBU or SUDU + 7 digits (ISO 6346 check digit) · Bill of lading: MAEU + booking reference, with ?carrier=maerskMSKU7812341
2MSCmscMSCUFormat: Container MSCU, MEDU, MSDU, MSMU, MSNU or MSBU + 7 digits (ISO 6346 check digit) · Bill of lading: MEDU + booking reference, with ?carrier=mscMEDU1234562
3CMA CGMcmacgmCMDUFormat: Container CMAU, CGMU, ECMU, APHU or APZU + 7 digits (ISO 6346 check digit) · Bill of lading: CMDU + booking reference, with ?carrier=cmacgmCMAU4821035
4COSCO ShippingcoscoCOSUFormat: Container CSNU, CBHU, CCLU, CSLU or FCIU + 7 digits (ISO 6346 check digit) · Bill of lading: COSU + booking reference, with ?carrier=coscoCSNU8123465
5Hapag-LloydhapaglloydHLCUFormat: Container HLXU, HLBU, HAMU or UACU + 7 digits (ISO 6346 check digit) · Bill of lading: HLCU + booking reference, with ?carrier=hapaglloydHLXU8173257
6ONE (Ocean Network Express)oneONEYFormat: Container ONEU or KKFU + 7 digits (ISO 6346 check digit) · Bill of lading: ONEY + booking reference, with ?carrier=oneONEU1234566
7EvergreenevergreenEGLVFormat: Container EGHU, EGSU, EISU or EITU + 7 digits (ISO 6346 check digit) · Bill of lading: EGLV + booking reference, with ?carrier=evergreenEGHU9123457
8HMMhmmHDMUFormat: Container HDMU or HMMU + 7 digits (ISO 6346 check digit) · Bill of lading: HDMU + booking reference, with ?carrier=hmmHDMU6310941
9Yang MingyangmingYMLUFormat: Container YMMU + 7 digits (ISO 6346 check digit) · Bill of lading: YMLU + booking reference, with ?carrier=yangmingYMMU6123458
10ZIMzimZIMUFormat: Container ZIMU or ZCSU + 7 digits (ISO 6346 check digit) · Bill of lading: ZIMU + booking reference, with ?carrier=zimZIMU5528710
11OOCLooclOOLUFormat: Container OOLU or OOCU + 7 digits (ISO 6346 check digit) · Bill of lading: OOLU + booking reference, with ?carrier=ooclOOLU9204635
12Wan Hai LineswanhaiWHLCFormat: Container WHLU or WHSU + 7 digits (ISO 6346 check digit) · Bill of lading: WHLC + booking reference, with ?carrier=wanhaiWHLU5712082
13PIL (Pacific International Lines)pilPABVFormat: Container PCIU + 7 digits (ISO 6346 check digit) · Bill of lading: PABV + booking reference, with ?carrier=pilPCIU8031522
14MatsonmatsonMATSFormat: Container MATU + 7 digits (ISO 6346 check digit) · Bill of lading: MATS + booking reference, with ?carrier=matsonMATU2647199
15KMTCkmtcKMTCFormat: Container KMTU + 7 digits (ISO 6346 check digit) · Bill of lading: KMTC + booking reference, with ?carrier=kmtcKMTU7381057
16CrowleycrowleyCAMNFormat: Container CMCU + 7 digits (ISO 6346 check digit) · Bill of lading: CAMN + booking reference, with ?carrier=crowleyCMCU5902317

Container number FAQ

How owner prefixes, check digits, leased boxes and explicit ?carrier= work in production.

How does ContainerFeed tell which line a container number belongs to?
An ISO 6346 container number is the owner code (three letters), the equipment category (U for a freight container), six serial digits and a check digit. A line's own boxes carry its owner prefixes: Maersk MSKU and MRKU, MSC MSCU and MEDU, CMA CGM CMAU, Hapag-Lloyd HLXU, ONE ONEU and so on. The API matches the prefix against all 16 supported lines and verifies the check digit, without any network call.
How is the ISO 6346 check digit calculated?
Each letter gets a value from 10 upwards, skipping multiples of 11 (A=10, B=12, … L=23, … Z=38); digits keep their own value. The first ten characters are multiplied by 1, 2, 4, 8 … 512 by position and summed. The sum mod 11 is the check digit, with a remainder of 10 written as 0. A wrong check digit is almost always a typo, or an O typed for a 0.
Why do leased containers need ?carrier=?
Around half of all containers belong to lessors (Textainer TGHU, Triton TCNU and TRHU, CAI CAIU, SeaCo SEGU, Beacon BMOU …) and sail for whichever line leased them. The number alone can't name the carrier, so pass ?carrier= with the line on the booking, or track the bill of lading instead.
Can I track a bill of lading or booking number instead of a container?
Yes. A master bill of lading or booking reference led by the line's SCAC (MAEU, MEDU, CMDU, HLCU, ONEY …) is recognised and returns every container on it, with vessel, voyage, POL/POD and ETA. If the line prints the reference without its SCAC, pass ?carrier= with the line's code. House bills issued by a forwarder or NVOCC aren't known to the line.

Live container tracking by line