- Home
- Barcode Glossary
- Code 128C
Code 128C
Code 128 locked to code set C — digit pairs packed two per character for maximum numeric density.
Code 128C Specification
| Character set | Digit pairs 00-99 only (numeric data) |
| Data length | Variable, but must contain an even number of digits |
| Check digit | Mandatory Mod 103 check character, appended automatically |
| Density | ≈24 digits per inch at the minimum 0.19 mm X-dimension — the densest mainstream 1D numeric encoding |
| Module width (X-dimension) | 0.19-0.50 mm typical |
| Print ratio | Variable-width bars and spaces |
| Magnification | Scales linearly with the chosen X-dimension |
| Quiet zone | 10X on each side |
| Standard | ISO/IEC 15417 |
| Origin | Ted Williams, Computer Identics, 1981 |
| Sample data | 123456 |
Try It: Generate a Code 128C Barcode
This live generator is preconfigured for Code 128C. Adjust size, colors, and text — then download as PNG or SVG. Free, no signup, all encoding happens in your browser.
What Is Code 128C?
Code 128C is Code 128 restricted to code set C, which encodes exactly two digits (00-99) in each symbol character. Because a standard Code 128 character spans 11 modules, code set C represents each digit with only 5.5 modules — the highest numeric density of any mainstream 1D symbology. A leading zero is conventionally added when the digit count is odd, since code set C always works in pairs.
It is the preferred subset for long fixed or variable numeric strings: serial numbers, GTINs without GS1-128 framing, container codes, and numeric order numbers. GS1-128 logistics symbols rely on code set C for the numeric body of Application Identifier strings. If your data is digits-only and width matters, Code 128C is the right choice.
Common Applications
- Long numeric serial numbers
- GTIN data in GS1-128 logistics labels
- Container and carton identification
Related Barcode Types
A high-density, variable-length linear barcode that encodes all 128 ASCII characters, and the backbone symbology of modern logistics.
Code 128 carrying GS1 Application Identifier element strings — the standard barcode of global logistics.
Code 128 locked to code set B — the full printable ASCII range including lowercase letters.
Code 128C FAQ
Why does Code 128C require an even number of digits?
Code set C maps each symbol character to a two-digit value 00-99, so the data must split cleanly into pairs. An odd digit count is handled either by prepending a zero to the data or by letting Code 128 auto mode start in code set B for the single leading digit before shifting to C — the auto encoder makes this choice for you.
