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).
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.
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=.
| # | Line | ?carrier= | SCAC | Container & B/L formats | Sample container |
|---|---|---|---|---|---|
| 1 | Maersk | maersk | MAEU | Format: Container MSKU, MRKU, MRSU, MNBU or SUDU + 7 digits (ISO 6346 check digit) · Bill of lading: MAEU + booking reference, with ?carrier=maersk | MSKU7812341 |
| 2 | MSC | msc | MSCU | Format: Container MSCU, MEDU, MSDU, MSMU, MSNU or MSBU + 7 digits (ISO 6346 check digit) · Bill of lading: MEDU + booking reference, with ?carrier=msc | MEDU1234562 |
| 3 | CMA CGM | cmacgm | CMDU | Format: Container CMAU, CGMU, ECMU, APHU or APZU + 7 digits (ISO 6346 check digit) · Bill of lading: CMDU + booking reference, with ?carrier=cmacgm | CMAU4821035 |
| 4 | COSCO Shipping | cosco | COSU | Format: Container CSNU, CBHU, CCLU, CSLU or FCIU + 7 digits (ISO 6346 check digit) · Bill of lading: COSU + booking reference, with ?carrier=cosco | CSNU8123465 |
| 5 | Hapag-Lloyd | hapaglloyd | HLCU | Format: Container HLXU, HLBU, HAMU or UACU + 7 digits (ISO 6346 check digit) · Bill of lading: HLCU + booking reference, with ?carrier=hapaglloyd | HLXU8173257 |
| 6 | ONE (Ocean Network Express) | one | ONEY | Format: Container ONEU or KKFU + 7 digits (ISO 6346 check digit) · Bill of lading: ONEY + booking reference, with ?carrier=one | ONEU1234566 |
| 7 | Evergreen | evergreen | EGLV | Format: Container EGHU, EGSU, EISU or EITU + 7 digits (ISO 6346 check digit) · Bill of lading: EGLV + booking reference, with ?carrier=evergreen | EGHU9123457 |
| 8 | HMM | hmm | HDMU | Format: Container HDMU or HMMU + 7 digits (ISO 6346 check digit) · Bill of lading: HDMU + booking reference, with ?carrier=hmm | HDMU6310941 |
| 9 | Yang Ming | yangming | YMLU | Format: Container YMMU + 7 digits (ISO 6346 check digit) · Bill of lading: YMLU + booking reference, with ?carrier=yangming | YMMU6123458 |
| 10 | ZIM | zim | ZIMU | Format: Container ZIMU or ZCSU + 7 digits (ISO 6346 check digit) · Bill of lading: ZIMU + booking reference, with ?carrier=zim | ZIMU5528710 |
| 11 | OOCL | oocl | OOLU | Format: Container OOLU or OOCU + 7 digits (ISO 6346 check digit) · Bill of lading: OOLU + booking reference, with ?carrier=oocl | OOLU9204635 |
| 12 | Wan Hai Lines | wanhai | WHLC | Format: Container WHLU or WHSU + 7 digits (ISO 6346 check digit) · Bill of lading: WHLC + booking reference, with ?carrier=wanhai | WHLU5712082 |
| 13 | PIL (Pacific International Lines) | pil | PABV | Format: Container PCIU + 7 digits (ISO 6346 check digit) · Bill of lading: PABV + booking reference, with ?carrier=pil | PCIU8031522 |
| 14 | Matson | matson | MATS | Format: Container MATU + 7 digits (ISO 6346 check digit) · Bill of lading: MATS + booking reference, with ?carrier=matson | MATU2647199 |
| 15 | KMTC | kmtc | KMTC | Format: Container KMTU + 7 digits (ISO 6346 check digit) · Bill of lading: KMTC + booking reference, with ?carrier=kmtc | KMTU7381057 |
| 16 | Crowley | crowley | CAMN | Format: Container CMCU + 7 digits (ISO 6346 check digit) · Bill of lading: CAMN + booking reference, with ?carrier=crowley | CMCU5902317 |
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.