What Is Code 128 and When to Use It
Code 128 is one of the most widely used linear barcode formats. Learn its structure, character sets, and best use cases for logistics and retail.
What is Code 128?
Code 128 is a high-density linear barcode that can encode the full ASCII character set. It uses three character sets (A, B, C) to optimize space: Set A has uppercase and control chars, Set B has upper and lowercase, and Set C encodes two digits per symbol for numeric data. That makes Code 128 a strong choice when you need alphanumeric or numeric-only codes in a compact strip.
When to use Code 128
Use Code 128 for shipping labels, warehouse IDs, and internal tracking where you control the format. It is widely supported by scanners and printers. For retail point-of-sale in North America, UPC-A is standard; in Europe, EAN-13 is common. Code 128 fits logistics, healthcare identifiers, and custom asset tags. You can generate Code 128 barcodes via a simple REST API with a single GET request—no SDK required.
Try it: /api/barcode?text=ABC-123&type=code128 returns a PNG image you can embed in labels or invoices.