Why CODE 128 is the default for numbers, SKUs & logistics
Unlike retail UPC-A or EAN-13 (which require fixed 12- or 13-digit registered product numbers) and older CODE 39 (which only handles uppercase letters and produces very wide bars), CODE 128 accepts full 7-bit ASCII (uppercase, lowercase, numbers, hyphens, slashes) and adds a built-in Modulo-103 checksum to catch misreads.
When your input is purely numeric, Code 128 automatically shifts into Subset C (CODE 128C), packing two digits per symbol character—cutting physical label width roughly in half for serial numbers, order IDs and carton barcodes.
123456789012) packs noticeably narrower in CODE 128C than a 12-character alphanumeric SKU.CODE 128 vs CODE 39 vs EAN-13
| Feature | CODE 128 | CODE 39 | EAN-13 / UPC-A |
|---|---|---|---|
| Supported data | Full ASCII + compressed numeric pairs | Uppercase A–Z, 0–9, - . $ / + % | Fixed 12–13 / 11–12 digits only |
| Physical density | Very compact (best on small bins/tags) | Wide bars (needs room) | Standard retail width |
| Checksum | Mandatory Modulo-103 built in | Optional (usually off) | Mandatory trailing check digit |
| Best used for | Warehouses, serial numbers, cartons, shipping | Older DoD / legacy asset badges | POS retail checkout packaging |
Label & thermal printer tips
- Avoid narrow bar scaling artifacts: on 203 DPI thermal printers (Zebra, Brother, Rollo), keep Bar width at Standard (2) or Wide (3) and download SVG when building templates at exact print dimensions.
- Protect the left & right quiet zones: 1D laser scanners calibrate bar thickness on the empty margin before the start bars and after the stop bars. Never trim PNG margins tight to the ink.
- Keep strings practical: values above 35–40 characters become very long for 2-inch stickers; for dense payloads or smartphone scanning, use a QR code or read our 2D Data Matrix comparison.
Related tools
Bulk barcode generator
Paste up to 100 CODE 128 values or import CSV and export one ZIP.
Batch ZIPAll barcode formats
Switch cleanly between CODE 128, CODE 39, EAN-13 and UPC-A.
StudioGarment label barcodes
Choose between internal CODE 128 SKUs and retail EAN/UPC hangtags.
ApparelFrequently asked questions
What characters can a CODE 128 barcode hold?
All 128 ASCII characters: uppercase and lowercase letters, digits 0–9, spaces and standard punctuation. Even-length numeric strings automatically use compact Code 128C pairing.
Why use CODE 128 instead of CODE 39?
CODE 128 supports lowercase letters, includes an automatic checksum digit, and takes up roughly half as much label width for numbers.
Can I turn plain numbers into a barcode here?
Yes—paste any order ID, invoice number or part code above and download PNG or SVG free.
What width and height settings work best for shipping and warehouse labels?
Use Standard or Wide bars with Standard or Tall height for 203–300 DPI label printers, and keep white quiet zones clear on both ends.
Can I generate hundreds of CODE 128 numbers from a spreadsheet?
Yes. Open the Bulk barcodes tab above (or use the dedicated Bulk Barcode Generator) to batch up to 100 codes per ZIP.