Description of Code128 and Its Use in Practice


Code128 is a linear, high-density barcode used for encoding alphanumeric characters. This barcode is particularly popular in the logistics and retail industries, but also in other areas such as the automotive industry and healthcare. Code128 is also known by the names GS1-128 or UCC/EAN-128.

Structure of Code128

Code128 consists of a start sequence, a data zone, a check digit, and a stop sequence. The start sequence consists of a combination of three characters: a start character, a character for encoding the data structure, and a character for encoding the data sets. The data zone contains the actual data that needs to be encoded. The check digit is used to ensure that the data has been encoded correctly. The stop sequence consists of a stop character.

Use in Practice

Code128 is widely used in many areas due to its high encoding density and the fact that most barcode scanners can read this barcode. In the logistics and retail industries, Code128 is often used to track products and orders. In the automotive industry, it is used to identify vehicle parts. In healthcare, Code128 is used to store patient and insurance data on hospital labels.

Generating Code128 Barcodes

There are many programs and libraries that can be used to generate Code128 barcodes. Some of the most popular libraries are zxing, bwip-js, and python-barcode. These libraries can be used in various programming languages such as Java, JavaScript, and Python. There are also online tools that can be used to generate Code128 barcodes.

Reading Code128 Barcodes

Most barcode scanners can read Code128 barcodes. There are different types of barcode scanners, including handheld scanners, stationary scanners, and mobile scanners. Handheld scanners are often used in retail stores and warehouses, while stationary scanners are used in production lines and logistics centers. Mobile scanners can be attached to smartphones and tablets and are particularly useful for mobile applications.


Code128 is an important barcode that is used in many areas. Its high encoding density and the widespread availability of barcode scanners make it an ideal choice for applications where a lot of data needs to be encoded in a small space. There are many ways to generate and read Code128 barcodes, and most modern barcode scanners can easily read this barcode.