Code 128 and UPC-A are not competing options. UPC-A is a retail product barcode that carries a 12-digit GTIN and is scanned at checkout. Code 128 is a flexible barcode that carries letters, numbers and symbols, and it is used for internal labels, shipping labels and warehouse tracking. Most brands that sell through retail or marketplaces end up using both, on different labels, for different jobs.
This guide explains what each one encodes, where each is scanned, how UPC-A compares to EAN-13, and how to set up labels so your products move through a warehouse without rework.
TL;DR
- UPC-A identifies a product at retail point of sale. It holds 12 digits only, and those digits are a GTIN-12.
- Code 128 holds variable-length data, including letters. It is used for SKU labels, bin locations, license plates and shipping labels.
- UPC-A vs EAN-13: UPC-A is the 12-digit North American format. EAN-13 has 13 digits and is more common outside North America. A UPC-A can be shown as an EAN-13 with a leading zero.
- For fulfillment: put the UPC on the product, and use Code 128 or GS1-128 on cartons, pallets and internal locations.
Table of Contents
- The short answer: different jobs, different data
- Side-by-side comparison
- What UPC-A encodes
- What Code 128 encodes
- Where each barcode gets scanned
- UPC-A vs EAN-13
- How to choose: a decision guide
- Worked example: a skincare brand adding retail
- What this costs in a fulfillment workflow
- Perspective
- Get your barcodes working in our warehouse
- FAQ
- Sources
The short answer: different jobs, different data
The two barcodes differ in what they are allowed to say.
UPC-A is a fixed format. GS1 US describes UPC-A as a linear barcode encoding 12 digits (a GTIN-12), used mainly for retail point-of-sale products in North America. The last digit is a Mod-10 check digit, and the symbology is defined in ISO/IEC 15420.
Code 128 has no fixed length. Scandit’s symbology documentation lists variable-length data, a numeric mode, two ASCII subsets, mixed modes in one symbol and a mandatory checksum. The standard is ISO/IEC 15417.

In plain terms: UPC-A answers “which product is this?” for a retailer’s system. Code 128 answers whatever question your own system asks, such as “which bin, which lot, which shipment?”
Side-by-side comparison
| UPC-A | Code 128 | |
|---|---|---|
| Data | 12 digits, numbers only | Variable length, letters, numbers and symbols |
| What the data means | A GTIN-12, issued through GS1 | Whatever you or a standard define (SKU, bin, order number, GS1 data) |
| Main use | Retail checkout, North America | Internal inventory, shipping, warehouse and logistics labels |
| Check digit | Mod-10, built into the 12 digits | Mandatory checksum, built into the symbol |
| Standard | ISO/IEC 15420 | ISO/IEC 15417 |
| Who controls the content | GS1 numbering rules | You, unless you use the GS1-128 application layer |
| Typical label | Product package or hang tag | Carton label, bin label, pallet label, FBA or retailer shipping label |
What UPC-A encodes
A UPC-A holds exactly 12 digits. Those digits are a GTIN-12: a company prefix, an item reference and a check digit. Because the number is globally unique, any retailer’s scanner or marketplace catalog can use it to recognize your product.
Three practical points follow from that:
- One UPC per sellable variant. Crateform’s packaging guide notes that each distinct saleable variant, such as a different size, flavor, scent, color or packaging configuration, potentially needs its own GTIN. A 4 oz and an 8 oz bottle need different numbers.
- The number is the identity, not the picture. Two UPC-A symbols with the same 12 digits are the same product. Your warehouse system maps that number to your SKU.
- It carries no lot, expiry or weight. If you need that data on a label, UPC-A cannot hold it.
If you are setting up numbers for the first time, our guide on UPC vs GTIN covers how the terms relate. When you are ready to buy UPC codes, do it before you print packaging, since changing numbers after inventory ships means relabeling.
What Code 128 encodes
Code 128 is a high-density linear symbology. It has three character sets, and the one you use changes what the barcode can say and how wide it prints:
- Set A: uppercase letters, numbers and control characters.
- Set B: upper and lowercase letters, numbers and common printable symbols.
- Set C: pairs of digits packed into one symbol character, which keeps all-numeric data compact. ManageMore’s overview explains the A, B and C ranges.
Good label software switches between sets automatically inside one barcode, so you rarely choose by hand. The practical result is that a Code 128 label can hold a SKU such as TEE-BLK-M, a bin location such as A-04-12, or a long numeric order number, and stay readable.
Code 128 is also the foundation of GS1-128. GS1 US says GS1-128 can hold up to 48 symbol characters and can encode a GTIN or SSCC plus attributes such as best-before date, lot number, quantity and weight. The barcode itself is Code 128. The difference is that GS1-128 follows a rulebook for what each data field means.
Where each barcode gets scanned
Retail checkout and product catalogs: UPC-A
If a cashier, a self-checkout lane or a marketplace listing needs to identify a unit, the barcode is a GTIN-based one. For the North American market that is usually UPC-A. The GS1 barcode chart lists UPC-A as the 12-digit format for retail items crossing the point of sale.
Sellers who list online also meet GTIN requirements on the advertising side. Product feed rules for shopping platforms are changing, and this overview of GTIN requirements for Google Merchant is a useful look at why a real GTIN on every product matters beyond the store shelf.
Internal inventory and bins: Code 128
Inside a warehouse, you do not need a retail number for every scan. You need a label that tells receiving, putaway, picking, packing and cycle counts what they are looking at. Labelmaker’s guide says the first choice is whether the label is for retail checkout, internal inventory and fulfillment, or customer engagement. Internal SKU labels can support receiving, putaway, picking, packing and counts, but may not meet retail point-of-sale requirements.
That is where Code 128 earns its place. Letters and numbers in one symbol mean a bin label, a SKU label and a tote label can all use one scanner and one format. If you are designing locations, see our guide to a bin location system for small and mid-sized brands.

