CodeBox Hub
FREE

Barcode Symbologies: 10 Types Compared and How to Choose

Compare all 10 barcode symbologies — EAN-13, Code 128, UPC-A and more — by character set, length, check digit and industry, and pick the right one fast.

# 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

SymbologyTypeCharacter setLengthBuilt-in checkTypical industry
EAN-131DDigits 0–9Fixed, 13 digitsYes, mod 10Retail POS, GS1 GTIN-13
EAN-81DDigits 0–9Fixed, 8 digitsYes, mod 10Compact retail packaging
UPC-A1DDigits 0–9Fixed, 12 digitsYes, mod 10US/Canada retail, GTIN-12
Code 1281DAll 128 ASCII valuesVariable, up to 48+ charsOptional, mod 103Logistics, warehouse, mail
Code 391DA–Z, 0–9, space, - . $ /VariableOptional, mod 43Automotive, legacy military
Interleaved 2 of 51DDigits, even countVariableOptional, mod 10Cartons, glass industry
ITF-141DDigits 0–9Fixed, 14 digitsYes, mod 10Shipping cartons (GS1)
MSI1DDigits 0–9Variable, usually 4–8Multiple mod 10/2/4Warehouse bins, shelf life
Pharmacode1DDigits (value 3–131070)Variable, 3–7 digitsYes, mod 83Hospital pharmacy, sterile packs
Codabar1D0–9, - $ : / ., start A–FVariableOptional, mod 10Blood 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 scenarioRecommended symbologyWhy
Retail shelf, global marketEAN-13GS1 GTIN-13; works at virtually every POS
Small retail pack (chocolate, gum, cards)EAN-8Fits in under 2 cm of label width
US/Canada retailUPC-ANative US format; equals EAN-13 with a leading 0
Warehouse picking, parcel labelsCode 128All ASCII, variable length, high density
Shipping carton outside the retail unitITF-14GS1 case code (GTIN-14) for logistics
Shelf bin or expiry trackingMSICompact digits plus multiple check digits
Hospital pharmacy, sterile packagingPharmacodeISO/IEC 24782; validated value range 3–131070
Legacy automotive or military stockCode 39Read by very old scanners still in service
Blood bank or airline baggage legacy lineCodabarNCR-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.

FAQ

What is the most common barcode symbology?

EAN-13 is the most widely deployed barcode in the world: nearly every product sold at a checkout counter in Europe, Asia, Australia and Latin America carries a GS1 GTIN-13, and UPC-A covers the same role in the United States and Canada.

What is the difference between EAN-13 and UPC-A?

UPC-A is a 12-digit format used in the US and Canada, while EAN-13 is its 13-digit GS1 global sibling. A UPC-A number read with a leading 0 is a valid EAN-13, which is why many scanners output both.

Which barcode symbology should I use for my own product?

If you sell through retailers, apply for a GS1 company prefix and use EAN-13 (or UPC-A in North America). For internal stock, warehouse or shipping labels, Code 128 is the safest default.

Is Code 128 the same as Code 39?

No. Both are 1D, but Code 128 uses all 128 ASCII values with a denser encoding and an optional mod-103 check digit, while Code 39 is limited to A–Z, 0–9 and a few symbols and is mainly a legacy format.

What is ITF-14 used for?

ITF-14 encodes a 14-digit GS1 case code on outer cartons and transport packaging. It tells logistics systems how many retail units are inside the box without scanning every unit.

Can any scanner read any barcode?

No. A scanner must support the symbology on the label: retail handhelds usually read EAN and UPC, while industrial wands and 2D imagers add Code 128, Code 39, ITF and more. Check your scanner's symbology list before printing.

What is the difference between 1D and 2D barcodes?

1D barcodes store data in one row of bars and hold a few dozen characters at most; 2D barcodes such as QR codes store data in a square matrix and can hold URLs, contact records or several kilobytes in the same space.

Does CodeBox charge for barcode generation?

No. All 10 symbologies in the CodeBox barcode generator are free to use, and exports in PNG, SVG and PDF carry no watermark.

Keep reading

Contact us