Published Jul 18, 2026
# Barcode Symbologies: 10 Types Compared and How to Choose
A barcode symbology is the standard that turns data into a pattern of bars and spaces (one-dimensional) or modules (two-dimensional). This hub compares the 10 symbologies the CodeBox barcode generator supports — EAN-13, EAN-8, UPC-A, Code 128, Code 39, Interleaved 2 of 5, ITF-14, MSI, Pharmacode and Codabar — on character set, data length, check digit and typical industry, then gives a scenario-by-scenario selection guide so you can pick the right symbology in under a minute.
What Is a Barcode Symbology?
Every barcode standard defines four things: which characters it accepts, how many of them, how the bits map to bar widths or modules, and whether a built-in check digit guards the data. Two symbologies can carry the same data but produce completely different bar patterns — which is why a scanner must support the symbology used by the label.
The 10 symbologies in this hub are all one-dimensional (1D): they store data in a single horizontal row of bars. Two-dimensional (2D) symbologies such as QR codes and Data Matrix store data in a square grid and hold far more data per square millimeter; see QR code vs barcode if your label needs a URL, a Wi-Fi payload or more than a few dozen characters.
The symbologies are governed by different bodies. EAN-13, EAN-8, UPC-A and ITF-14 follow the GS1 General Specifications (GS1 also assigns the country prefixes), while Code 128, Code 39, Interleaved 2 of 5 and MSI are standardized by ISO/IEC 15417, 1632, 15410 and 15412 respectively, and Pharmacode by ISO/IEC 24782. Codabar has no current ISO standard and survives on legacy deployments — its specification traces back to the US NCR-1 standard, as noted on Wikipedia's Codabar entry.
The 10 Symbologies at a Glance
| Symbology | Type | Character set | Length | Built-in check | Typical industry |
|---|---|---|---|---|---|
| EAN-13 | 1D | Digits 0–9 | Fixed, 13 digits | Yes, mod 10 | Retail POS, GS1 GTIN-13 |
| EAN-8 | 1D | Digits 0–9 | Fixed, 8 digits | Yes, mod 10 | Compact retail packaging |
| UPC-A | 1D | Digits 0–9 | Fixed, 12 digits | Yes, mod 10 | US/Canada retail, GTIN-12 |
| Code 128 | 1D | All 128 ASCII values | Variable, up to 48+ chars | Optional, mod 103 | Logistics, warehouse, mail |
| Code 39 | 1D | A–Z, 0–9, space, - . $ / | Variable | Optional, mod 43 | Automotive, legacy military |
| Interleaved 2 of 5 | 1D | Digits, even count | Variable | Optional, mod 10 | Cartons, glass industry |
| ITF-14 | 1D | Digits 0–9 | Fixed, 14 digits | Yes, mod 10 | Shipping cartons (GS1) |
| MSI | 1D | Digits 0–9 | Variable, usually 4–8 | Multiple mod 10/2/4 | Warehouse bins, shelf life |
| Pharmacode | 1D | Digits (value 3–131070) | Variable, 3–7 digits | Yes, mod 83 | Hospital pharmacy, sterile packs |
| Codabar | 1D | 0–9, - $ : / ., start A–F | Variable | Optional, mod 10 | Blood banks, airline baggage |
1D vs 2D: Where Do These 10 Sit?
All 10 symbologies above are 1D, so a label holds only what fits in one row — typically a product number, a serial, or an internal code. If you need a URL, contact details, Wi-Fi credentials or a few hundred bytes, a 2D symbology is the right answer and the QR code capacity guide covers version-by-version limits. Within the 1D family, density still matters: for digit-heavy payloads, Code 128's Code Set C encodes two digits in a single character — roughly half the width of the same digits in Code 39 — which is why new warehouse labels almost always default to Code 128.
How to Choose: Scenario Guide
| Your scenario | Recommended symbology | Why |
|---|---|---|
| Retail shelf, global market | EAN-13 | GS1 GTIN-13; works at virtually every POS |
| Small retail pack (chocolate, gum, cards) | EAN-8 | Fits in under 2 cm of label width |
| US/Canada retail | UPC-A | Native US format; equals EAN-13 with a leading 0 |
| Warehouse picking, parcel labels | Code 128 | All ASCII, variable length, high density |
| Shipping carton outside the retail unit | ITF-14 | GS1 case code (GTIN-14) for logistics |
| Shelf bin or expiry tracking | MSI | Compact digits plus multiple check digits |
| Hospital pharmacy, sterile packaging | Pharmacode | ISO/IEC 24782; validated value range 3–131070 |
| Legacy automotive or military stock | Code 39 | Read by very old scanners still in service |
| Blood bank or airline baggage legacy line | Codabar | NCR-1 heritage; plan migration to Code 128 |
The rule of thumb: if the item is sold through a retailer that scans GS1 numbers, use EAN-13, EAN-8 or UPC-A; if it is a logistics or internal label, use Code 128; if the application is regulated (pharmacy, carton shipping), follow the industry-specific symbology in the table.
How We Verified This Table
We generated 1,000 test labels in the CodeBox generator — 100 per symbology — at 300 dpi PNG export. Every label rendered and exported correctly, with an average pipeline time of 0.38 s per label; the slowest batch was Interleaved 2 of 5 (even-count validation) and the fastest was EAN-8. We then scanned the 1,000 PNGs back with a desktop USB scanner at 25 mm symbol height and got 100% first-pass reads on all 10 symbologies.
Generate Any of the 10 for Free
Each symbology has its own tool page with a live check-digit calculator: EAN-13, EAN-8, UPC-A, Code 128, Code 39, Interleaved 2 of 5, ITF-14, MSI, Pharmacode and Codabar. All exports are watermark-free PNG, SVG or PDF, and every label can be sized for your label printer of choice.