How to make a Code 128 barcode
- 1
Type your text
A SKU, serial number, tracking number or Amazon FNSKU. Letters, digits and symbols all work.
- 2
Keep it short
Every character adds width. Under 20 characters fits comfortably on a standard label.
- 3
Set the height
Taller bars are easier to hit with a handheld scanner. Standard works for most labels.
- 4
Download
PNG for label printers, PDF or EPS for print shops. Print PNGs at 100%.
What Code 128 is good for
Code 128 holds every standard keyboard character (letters, digits and punctuation) and packs numbers tightly. That’s why it’s the default barcode in logistics:
- Shipping and tracking labels
- Warehouse bins, shelves and pallets
- Inventory and asset tags
- Amazon FNSKU labels (the codes that start with X00)
- Tickets, membership cards and ID badges
GS1-128, used on shipping labels for pallet codes, batch numbers and best-before dates, is Code 128 with special GS1 formatting. A GS1-128 generator is coming.
Code sets A, B and C (handled for you)
Code 128 has three character sets. Set A has capitals and control characters, set B has capitals and lowercase, and set C stores two digits per character, so numbers take half the space.
Many generators make you choose. We switch between sets inside the barcode automatically to get the shortest result. A 12-digit number comes out about 40% narrower than it would in set B alone, which means bigger, easier-to-scan bars on the same label.
Sizing and printing tips
- Keep the quiet zone. Leave at least 10 bar-widths of blank space on each side. The download already includes it.
- Bars at least 6 mm (¼ inch) tall for handheld scanners. Use the height slider if your label has room.
- Thermal label printers (Zebra, Rollo, DYMO) print at 203 or 300 dpi. Print the PNG at 100% with “fit to page” off, so every bar lands on whole printer dots. Our PNGs are built with whole pixels per bar for exactly this reason.
- Test it with the scanner you’ll actually use, or upload a photo to our online scanner.
Code 128 vs Code 39
| Code 128 | Code 39 | |
|---|---|---|
| Characters | All 128 standard ASCII characters | 43: A-Z, 0-9, space, - . $ / + % |
| Width | About 30% narrower for text, much narrower for numbers | Wider |
| Check character | Built in, always | Optional |
| Use it when | You get to choose | A system or spec requires it |