The main types of barcodes you will meet at a checkout, a loading dock, or a library desk are all linear, and a handful of symbologies — UPC, EAN, Code 39, Code 128, ITF, and Codabar — cover nearly all of them. Each was designed for a specific job, and each is still required in specific places today, which is why the "right" barcode is usually decided for you by the system that has to read it. This page is the catalog: what each type holds, where it is used, and how to choose when you do have a say. For the underlying mechanics — bars, spaces, quiet zones, and how scanners actually read them — start with our what is a barcode guide, then come back here for the per-type detail.
What Makes a Barcode "1D"
A one-dimensional barcode stores data in the relative widths of parallel bars and spaces, read along a single horizontal line. That geometry explains both why 1D codes are everywhere and why they hit a ceiling. They are cheap to print, readable by the simplest hardware, and tolerant of being scanned from any vertical angle — but they hold only a few dozen characters at best, so every symbology below encodes a short, structured identifier rather than a sentence or a URL.
Most 1D symbologies also carry a check digit: one final character computed from the others so that a misread number fails loudly instead of silently mapping to a different product. Code 39 and Codabar are exceptions that are self-checking by construction, and Code 128 offers optional check characters. The check digit is why a scuffed retail code usually refuses to scan rather than beeping for the wrong item — the arithmetic stops it.
Retail Symbologies: UPC and EAN
The two retail families are the ones consumers actually see, and both are administered by GS1, the standards body that licenses the company prefixes inside them. You cannot legitimately invent retail codes; the number is licensed, and the symbol simply prints it.
UPC-A and UPC-E
UPC-A is the 12-digit code on North American retail packages: a number-system digit, a five-digit manufacturer block, a five-digit product block, and a check digit. Its compact sibling UPC-E squeezes the same information into an eight-digit pattern for small packages — cosmetics, gum packs, anything too narrow for the full symbol. North American point-of-sale systems are built around these two, so a product headed for US or Canadian shelves needs one of them regardless of anything trendier on the label.
EAN-13 and EAN-8
EAN-13 is the 13-digit version used at retail everywhere else, and EAN-8 is its short form for tiny packages. The leading digits are GS1 prefixes that identify the numbering organization that issued the code — not, as commonly assumed, a guarantee of where the product was manufactured. A checkout scanner anywhere in the world reads EAN and UPC interchangeably because the POS software speaks the same GS1 grammar, which is exactly why these symbologies remain the retail default decades after introduction.
Logistics Symbologies: Code 39, Code 128, and ITF
Behind the shelf sits a second world of labels that travel with boxes, pallets, and equipment. Three symbologies dominate it, each with a distinct trade-off.
Code 39
Code 39 encodes 43 characters — capital letters, digits, and a set of punctuation symbols — with each character framed by start and stop bars. It is self-checking, with an optional check character for demanding applications, and it has been adopted by manufacturing, asset-management, and several government and industry groups over the decades. Its weakness is bulk: Code 39 is among the least dense symbologies, so a long serial number becomes a very wide strip. That bulk is also its virtue — the fat bars survive printing conditions that would destroy finer codes.
Code 128
Code 128 is the dense workhorse of logistics. It encodes the full ASCII character set, switches internally between character subsets to squeeze the most data into the narrowest strip, and forms the basis of GS1-128 shipping labels, where application identifiers tell the scanner what each number segment means. When a parcel label needs a structured payload — container identifiers, dates, weights — Code 128 is almost always the linear code doing the work. If you control the system on both ends and print quality is decent, it is the default internal choice.
ITF and ITF-14
Interleaved 2 of 5 (ITF) encodes digits in pairs — one digit carried in the bars, the next in the spaces — so it requires an even digit count and nothing but digits. It tolerates rough printing remarkably well, which is why its ITF-14 variant is the shipping-carton standard: fourteen digits, printed large on corrugated cardboard, framed by a bearer bar that spreads printing pressure and protects the symbol's edges from wear. When a box of products arrives at a warehouse, the case-level code on the cardboard is usually ITF-14.
Codabar: The Legacy Specialist
Codabar encodes digits plus a handful of punctuation characters, framed by selectable start and stop letters, and needs no mandatory check digit. It is a legacy symbology that survives in niches rather than winning new ones: library cards, blood-bank labels, and older air-bill and routing systems were built around it and still require it. New designs rarely pick Codabar on merit — but if the system you must integrate with demands it, it works fine, and its self-checking nature keeps it dependable within those fixed workflows.
Choosing the Right Symbology
When a trading partner, retailer, or industry system mandates a code, the decision is made: match it. When you genuinely have a choice, the table below is the short version, and the paragraph under it is the decision rule.
| Symbology | What it holds | Where it is required today |
|---|---|---|
| UPC-A | 12 digits | North American retail point of sale |
| UPC-E | 8 digits (compressed UPC-A) | Small North American retail packages |
| EAN-13 | 13 digits | Retail point of sale worldwide outside North America |
| EAN-8 | 8 digits | Very small retail packages |
| Code 39 | 43 characters: letters, digits, punctuation | Manufacturing, asset labels, government and defense specifications |
| Code 128 | Full ASCII, very dense | Shipping labels and GS1-128 logistics |
| ITF-14 | 14 digits, encoded in pairs | Corrugated shipping cartons |
| Codabar | Digits plus six symbols | Libraries, blood banks, legacy air bills |
The decision rule: retail product means a GS1-licensed UPC or EAN, full stop. Shipping and warehouse labels mean Code 128 for controlled print conditions or ITF-14 for corrugated board. Internal asset tags mean Code 39 where specifications call for it and Code 128 where they do not. And when the payload is a URL, WiFi credential, or contact card, that is not a 1D job at all — the barcode vs QR code comparison walks through where 2D codes take over and why.
Testing Before You Print
Whichever symbology you land on, the print gate is the same. Encode a representative payload — real length, real check digit — and print it at final size on the actual stock. Scan it with at least two readers, including the weakest device in your workflow, at the real working distance. A symbol that reads cleanly on a screen preview can still fail on a laser printer's thin bars or a glossy label's glare, and none of that shows up until you test on the artifact itself.
Keep a set of sample QR codes for testing on hand for the 2D side of a label: if the design pairs a linear code with a QR block, both halves need the same scan gate, and the 2D block adds its own rules — quiet zone, contrast, and the minimum sizes covered in our QR code size requirements guide. A label that passes one code and fails the other ships broken, so gate them together.
Frequently Asked Questions
What's the difference between 1D and 2D barcodes?
A 1D barcode stores a short string of data in the widths of bars and spaces along a single line — usually an identifier that a system looks up in a database. A 2D code such as a QR code stores data in two dimensions and can hold thousands of characters, so the payload itself travels with the symbol. Retail shelf codes are 1D; URLs, WiFi credentials, and contact cards are 2D jobs.
Can I create barcodes for free?
For internal-use symbologies such as Code 39, Code 128, and ITF, yes — free generators and label software produce them, and nothing licenses the data inside. Retail UPC and EAN codes are different: the number itself is licensed from GS1, so the symbol is only as legitimate as the licensed prefix behind it. Whichever route you take, print a test symbol and scan it before committing to a full run.
How small can barcodes be and still scan reliably?
It depends on the symbology, the print method, and the scanner. GS1 publishes minimum module-size rules for the retail symbols, and general practice is to keep bars crisp, high-contrast, and comfortably above the resolution limits of the weakest reader in your workflow. Rather than trusting a rule of thumb, print one test symbol at target size on the real material and scan it with the devices you expect in the field.
Are QR codes replacing traditional barcodes?
Not wholesale. Retail checkouts still run on UPC and EAN, and cartons still ship with ITF-14, because the surrounding systems are built around those symbols and the identifiers they carry. QR codes take over where more data or interactivity is needed — links, contacts, payments — and the two coexist routinely on the same logistics label, a linear code for the lookup number and a 2D block for the rich payload.
What's the most reliable barcode type for harsh environments?
For rough surfaces and poor print conditions, ITF has earned its carton job: thick bars and spaces tolerate ink bleed far better than fine codes, and the ITF-14 bearer bar shields the symbol's edges from scuffs. Code 128 is the denser pick when print quality is controlled. In practice, reliability comes less from the symbology than from contrast, size, and substrate — so test on the actual material before the run.
Wrap-Up
The catalog in one line: retail numbers belong to UPC and EAN, logistics belongs to Code 128 and ITF, legacy niches belong to Codabar, and Code 39 fills internal labels where specifications call for it. Pick by what the receiving system requires first, by density and print conditions second, and by anything else last. Then run the print gate — real stock, real size, two readers — before the press does, and the symbology you chose will be the least of your worries.