Free tool from Boxvera
Container check digit calculator
Type the 4 letters and 6 digits of a container number to get its check digit. Type all 11 characters to see if the number is valid. It follows ISO 6346, the standard behind the number painted on every box.
Your result shows here.
Heads up: the 4th letter is usually U, J or Z.
It runs in your browser, so once this page is open it works with no signal.
How the check digit is worked out
A container number has 4 letters (3 for the owner and 1 for the equipment type), 6 digits for the serial and 1 check digit at the end.
- Turn letters into numbers. A is 10, B is 12, and so on up to Z, which is 38. The values skip 11, 22 and 33. Digits keep their own value.
- Weight each position. Multiply the 1st character by 1, the 2nd by 2, the 3rd by 4, and keep doubling up to 512 for the 10th.
- Add the 10 results and divide the total by 11.
- The remainder is the check digit. A remainder of 10 becomes 0. (The standard recommends avoiding serials that land on 10, but you'll still meet some.)
Worked example: CSQU 305438
| Character | C | S | Q | U | 3 | 0 | 5 | 4 | 3 | 8 |
|---|---|---|---|---|---|---|---|---|---|---|
| Value | 13 | 30 | 28 | 32 | 3 | 0 | 5 | 4 | 3 | 8 |
| Weight | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 |
| Value × weight | 13 | 60 | 112 | 256 | 48 | 0 | 320 | 512 | 768 | 4,096 |
Total 6,185. Divided by 11, that's 562 with 3 left over, so the check digit is 3 and the full number is CSQU 305438 3.
Letter values
- A10
- B12
- C13
- D14
- E15
- F16
- G17
- H18
- I19
- J20
- K21
- L23
- M24
- N25
- O26
- P27
- Q28
- R29
- S30
- T31
- U32
- V34
- W35
- X36
- Y37
- Z38
The 4th letter says what the equipment is: U for a freight container, J for detachable equipment such as a clip-on genset, Z for a trailer or chassis.
Why one digit matters at the gate
If one character of a container number is misread or mistyped, the check digit almost always stops matching. That's how you catch it before the box is filed under the wrong number, with its damage photos attached to a container that isn't in your yard.
Boxvera checks the digit as the camera reads the door, and warns the surveyor on the spot if a typed number fails.
See how Boxvera reads the doorDecode a container's ISO size and type codeBook a demo