ISO/IEC 15417
The Complete Code 128 Barcode Guide
High-density, alphanumeric versatility. Master the world's most popular linear symbology for logistics and industrial inventory.
What is Code 128?
Code 128 is a high-density linear barcode symbology capable of encoding all 128 characters of ASCII. Unlike older formats, it uses variable-width bars and spaces to pack a significant amount of data into a compact horizontal footprint.
Character Sets A, B, and C
Code 128 utilizes three distinct character subsets to optimize data density:
- Subset A: Alphanumeric characters, punctuation, and control codes (like CR/LF).
- Subset B: Standard alphanumeric characters, punctuation, and lowercase letters.
- Subset C: Double-density numeric encoding. It packs two digits into a single symbol, making long numeric strings 50% shorter.
Structural Anatomy
Every Code 128 symbol follows a strict physical structure defined by ISO/IEC 15417:
- Start Character: Identifies which subset (A, B, or C) the barcode begins with.
- Data Characters: The encoded information payload.
- Check Digit: Calculated using the Modulo 103 algorithm. It ensures data integrity but is not part of the human-readable text.
- Stop Character: A unique pattern signaling the end of the data.
- Quiet Zone: A mandatory blank margin (at least 10 times the width of the narrowest bar).
Technical Specs
SymbologyContinuous (1D)
CharactersFull ASCII
ChecksumModulo 103
DensityVery High
Efficiency Tip
Our generator automatically switches to "Subset C" for consecutive digits, ensuring your labels are as compact as possible for narrow packaging.