Cartons, pallets and shipments: GS1-128 and Code 128
Once units are packed into cases or onto pallets, the retail UPC stops being the right label. GS1 US explains that ITF-14 is used mainly in distribution and warehouses to identify cases and pallets, and that point-of-sale scanners cannot read it.
For logistics units, GS1-128 is the usual choice. The same GS1 US page says an SSCC is an 18-digit identification key for a logistics unit, encoded in GS1-128. It works like a license plate for a shipment, while a GTIN identifies a trade item. Food Engineering reports that GS1-128 carries more information than a UPC and is used on higher packaging levels for shipping, receiving, warehouse scanning and traceability. Several attributes can be captured in a single scan, which helps receiving and recall readiness.
If a retail customer asks for an SSCC-18 label on your cartons, read our walkthrough on the UCC-128 shipping label before your first PO ships.
UPC-A vs EAN-13
This is the other question readers ask most often. The two are close relatives.
- UPC-A: 12 digits, a GTIN-12, mainly used in North America.
- EAN-13: 13 digits, a GTIN-13, more common outside North America, though it can be used anywhere.
The formats are compatible. ReadBarcode’s guide states that a UPC-A can be written as an EAN-13 by adding a leading zero, and that an EAN-13 starting with zero prints the same bar pattern as the matching UPC-A. GS1 UK describes UPC-A as the U.S. equivalent of EAN-13 and says it can be used in the UK and elsewhere.
What this means for a U.S. brand:
- If you sell in the U.S. and Canada, UPC-A is the standard choice.
- If you plan to sell in Europe or Asia, ask the retailer or distributor whether they want an EAN-13. Many systems store both as the same 14-digit-padded GTIN.
- The two are not interchangeable with Code 128. Neither UPC-A nor EAN-13 can carry letters or lot data.
How to choose: a decision guide
Start with three questions, which match GS1 US’s own guidance on choosing formats: what are you identifying, where will it be scanned, and how much information does it need to carry?
| Situation | Barcode to use |
|---|---|
| Single unit sold at retail or listed on a marketplace | UPC-A (GTIN-12) |
| Same product sold in Europe or Asia | EAN-13 (GTIN-13) |
| Internal SKU or bin label | Code 128 |
| Case or carton going to a distribution center | ITF-14 or GS1-128 |
| Pallet or shipment needing a unique ID | GS1-128 with an SSCC |
| Label that must carry lot, expiry or weight | GS1-128 |
A few rules keep this simple:
- Never use Code 128 as a substitute for a UPC at checkout. A retailer’s system expects a GTIN. An internal code with a custom SKU will not match their catalog.
- Never use a UPC where you need lot tracking. The number is the same for every batch of that product.
- Do not stack labels over each other. A carton with a UPC for the unit inside and an SSCC for the carton can confuse a scanner if both are visible in the same spot. Place the shipping label where the receiving process expects it.
Worked example: a skincare brand adding retail
Imagine a brand with 12 SKUs sold on its own Shopify store. Today every bottle ships with an internal SKU printed as a Code 128 label. Then a retailer wants the line on shelves, and the brand also lists on a marketplace.
- Get UPCs. Each of the 12 SKUs gets a GTIN-12 and a UPC-A printed on the unit packaging. A new size or scent needs its own.
- Keep the internal SKU. The warehouse system maps each UPC to the brand’s SKU, so bins and picks still run on familiar names.
- Label cartons. Cases going to the retailer get a carton label that follows the retailer’s routing guide, commonly GS1-128 with an SSCC.
- Track lots. If batch or expiry matters, those fields sit on a GS1-128 carton label, not on the UPC.
The same product now carries three barcodes, each on a different layer, and none of them is redundant.
What this costs in a fulfillment workflow
Barcode choice shows up in labor. If units arrive without a scannable UPC, or with the wrong one, someone has to label them before they can be stored and picked. At Envio, item labeling is $0.75 per unit. Returns intake, inspection and restock is $1.65 per item. Pallet handling in and out is $20 per pallet. Prices are as published on our services page.
Getting the barcode right at the factory or before inbound is almost always cheaper than relabeling in the warehouse. For a deeper walkthrough of labeling by channel, including FNSKU, read our barcode labeling guide for ecommerce.
Perspective
We see the same mistake from growing brands: one barcode is expected to do every job. A UPC goes on the product, then the same number gets used for bins, cartons and returns. It works at 50 orders a month. It breaks at 5,000.
Our view is simple. Treat the UPC as the product’s public identity and Code 128 as your internal language. Keep both, map them in one inventory system, and never let a retailer’s number rules dictate how you run your own shelves.
This matters for margin as much as for accuracy. When every unit scans cleanly, receiving counts match, picks are right and returns restock to the correct SKU. That is also what makes SKU-level profitability reporting believable. If the data is wrong at the scan, the margin report is wrong too.
We built Envio around live inventory data for small and mid-sized brands, so you can see which SKUs earn their space and which do not. Send us your SKU count and your current label setup, and we will tell you where the barcode work belongs.
Claudio Saenz
Get your barcodes working in our warehouse
Envio is a Houston-based 3PL for small and mid-sized consumer brands. We receive, label, store, pick, pack and ship, with same-day shipping on orders placed by 1PM CST, live inventory access and no long-term contracts.
If you are preparing inventory for Amazon or Walmart, our Amazon and Walmart prep team handles labeling to marketplace specs. For direct-to-consumer orders, pricing starts at $1.65 per order for single units and small parcels. For the full list of storage, prep and handling rates, see our services and pricing, or get a quote based on your SKU count and volume.
FAQ
Can I use Code 128 instead of UPC-A on my products?
Not for retail checkout or catalogs that ask for a GTIN. Those systems expect a GTIN-based barcode such as UPC-A. Code 128 works well for your internal SKU labels, but it will not match a retailer’s product database.
Is UPC-A the same as EAN-13?
They are closely related but not identical. UPC-A has 12 digits and EAN-13 has 13. A UPC-A can be written as an EAN-13 by adding a leading zero, and the bar pattern is the same. Use UPC-A for the U.S. and Canada, and ask your buyer about EAN-13 for other regions.
What is the difference between Code 128 and GS1-128?
GS1-128 uses the Code 128 symbology but adds a standard set of data identifiers. That lets it carry a GTIN or SSCC plus lot, date, quantity or weight in a form every trading partner reads the same way. Plain Code 128 has no such structure, so the meaning is up to you.
Do I need a different UPC for each size or color?
Yes, generally. Each distinct saleable variant potentially needs its own GTIN, whether it differs by size, flavor, scent, color or packaging configuration. A multipack is a different product from the single unit.
Which barcode goes on a shipping carton?
Cartons and pallets normally carry a logistics label, often GS1-128 with an SSCC, or ITF-14 for case-level GTINs. A retail UPC alone is not the right label for a distribution center. Follow the routing guide of the retailer or marketplace receiving the shipment.
Sources
- Types of Barcodes | GS1 US
- Available Barcodes | GS1 US
- GS1 Barcode Chart
- Barcoding: getting it right | GS1 UK
- Barcode Symbologies | Scandit Developer Documentation
- Introduction to Barcode Symbologies | ManageMore
- Track and Trace Gets a Boost from GS1 12 and 128 Barcodes | Food Engineering
- UPC vs EAN: What’s Actually Different? | ReadBarcode
- Barcodes on Packaging: The Complete Guide | Crateform
- GTIN requirements for Google Merchant

0 comments