What is a shipping container number?

Every shipping container has a number of its own, set by the ISO 6346 standard and painted on its doors, sides and roof. It has 11 characters, usually printed as AAAU NNNNNN C:

  • three letters, the owner code, which the owner registers with the Bureau International des Containers
  • one letter for the kind of equipment: U for a freight container, J for equipment fitted to one, such as a clip-on generator, and Z for a trailer or chassis
  • six digits, the serial number
  • a check digit, often printed in a box, worked out from the ten characters before it

Shippers, freight forwarders and port staff use the number to track a container and fill in shipping and customs papers, where one wrong character means following the wrong box.

Tool description

Type or paste a number into the Shipping container number field, and the result shows as you type: "Shipping container number is valid" or "Shipping container number is not valid". Spaces and line breaks around the number are ignored, and small letters count as capitals. The page has no settings.

How the check digit works

Each letter stands for a number: A is 10, B is 12 and so on up to Z at 38, skipping 11, 22 and 33. Multiply the first ten characters by 1, 2, 4, 8 and so on, doubling each time up to 512, and add up the results. The check digit is the remainder after dividing the total by 11, and a remainder of 10 counts as 0.

What passes and what fails

  • U numbers as 11 characters in a row, AAAUNNNNNNC, with the right check digit
  • J and Z numbers with or without their check digit, which has to be right when it's there
  • Spaces or hyphens between the parts fail, so type the printed AAAU NNNNNN C without the spaces
  • A U number without its check digit fails, and so does any letter other than U, J or Z in fourth place
  • Anything else in the field fails, such as a word before the number or an extra character after it

Good to know

  • The page checks the form and the check digit, not whether the container exists or where it is. The owner code isn't looked up either, so any three letters pass.
  • The String Validator has this check in its menu too, next to many other kinds of values.

Features

  • Checks ISO 6346 container numbers and their check digit
  • Freight containers (U), equipment (J) and trailers (Z)
  • Results as you type, with no button to press
  • Runs in your browser, so nothing you type is sent anywhere