What is Code 128?
Code 128 is the most widely used barcode outside shop tills. It can hold all 128 ASCII characters (upper and lower case letters, digits and punctuation), it is compact, and every code ends in a check character, so it rarely scans wrong. Warehouses, couriers, hospitals and Amazon FBA labels all use it.
| Characters | All printable ASCII: A–Z, a–z, 0–9, symbols and space |
|---|---|
| Length | Any, but keep it under about 30 characters for easy scanning |
| Check character | Built in (modulo 103), added automatically and not printed |
| Quiet zone | 10 bar widths each side |
| Used for | SKUs, inventory, shipping, FNSKU labels, asset tags, LPNs |
Code 128 A, B and C
Code 128 has three character sets, and a barcode can switch between them partway through:
- Code 128A: capital letters, digits, symbols and control characters.
- Code 128B: capital and lower-case letters, digits and symbols. The usual choice for text.
- Code 128C: digits only, packed two to a symbol, so long numbers come out almost half as wide.
You don't need to pick. This generator chooses the shortest mix automatically: a value like SKU-10442-BLK uses set B, and 12345678 uses set C. Every scanner reads the result the same way, whichever sets are used.
How to make a Code 128 barcode
- Type your SKU, part number or text. Lower-case letters and symbols are fine.
- Set the bar width: 0.25–0.33 mm for small labels read up close, 0.5 mm or more for cartons scanned across a warehouse.
- Optional: type a different line to print under the bars, such as a product name, using Text under the bars.
- Download, or make many at once with the bulk generator.
Code 128 or Code 39?
Code 128 holds more kinds of characters and is roughly a third narrower for the same data. Use Code 39 only if an existing system or customer requires it. See Code 128 vs Code 39.
Code 128 is not GS1-128
GS1-128 is a Code 128 with a special start character and structured data like GTINs, batch numbers and expiry dates. If a retailer asks for a GS1-128 or SSCC label, use the GS1-128 generator.
