Code 128 Barcode Generator
Code 128 is the workhorse of warehouses, shipping and inventory: compact, high-density, and able to encode any printable ASCII text. Generate one below.
Enter a value to see the barcode.
What Code 128 is good for
Code 128 encodes the full printable ASCII set — upper and lower case letters, digits and punctuation — so it can carry SKUs, order numbers, serial numbers and internal part codes that EAN and UPC cannot. It is the symbology behind most shipping labels, warehouse bin labels, asset tags and Amazon FNSKU labels, and it is the base of GS1-128 (see below). Because it packs more data per millimetre than Code 39, it is the default choice for any new internal barcode.
Code 128 vs GS1-128
Plain Code 128 and GS1-128 look similar but are not the same thing. GS1-128 is Code 128 with a special
FNC1 character after the start code and data structured as Application Identifiers — for example
(01) for the GTIN and (17) for the expiry date — so supply-chain systems can read
batch, date and quantity from one label. This generator draws plain Code 128. If a customer or retailer
asks for GS1-128, the label content (which Application Identifiers, in which order) is a specification
question for them, not something a plain generator can guess.
Length and printing
Code 128 has no fixed length, but longer values make wider barcodes: a 20-character SKU at a 0.33 mm narrow bar is roughly 90 mm wide (about 275 modules including start, check, stop and quiet zones), and doubling the data roughly doubles the width. Keep internal codes short, keep the narrow bar at 0.33 mm or wider for handheld scanners, and keep the quiet zone (10 modules each side) clear. For carton-level shipping codes, see ITF-14; for retail products, you need EAN-13 or UPC-A instead.
Related
Frequently asked questions
What characters can Code 128 encode?
All printable ASCII: letters A–Z and a–z, digits 0–9, spaces and punctuation. That is why it is used for SKUs and order numbers.
Can I use Code 128 on a retail product?
Not as the product barcode. Retailers expect EAN-13 or UPC-A, whose numbers come from GS1. Code 128 is for internal, warehouse and shipping use — and for Amazon FNSKU labels, which identify your stock inside Amazon, not the product at a till.
What is the difference between Code 128 and Code 39?
Code 128 is denser and encodes lower-case letters and punctuation; Code 39 is older, wider, and limited to capitals, digits and a few symbols. For new labels, Code 128 is almost always the better choice — Code 39 survives where old scanners or customer specifications demand it.
How long can a Code 128 value be?
There is no fixed limit, but the barcode gets wider with every character. This tool accepts up to 80 characters; in practice, keep warehouse codes under about 20 characters so they fit on a label and scan reliably.