I need to create a Code 128 barcode with a maximum of 44 characters. What is the maximum number of characters supported by the Code 128 barcode format?
I came to know that Code 128 can encode all 128 characters of ASCII, but I cannot determine the maximum number of characters it supports.
The data limit of a Code 128 barcode is 48 Characters.
Code 128 includes 108 symbols: 103 data symbols, 3 start symbols, and 2 stop symbols. Each symbol consists of three black bars and three white spaces of varying widths.
A UPC-A barcode contains 12 digits, along with a quiet (blank) zone on either side, and start, middle, and stop symbols.
Linear barcodes can hold anywhere between 8-25 characters, but the more information that is stored the bigger the barcode gets. Imagine the size of a linear barcode if a person wishes to store even a paragraph worth of characters!
The specification for Code 128 (ISO/IEC 15417) leaves the maximum length undefined and states that this is something that should be defined by any derivative application[*] standard:
4.7.1 Symbology and data characteristics
Application specifications should consider the following parameters.
b) The number of data characters in the symbol, which may be fixed, variable or variable up to a defined maximum.
For example the GS1 General Specification define that GS1-128 (the formal application of Code 128 to the supply chain industry) has a limits of 48 characters per symbol:
5.4.1 GS1-128 Bar Code Symbol size characteristics:
The characteristics of the GS1-128 Symbology are:
GS1-128 Bar Code Symbol size characteristics:
- The maximum number of data characters in a single symbol is 48.
Practically one should restrict the number of characters to whatever fits comfortably in a scanner's field of view. This will vary depending on the type and model of the device, e.g. handheld vs fixed, laser vs CCD, high-end vs budget, etc. In uncontrolled or open environments a high degree of tolerance should be budgeted for.
It is especially worth noting that Code 128 supports double-density compression of numeric data ("mode C") which makes encoding long strings of digits much more efficient.
Here is a 44-digit Code 128 containing 12345678901234567890123456789012345678901234
:
This is appropriately sized for most practical applications.
However, here is the same Code 128 this time containing 44 alpha characters ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCD
:
A barcode of this size will not be useful in as many applications since reading this reliably would require a scanner with a high resolution and wide field-of-view.
So ultimately the maximum length of a Code 128 is dependant not only on the practical constraints of the application but also the type of data to be encoded.
[*] Application is the industry term referring to the environment and processes in which the barcode system is to be used, rather than any specific software application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With