Code 128 Introduction
This page mainly offers some basic information on Code 128 along with its generating and printing components.
Code 128 Overview
is a high-density, bidirectionally-decodable, self-checking linear barcode symbology
with variable length to encode all 128 characters of ASCII, and the Latin-1 character defined in ISO 8859-1.
Effective and space-saving, Code 128 is widely used in various industries, referred to as GS1-128, UCC-128, EAN-128, ISBT-128 and USS Code 128.
Generating and Printing Code 128 Barcodes
OnBarcode provides comprehensive Code 128 generators and scanner components for Java, .NET, Android, iOS developments and several reporting applications.
Code 128 Structure
The structure of Code 128 is as below:
Stop Character: 1100011101011 (1 stands for a module bar, o for module space)
Code 128 Barcode Size Setting
Code 128 Data Encoding
Code 128 encodes all 128 characters of ASCII, and the Latin-1 character defined in ISO 8859-1. As to the three subsets:
- Code 128 A: ASCII characters 00-95, i.e. A-Z, 0-9, punctuation characters, symbology elements, and 7 special characters
- Code 128 B: ASCII characters 32-127, i.e. A-Z, a-z, 0-9, punctuation characters, and 7 special characters)
- Code 128 C: numeric digit pairs from 00-99 (encode two data digits per symbol character), and 3 special characters
Code 128 Module 103 Checksum Digit
To enhance data security, a mandatory Module 103 checksum digit is required for Code 128 symbology, which is automatically calculated by OnBarcode Code 128 Generator
In the Code 128 symbology, the checksum digit is placed between the data characters and stop character.