Blog Guide
Barcode Software Guide: UPC vs EAN vs Code 128
Confused about barcode formats? This barcode software guide explains the difference between UPC, EAN, and Code 128 barcodes clearly.
You’re ready to list a product, print a shipping label, or set up inventory tracking, and suddenly you’re staring at a dropdown menu full of barcode formats you’ve never had to think about before. UPC, EAN, Code 128, each one looks similar at a glance, but picking the wrong one can mean a retailer rejects your product listing or your barcode scanner simply can’t read the code at all.
This guide breaks down exactly what separates these three formats, when each one is actually required, and how barcode software handles the technical details so you don’t have to memorize them yourself. You’ll walk away knowing the real difference between UPC, EAN, and Code 128 barcodes, and which one fits your specific situation, whether that’s retail packaging, international sales, or warehouse logistics.
What Is Barcode Software and Why Format Matters
Barcode software converts a string of numbers of characters into a barcode image which can then be scanned, and formatted according to a standard like UPC, EAN or Code 128. Barcode software is a tool that converts a string of numbers or characters into a scannable barcode image, formatted according to a specific standard, like UPC, EAN, or Code 128. The technical encoding rules are handled by the software automatically, so understanding the structure of bars and spaces is not necessary to produce a scannable code.
Each barcode type has different rules for length, character strength and intended use. A barcode built in the wrong format might look correct visually but fail to scan properly, or worse, get rejected outright by a retailer’s system before your product ever reaches a shelf.
How Barcode Software Generates Different Formats
Good barcode software supports multiple formats within a single tool, letting you choose the correct standard based on what you’re actually trying to accomplish. Enter your product number or reference code, select the format you need, UPC, EAN, Code 128, or another standard entirely, and the software generates a properly structured barcode image, often including the correct check digit calculation automatically, which is a detail that’s easy to get wrong when done manually.
Why Choosing the Right Format Matters for Your Business
Retailers, marketplaces, and logistics providers often require a specific barcode format before they’ll accept a product listing or shipment. Amazon, for example, generally requires UPC or EAN codes for product listings. A shipping carrier tracking a package, on the other hand, is far more likely to use Code 128 because it handles the kind of alphanumeric tracking numbers UPC and EAN simply weren’t built to encode. Picking the wrong format upfront often means redoing labels, resubmitting product listings, or facing delays that a bit of upfront knowledge could have avoided entirely.
What Is a UPC Barcode?
A UPC barcode, short for Universal Product Code, is a 12-digit numeric barcode used primarily for retail products sold in the United States and Canada. It’s the standard barcode you’ll find on the packaging of nearly every product on a typical grocery or retail store shelf in North America.
How a UPC Generator Works
A UPC generator takes an 11-digit product number and calculates a twelfth digit, called a check digit, using a specific mathematical formula based on the other eleven digits. This check digit allows scanners to verify the barcode was read correctly, catching errors that might occur from a damaged or poorly printed label. The software then renders this 12-digit sequence as a UPC-A barcode, the specific format most commonly seen on retail packaging.
Where UPC Codes Are Used
UPC barcodes are the standard for retail products sold in North America, required by most major retailers and marketplaces, including large chains and online platforms like Amazon, for individual product listings. If you’re manufacturing or selling a physical product intended for U.S. or Canadian retail shelves, a UPC is typically the format you’ll need.
What Is an EAN Barcode?
An EAN barcode, short for European Article Number, is a 13-digit numeric barcode used internationally, particularly across Europe, though it’s recognized and scannable in most retail systems worldwide, including in the United States.
How an EAN Code Generator Works
An EAN code generator functions similarly to a UPC generator, calculating a check digit and encoding the full number sequence into a scannable barcode image. The key structural difference is length: EAN-13 uses thirteen digits instead of twelve, with the first few digits typically representing a country or region prefix assigned by the issuing barcode authority. Interestingly, a UPC-A code is technically a subset of EAN-13, since adding a leading zero to a 12-digit UPC produces a valid 13-digit EAN, which is part of why most modern scanners read both formats interchangeably.
Where EAN Codes Are Used
EAN barcodes are the standard across most of Europe, as well as many other international markets outside North America. If you’re selling products in European retail markets, or through marketplaces that serve European customers, an EAN is generally the required or expected format, even if your product also carries a separate UPC for North American sales.
What Is a Code 128 Barcode?
A Code 128 barcode is a high-density format capable of encoding the full ASCII character set, meaning it can represent letters, numbers, and symbols, not just digits. This flexibility sets it apart significantly from both UPC and EAN, which are limited to numeric-only sequences of a fixed length.
How a Code 128 Barcode Generator Works
A Code 128 barcode generator accepts a variable-length string, which can include letters and numbers in any combination, and encodes it into a compact, high-density barcode. Because the format supports variable length and a much broader character set, it’s suited to applications where the encoded data isn’t a simple, fixed-length product number, like a shipment tracking code or a serial number containing both letters and digits.
Where Code 128 Is Used
Code 128 is common in shipping and logistics, where tracking numbers often combine letters and numbers in longer strings than UPC or EAN could accommodate. It also shows up frequently in inventory management systems, healthcare settings for tracking supplies or records, and any application where the data being encoded doesn’t fit neatly into a numeric-only, fixed-length format.
The Difference Between UPC, EAN, and Code 128 Barcodes
Here’s a direct comparison of how these three formats differ across the factors that actually matter when choosing between them.
The core distinction comes down to this: UPC and EAN are both built specifically for retail product identification, with UPC serving North America and EAN serving international markets, while Code 128 exists for a broader range of applications where flexible, alphanumeric data needs to be encoded efficiently, well beyond simple product identification.
| Factor | UPC | EAN | Code 128 |
|---|---|---|---|
| Digit/character length | 12 digits, fixed | 13 digits, fixed | Variable length |
| Character type | Numbers only | Numbers only | Letters, numbers, symbols |
| Primary region | United States, Canada | Europe, international | Global, industry-specific |
| Common use case | Retail products | Retail products (international) | Shipping, logistics, inventory |
| Check digit | Yes, calculated automatically | Yes, calculated automatically | Optional, depends on application |
| Retailer requirement | Common for North American retail | Common for European/international retail | Rarely required for retail shelf products |
Real-World Examples: Barcode Formats in Action
Seeing how these formats show up in actual business situations makes the differences easier to apply to your own products or operations.
A Small Business Selling on Amazon
A small business manufacturing a new skincare product for sale on Amazon typically needs a UPC barcode for each individual product variant. Amazon’s system checks the UPC against its catalog to confirm the product listing, and using a randomly generated or duplicate number can flag the listing for review or rejection. In this case, the business needs a properly registered UPC, generated correctly through barcode software, before the listing can go live.
A European Retailer Stocking International Products
A retailer based in Germany stocking products from both European and American suppliers will typically see a mix of EAN and UPC barcodes across their inventory. Since UPC-A codes function as a valid subset of EAN-13, most point-of-sale systems in Europe can scan both formats without issue, but the retailer’s own private-label products would generally be issued as EAN codes to match regional numbering conventions and supplier expectations.
A Logistics Company Tracking Shipments
A shipping and logistics company handling thousands of packages daily relies on Code 128 rather than UPC or EAN, since tracking numbers often combine letters and numbers in a format that exceeds what a numeric-only barcode could encode. A single Code 128 barcode might represent a tracking number, a warehouse location code, or an internal reference number, none of which would fit within the fixed twelve or thirteen-digit numeric structure that UPC and EAN require.
Across all three examples, the underlying logic stays consistent: the right barcode format depends entirely on what’s being identified and where that identification needs to function, not on personal preference or which format happens to be most familiar.
How to Choose the Right Barcode Format
Follow this process to determine which barcode format actually fits your specific need.
- 1
Identify what you’re encoding
If it’s a fixed-length numeric product code, UPC or EAN likely fits. If it includes letters or varies in length, Code 128 is the more appropriate choice.
- 2
Determine your primary market
Selling mainly in the U.S. or Canada points toward UPC. Selling internationally, especially in Europe, points toward EAN.
- 3
Check retailer or marketplace requirements
Many platforms specify exactly which barcode format they require for product listings, so confirm this before generating anything.
- 4
Consider whether you’re labeling a product or a process
Retail products typically need UPC or EAN. Shipping labels, internal inventory tracking, or logistics documentation often call for Code 128 instead.
- 5
Use barcode software that supports multiple formats
This lets you generate the correct type for each specific use case without needing separate tools.
- 6
Verify the check digit calculates correctly
Reputable barcode software handles this automatically, but it’s worth confirming the generated code scans correctly before finalizing any packaging or labels.
- 7
Test the barcode with an actual scanner before mass production
A barcode that looks correct visually can still fail to scan if there’s an encoding issue, so testing early avoids costly reprinting later.
Best Practices for Using Barcode Software
A few consistent habits help you avoid costly mistakes when generating and using barcodes for your business.
Confirm the required format before generating anything. Checking retailer or platform requirements upfront saves significant rework compared to discovering the wrong format was used after printing.
Keep a record of assigned barcode numbers. Whether you’re using UPC, EAN, or Code 128, tracking which numbers are assigned to which products prevents accidental duplication down the line.
Test barcodes on the actual materials they’ll be printed on. A barcode that scans fine on paper might behave differently once printed on curved packaging, glossy labels, or smaller surfaces.
Use official or purchased barcode numbers for retail products. UPC and EAN codes intended for retail sale typically need to be properly registered or purchased through an authorized barcode provider, rather than randomly generated, to avoid conflicts with other products.
Choose barcode software that supports the specific formats you need. Not every tool generates every barcode type, so confirm your software covers UPC, EAN, and Code 128 if your business needs flexibility across all three.
Common Mistakes When Choosing a Barcode Format
These mistakes come up frequently, even among businesses that have been generating barcodes for a while.
- -Using a UPC when an EAN was required. This is especially common for businesses expanding into European markets without realizing the barcode requirement changes along with it.
- -Assuming Code 128 works for retail product listings. Most retail shelf products specifically require UPC or EAN, and a Code 128 barcode won’t be accepted in most standard point-of-sale systems.
- -Randomly generating retail barcode numbers instead of using registered ones. This risks duplicating another company’s product code, which can cause serious inventory and listing conflicts.
- -Not testing the barcode before a full print run. A barcode that fails to scan is a costly discovery to make after thousands of labels or packages are already printed.
- -Ignoring check digit accuracy. An incorrectly calculated check digit can cause a barcode to fail scanning entirely, even if the rest of the code appears visually correct.
- -Using the same barcode format across every use case out of habit. Defaulting to one familiar format, rather than matching the format to the specific application, often leads to compatibility issues down the line.
FAQs
What is the difference between UPC, EAN, and Code 128 barcodes?
UPC is a 12-digit numeric barcode used mainly in North American retail. EAN is a 13-digit numeric barcode used internationally, especially in Europe. Code 128 is a variable-length format that supports letters, numbers, and symbols, commonly used for shipping and logistics rather than retail products.
Can a UPC barcode be scanned as an EAN barcode?
Yes. Since UPC-A is technically a subset of EAN-13, most modern barcode scanners can read a UPC code as if it were an EAN code by treating it as having a leading zero, making the two formats largely interchangeable at the scanning level.
Do I need a UPC or EAN for my product?
It depends on where you’re selling. Products sold primarily in the United States or Canada typically use UPC, while products sold in Europe or other international markets typically require EAN. Many businesses use both if they sell across multiple regions.
When should I use Code 128 instead of UPC or EAN?
Use Code 128 when you need to encode data that includes letters, symbols, or a variable length, such as shipment tracking numbers or internal inventory codes, since UPC and EAN are limited to fixed-length numeric sequences.
Is barcode software able to generate all three formats?
Many barcode software tools support UPC, EAN, and Code 128 within the same platform, letting you choose the correct format based on your specific use case without needing separate tools for each type.
Do retailers require a specific barcode format?
Yes, most retailers and online marketplaces specify which barcode format they accept, commonly UPC for North American retail and EAN for international markets. It’s important to confirm these requirements before generating and printing barcodes for retail products.
What happens if I use the wrong barcode format for a retail product?
The product listing may be rejected by the retailer or marketplace, or the barcode may fail to scan properly at checkout, leading to delays and the need to reprint packaging with the correct format.
How is a check digit calculated in a UPC or EAN barcode?
The check digit is calculated using a specific mathematical formula based on the other digits in the barcode. Barcode software calculates this automatically, reducing the risk of errors that could occur from manual calculation.
Can I create my own UPC or EAN barcode numbers for free?
While barcode software can technically generate any valid-format number, using randomly generated numbers for retail products risks duplicating another company’s registered barcode. Retail barcodes are generally meant to be purchased or registered through an authorized provider.
Is Code 128 more efficient than UPC or EAN for encoding data?
For non-retail applications involving letters, symbols, or longer strings, yes, Code 128 is significantly more flexible and space-efficient. For simple, fixed-length retail product identification, UPC and EAN remain the standard and expected choice.
Conclusion
Choosing between UPC, EAN, and Code 128 comes down to understanding what you’re actually encoding and where that barcode needs to work. UPC and EAN both handle retail product identification, split largely by region, North America versus international markets, while Code 128 exists for the more flexible, alphanumeric needs of shipping, logistics, and inventory tracking. Picking the right format from the start saves you from rejected listings, failed scans, and costly reprints down the line.
Reliable barcode software takes the guesswork out of the technical details, calculating check digits correctly and formatting each barcode type the way scanners and retailers actually expect.
Ready to create yours? Try our free barcode generator and generate a properly formatted UPC, EAN, or Code 128 barcode in just a few minutes.
Continue Reading
Explore more guides on QR codes and barcodes
Barcode Generator for Excel: Adding Barcodes to Spreadsheets
Learn how to add a barcode in Excel using fonts or an online barcode generator. Step-by-step guide, comparison table, and common mistakes.
Why Your Barcode Won't Scan: A Technical Breakdown of Common Errors
Getting a barcode error? Learn the real causes, from print quality to software issues, and how to fix a barcode that won't scan.
Online QR Barcode Generator vs QR Code Monkey: Which Free Tool Actually Fits Your Needs?
Comparing QR Code Monkey to a free QR and barcode generator? See real feature differences in design, privacy, and pricing before you choose.
What Is a QR Code? Complete Guide
Understand what QR codes are, how they work, their history, different types, and practical applications in everyday life and business.
QR Codes on Business Cards: Do They Actually Get Scanned?
Thinking about a QR code business card? See real data on scan behavior, design tips, and how to create one that people actually use.
QR Code Security: Can a QR Code Be Dangerous?
Can a QR code hack your phone? Learn how quishing scams work, how to scan QR codes safely, and how to spot a malicious QR code generator.