MyUtilityBox
Utilize the global standard for high-density logistics tracking. Master character set shifting and the Modulo-103 checksum for fail-safe data integrity.

What Is Code 128? The Versatile Alphanumeric Standard

The Code 128 barcode is a high-density linear symbology that has become the gold standard for industrial and supply chain applications worldwide. Developed in 1981 by Computer Identics Corporation, its primary innovation was the ability to encode all 128 characters of the standard ASCII set using a compact, variable-length architecture. This versatility, formalized under ISO/IEC 15417, makes it the preferred choice for everything from shipping labels to patient identification wristbands.

Unlike the simpler Code 39, which uses larger gaps and a limited character set, Code 128 uses complex bar-and-space patterns where each character is composed of three bars and three spaces that total 11 modules in width. This design allows it to pack significantly more information into a smaller horizontal footprint, a critical factor in modern logistics where label real estate is increasingly valuable.

Code 128 Subsets: A, B, and C Explained

The secret to Code 128's efficiency is its three distinct "subsets." The symbology can dynamically switch between these sets within a single barcode to optimize data density:

SubsetCharacter SupportPrimary Use Case
Subset AStandard ASCII 00-95 (Uppercase, Numbers, Punctuation, Control Codes)Legacy systems, non-printable control characters.
Subset BStandard ASCII 32-127 (Uppercase, Lowercase, Numbers, Punctuation)General alphanumeric identifiers, names, and mixed-case text.
Subset CNumeric Pairs (00-99 encoded into a single symbol)High-density numeric data like serial numbers or product codes.

How Code 128 Encodes Data: The Five Components

Every Code 128 barcode is built on a specific structural framework that ensures it can be scanned accurately from any direction. The components of a complete symbol include:

  1. 1

    Start Character

    Indicates which subset (A, B, or C) the barcode begins with.

  2. 2

    Data Characters

    The payload characters, including any toggle characters to switch subsets mid-stream.

  3. 3

    Check Character

    A calculated Modulo-103 checksum value used to verify transmission accuracy.

  4. 4

    Stop Character

    A unique 13-module pattern that signals the end of the barcode.

Code 128 vs. Code 39: Key Differences

While both are "alphabetical" 1D barcodes, Code 128 is widely considered the superior successor to Code 39 for most modern applications:

  • 📊
    Data Density: Code 128 can encode the same amount of data in about 30% to 50% less space than Code 39.
  • 🔡
    Full ASCII Support: Code 39 requires "extended mode" to handle lowercase letters, whereas Code 128 handles them natively in Subset B.
  • 🛠️
    Error Detection: Code 128 includes a mandatory Modulo-103 check digit, making it statistically much more reliable.

Industries That Rely on Code 128

Because of its high reliability and compact size, Code 128 has been adopted as the standard (often as GS1-128) across several critical global industries:

Logistics & Shipping

Code 128 is the heart of the Serial Shipping Container Code (SSCC) used by retailers and carriers to track pallets and packages globally.

Healthcare

Hospitals use small-factor Code 128 barcodes on patient wristbands and lab specimens to ensure 100% accurate identification during care.

Manufacturing

Components in the automotive and electronics sectors are etched with Code 128 for lifecycle tracking and quality assurance.

Inventory Control

Warehouses utilize Code 128 for bin locations and high-density product storage identifiers to maximize picking efficiency.

Technical Specifications for Printing

When preparing Code 128 barcodes for professional use, you must adhere to the following metrology guidelines to ensure universal scan reliability:

  • Quiet Zones: A minimum white space of 10 modules (roughly $10 \times$ the narrowest bar width) must exist on both the left and right sides of the symbol.
  • X-Dimension: The width of the narrowest bar or space. For general retail or office scanners, an X-dimension of 10 to 13 mils (0.25 to 0.33mm) is standard.
  • Bar Height: While the symbol can be shortened (truncated), ISO standards recommend a minimum height of 15% of the symbol's length or 0.25 inches (6.35mm), whichever is greater.

Scale Your Logistics Data

Need to generate identifiers for standard-sized retail packaging? Check out our EAN-13 Barcode Generator. For comprehensive industrial documentation, return to our barcode generator hub.

Start Generating
Industrially Verified

Disclaimer: No Warranty

The Code 128 Barcodes generated by this site are provided AS IS without warranty of any kind, not even the warranty that the generated Code 128 Barcodes are actually unique or error-free. You are responsible for using the Code 128 Barcodes and assume any risk inherent to using them. You are not permitted to use the Code 128 Barcodes generated by this site if you do not agree to these terms. Do not use any Code 128 Barcodes found on cached versions of this page.

Related Tools & Shortcuts

Quick access to other Barcode utilities.

View All Barcode Tools

Frequently Asked Questions

What is Code 128?

Code 128 is a high-density linear barcode symbology defined in ISO/IEC 15417:2007. It's used for alphanumeric or numeric-only barcodes and is widely used in shipping and packaging to encode product and logistic information.

How do I create a Code 128 barcode?

Simply enter the data you wish to encode into the input field on this page. Our tool will instantly generate a scannable Code 128 barcode. The data can include numbers, letters, and symbols.

Is there a limit on the number of characters I can use?

Code 128 is highly flexible and can encode a large number of characters. While our tool has no artificial limits, for best scanning performance, it is recommended to keep the data concise.

Can I use this barcode for retail products?

While Code 128 is not typically used for retail point-of-sale in the same way as EAN-13 or UPC, it is a global standard frequently used for internal tracking, inventory management, and supply chain logistics.

How accurate is the generated barcode?

Our generator produces a standard, high-quality Code 128 representation based on the entered data. The final scannability depends on printing quality and the scanner's capabilities.