Professional Barcode Information
for Linear and Matrix Barcodes
Winforms .NET Barcode Generation SDK
Barcode Info > Code 128
Linear Barcode
Code 39
Code 128
EAN-13
EAN 128
UPC-A
Brief Introduction of Code 128
General information include check digit, valid set and structure of Code 128
Code 128 Barcode Introduction
Code 128 is an excellent alphanumeric linear barcode symbology which was defined by ISO/IEC 15417:2007. This barcode symbology is capable to encode high density of ASCII Character Set. Code 128 is appended with one mandatory checksum digit which will not be displayed in the human readable interpretation. It is widely used in shipping and packing systems and also was utilized by Automatic Identification Manufacturers (AIM) as standard barcode symbology.
Code 128 Barcode Library for .NET Applications
Aspper.com provides robust barcode generator to create Code 128 in many .NET applications.
Detailed Information for Code 128 Barcodes

Code 128 Valid Character Set

Code 128A, Code 128B, Code 128C

Code 128 allows easy encoding of alphanumeric data and all 128 characters of ASCII. By utilizing extended character FNC4, Code 128 is able to encode Latin-1 characters. Code 128 is divided into 3 subsets (A, B and C) and encode data below:

Code 128 Structure

Code 128 should comprise 6 parts according to the barcode specification ISO/IEC 15417. Each character is composed of 6 elements, 3 of which are bars and the others are spaces. The bars and spaces are arranged alternately from left to right and each of which is composed of 1, 2, 3 or 4 modules. (Note: The stop character is 13 modules since it comprises an additional bar element).

Checksum Digit of Code 128

The symbol check character of Code 128 is mandatory and shall be included as the last symbol character before the Stop character. However it should not be displayed in the human readable interpretation. To compute checksum digit for Code 128, just follow the steps:
  1. Calculate the numeric values of the start character.
  2. Calculate the numeric values of the first data followed the start character. Multiply the value with 1 (it's position value).
  3. Calculate and multiply the numeric values of the followed digit with it position value in sequence.
  4. Divided the value by 103. The remainder is the checksum digit should be appended.
  5. End with a stop character.