Padding a GTIN to 14 digits preserves an identity; it does not create a new one.
Identify the trade item
A Global Trade Item Number identifies a trade item. Multiple instances of the same trade item can share the same GTIN. For a use case that distinguishes individual instances, additional information such as a serial number is needed.
Length and representation
The four GTIN lengths are 8, 12, 13 and 14 digits. Systems can represent a shorter GTIN in a 14-digit field by adding leading zeros. This representation does not allocate a new product number or create a new packaging level.
GTIN-12 614141123452
14 digits 00614141123452The final digit catches some input errors
The check digit is calculated from the preceding digits. Keep numbers as text when moving them through spreadsheets and software: automatic numeric conversion can remove leading zeros. A checksum checks structure, not product authenticity.
Reproduce the check-digit calculation
Remove the final check digit. Starting from the rightmost remaining digit, apply weights 3, 1, 3, 1 and continue leftwards. If the weighted sum is S, the check digit is (10 − S mod 10) mod 10. For the body 61414112345, S is 58, so the check digit is 2. This reproduces the complete sample 614141123452 without changing its identity.
A packaging level is a business distinction
A consumer unit and a separately ordered case are different trade-item configurations. Follow GTIN allocation and management rules for their identification. Padding a retail number with zeros only changes its field representation; it cannot assign the case’s identity. Likewise, a serial identifies an instance within a GTIN, rather than replacing the GTIN of a changed product.
Reference: GS1 US · Packaging Level Definitions
Separate format, allocation and physical verification
The checker accepts a complete 8-, 12-, 13- or 14-digit input and validates length and checksum. It cannot tell a transcribed UPC-E from an unrelated eight-digit number, confirm a licence or identify the product in front of you. Compare the result with the original symbol, symbology information and allocation record. Use the missing-check-digit mode only when the source intentionally omits that digit.
Sources & further reading
Prepared by Only1 with reference to the public materials below. Consult the original sources for the complete standard or regulatory requirements.
GS1 · Global Trade Item NumberGS1 · GTIN, EAN, UPC and barcodesGS1 · How to calculate a check digit manuallyGS1 · GTIN Management StandardGS1 US · Packaging Level Definitions