EDGE ENGINE SUB-2MS DETERMINISTIC V8 EXECUTION • ZERO DATA RETENTION • EXPLORE API SPECS →
Client-side check No sign-up No data upload Container Check Digit Calculator

Container Check Digit Calculator (ISO 6346)

A container check digit calculator computes the 11th character of an ISO 6346 container number from the three-letter owner code, the equipment category letter, and the six-digit serial number.

Calculate or verify the ISO 6346 Mod-11 check digit for a shipping container number.

Calculate a container check digit

Mode
Test data:

Enter a value and run the check. Everything runs locally in this page.

Runs entirely in your browser. The value you type is never sent to a server.

How to calculate a container check digit

  1. Enter the container number — Type the ten-character prefix (owner code, category letter, six-digit serial) to calculate the check digit, or paste the full eleven-character number to verify it.
  2. Apply the ISO 6346 letter values — Letters A to Z map to 10 through 38, skipping the multiples of 11 (11, 22, and 33). Digits keep their face value.
  3. Sum the weighted values — Multiply each of the first ten characters by two to the power of its position (2^0 to 2^9), sum the products, then take the sum modulo 11 and that remainder modulo 10.

What the check verifies

The check verifies the ISO 6346 check digit, the 11th character of a container number. It is calculated by weighting the first ten characters with powers of two, summing the products, and reducing the total modulo 11, then modulo 10.

The calculator assigns each letter its ISO 6346 numeric value (10 to 38, skipping 11, 22, and 33), keeps digits at face value, and multiplies each of the first ten characters by two raised to its position. The products are summed, reduced modulo 11, and reduced again modulo 10 to produce the check digit.

Enter the ten-character base to compute the missing check digit, or paste the complete eleven-character number to confirm that its last digit matches the ISO 6346 calculation.

ISO 6346 letter values and weights

CharacterValue
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

Worked example: C=13, S=30, Q=28, U=32, then 3, 0, 5, 4, 3, 8. Weighted sum 13x1 + 30x2 + 28x4 + 32x8 + 3x16 + 0x32 + 5x64 + 4x128 + 3x256 + 8x512 = 6185. Then 6185 mod 11 = 3 and 3 mod 10 = 3, so CSQU3054383 is valid.

Frequently Asked Questions

How is the container check digit calculated?

Each of the first ten characters is multiplied by 2 raised to its zero-based position, the products are summed, and the check digit is (sum mod 11) mod 10.

What does the fourth character of a container number mean?

The fourth character is the equipment category identifier: U for a freight container, J for detachable cargo equipment, and Z for a trailer or chassis.

Can a container number be valid with the wrong check digit?

No. The check digit is the only integrity check in the number, so a mismatch means at least one character was mistyped or the number was not issued under ISO 6346.

Does the calculator support bulk container numbers?

The free calculator processes one number at a time. The Stanza Container Validator API is the server-side option for integrations and also decodes the container size and type code.

Free browser tool vs Stanza API

CapabilityFree browser toolStanza API
Where it runsYour browserCloudflare edge
AuthenticationNoneBearer API key
Rate limitNonePublished per-tier limits
Data handlingNever leaves your deviceIn-memory, zero retention
Size and type code decoding through the Container Validator APINoYes
Typed JSON envelope with latency metadata for server-side integrationsNoYes

Sources & standards