
This code set is numeric-only, but any one character actually represents two digits. The three character code sets can be summarized as follows:Ĭode Set A: Includes all numeric values (0-9), uppercase alphabetic characters (A-Z), punctuation marks, seven special characters, and "control" characters (ASCII values 00 through 95).Ĭode Set B: Includes all numeric values (0-9), uppercase and lowercase alphabetic characters (A-Z, a-z), punctuation marks, and seven special characters (ASCII values 32 through 127).Ĭode Set C: Includes all numeric digit pairs from 00 through 99 and three special characters. Because of this, Code 128 gives you the greatest possible character density when encoding data. However, it is possible to switch between the different character sets and use any combination of them in a single symbol. The default code set that is in use for any Code 128 barcode is determined by the start character. This is possible because Code 128 uses three different sets of 102 characters: Code Set A, Code Set B, and Code Set C. Calculation of the checksum ASCII code CheckSum& IIf(CheckSum& < 95.
Code 128 checksum calculator generator#
The start character that will be used for a given barcode depends on what characters need to be encoded in that portion of the barcode.Īlthough a Code 128 character set itself contains only 102 characters, this symbology supports all 128 lower ASCII characters. Follow these steps in order to create your own Code 128 barcode generator in. Start character: Code 128 has three different start characters, one for each of the three character code sets: Code Set A, Code Set B, and Code Set C.

Also, unlike UPC/EAN, Code 128 is not limited to numbers only. Although this represents a 50 percent reduction in character density, Code 128 can represent all 128 ASCII characters. However, whereas the UPC/EAN family uses four elements (two bars and two spaces) per character, each Code 128 character is represented by six elements (three bars and three spaces).


Symbol characters: Most barcode symbologies print bars and spaces in only two widths (wide and narrow), but Code 128 uses four different widths, as the UPC/EAN family does. The steps for calculating the check digit are as follows. All of the checksum calculations are performed independently of whether the barcode is Code. Code 128A's start character has a value of 103, Code 128B's start character has a value of 104, and Code 128C's start character has a value of 105.
Code 128 checksum calculator software#
The symbol comprises the following elements: Before a Code 128 symbol may be encoded, the software must compute the correct checksum digit. You always need to use the table on this page for each one of the Code 128 variants (A, B, C).
