How to make a Code 128 barcode
- Type your SKU, serial number, order number or any text. Letters, numbers, spaces and punctuation all work.
- Keep it short so the barcode stays narrow enough for your label.
- Download PNG or SVG, or use the bulk generator to make a whole sheet of labels at once.
When to use Code 128
- Inventory and SKU labels. Encode your own product codes, like
TSHIRT-BLK-M. - Asset tags. Laptops, tools and equipment, with an ID like
IT-00412. - Warehouse bins and shelves. Location codes like
A-03-2. - Order and shipping references. Packing slips, return labels and tickets.
- Library, event and membership cards where the system accepts Code 128.
Code 128 isn't a retail product code. Shop checkouts expect a UPC or EAN. Use Code 128 for your own internal systems.
How Code 128 stays compact
Code 128 has three character sets. Set A covers capitals and control characters, Set B covers capitals and lower case, and Set C packs two digits into one symbol. The generator switches between them automatically to keep the barcode as short as possible, so long numbers come out much narrower than the same length of text.
Frequently asked questions
What can Code 128 encode?
All 128 standard ASCII characters: upper- and lower-case letters, numbers, punctuation and spaces. That makes it the most flexible linear barcode for SKUs, serial numbers and order IDs.
Is Code 128 good for inventory labels?
Yes. It's compact, very reliable and read by almost every scanner, so it's the usual choice for stock labels, bin locations, asset tags and shipping.
How long can a Code 128 barcode be?
There's no fixed limit, but every extra character makes the barcode wider. For labels, aim for about 20 characters or fewer. Long runs of digits are encoded more compactly than letters.
What is GS1-128?
GS1-128 is a version of Code 128 with a special start character and standard data fields (like batch number or best-before date) used on supply-chain shipping labels. Plain Code 128, as made here, suits internal use.
Code 128 or Code 39?
Code 128 is more compact and supports lower-case letters and more symbols. Choose Code 39 only if an existing system or customer requires it.