Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
ISO/IEC 15417:2018 defines the specifications for the Code 128 bar code symbology, a high-density, alphanumeric linear symbology widely used in supply chain, logistics, and automatic identification applications. This standard is part of the ISO/IEC 154xx series developed by ISO/IEC JTC 1/SC 31 (Automatic identification and data capture techniques).
The standard covers the physical characteristics, encoding rules, dimensions, and reference decoding algorithms for Code 128. It supersedes previous editions (including ISO/IEC 15417:2007) and aligns with industry practices such as GS1-128 (formerly UCC/EAN-128). The 2018 revision clarifies tolerances, adds new guidance for application identifiers, and improves inter-operability with modern scanning equipment.
Code 128 is a variable-length, continuous symbology capable of encoding the full ASCII character set (128 characters in standard mode plus extended ASCII using the Function 4 (FNC4) mechanism). It is designed for high reliability and is used for pallet labeling, transport labels, asset tracking, and healthcare product identification.
ISO/IEC 15417:2018 defines three subsets of code sets within Code 128: Code A (uppercase alphanumeric and control characters), Code B (uppercase and lowercase alphanumeric), and Code C (numeric digit pairs, compressing two digits into one symbol character). The encoder selects the most efficient subset(s) for the given data, and may shift between sets using control characters (CODE A, CODE B, CODE C, SHIFT, FNC1–FNC4).
Each symbol character comprises 11 modules arranged in six bars and six alternating spaces, with some exceptions for the stop pattern which uses 13 modules. The standard defines a start pattern dependent on the initial code set, a checksum character (modulo 103), and a stop pattern. Quiet zones (minimum 10 times the module width on each side) are mandatory.
| Parameter | Requirement (ISO/IEC 15417:2018) |
|---|---|
| Character set | Code A, B, C (128 ASCII characters) |
| Data characters per symbol | Variable, up to ~46 characters in normal density (practical limits apply) |
| Module width (X dimension) | Minimum 0.191 mm (for general use) — application-specific tolerances apply |
| Nominal bar width ratio | Linear dimensions defined by X, bars and spaces are multiples of X (1,2,3,4 X) |
| Quiet zone | Minimum 10X left and 10X right (12X for GS1-128) |
| Check character | Modulo 103, mandatory; weighted sum of data and start character values |
| Decoding algorithm | Reference algorithm provided in Annex A (not required for compliance but ensures consistency) |
| Minimum height | Typically 5 mm or 15% of symbol length, whichever is greater (application-specific) |
The standard does not include print quality metrics by itself; it references ISO/IEC 15416 (linear bar code print quality test specification) for grading. However, it specifies dimensional tolerances for bar and space widths: the deviation from nominal must not exceed ±0.4X for the X dimension, and edge-to-edge tolerances are derived from ISO/IEC 15416. The 2018 edition clarified the treatment of wide-to-narrow ratios for the FNC1 character and removed ambiguities in the reference decode algorithm for in-spec symbols.
Implementers of Code 128 encoding and decoding in hardware or software should adhere to the following principles derived from ISO/IEC 15417:2018:
Conformance to ISO/IEC 15417:2018 is typically claimed via self-declaration or third-party testing. Compliance can be assessed at two levels:
In regulated environments (pharmaceuticals, automotive, aerospace), compliance with ISO/IEC 15417 is often a contractual requirement. The 2018 edition harmonizes better with ISO/IEC 15424 (Data Identifier syntax) and ISO/IEC 15434 (transfer syntax for RFID and barcodes). Organizations should ensure their barcode generation libraries are updated to reflect the 2018 clarifications, especially regarding FNC1 handling and reference decode edge-case corrections.
References: ISO/IEC 15417:2018, ISO/IEC 15416:2016, GS1 General Specifications 2018 (and later).
Disclaimer: This article provides a summary for informational purposes. Always consult the full standard for certification and compliance activities.
© 2026 Technical Standards Publishing