Barcode Types Guide

A quick comparison of the common 1-D barcode formats and where each one fits.

Retail product codes

UPC-A (12 digits) is the North American retail standard; EAN-13 (13 digits) is its global counterpart; EAN-8 (8 digits) is the compact version for small packages. All three carry a check digit and require an official GS1 number for real retail use — generating an image doesn't register a product.

General-purpose codes

Code 128 is dense and flexible, encoding digits, letters and ASCII symbols — the workhorse of shipping and logistics. Code 39 is older and lower-density but very widely supported, popular for IDs, badges and industrial labels.

Shipping and specialty codes

ITF-14 encodes a 14-digit GTIN on shipping cartons, often with heavy bearer bars. Codabar is a self-checking code still used by libraries, blood banks and labs.

Comparison at a glance

FormatDataTypical use
UPC-A12 digitsUS/Canada retail
EAN-1313 digitsGlobal retail
EAN-88 digitsSmall retail packs
Code 128ASCII textShipping, logistics
Code 39A–Z, 0–9, few symbolsIDs, badges, industry
ITF-1414 digitsShipping cartons
CodabarDigits + few symbolsLibraries, labs

Which should you choose?

For retail, use the code your market expects (UPC or EAN) with a registered GS1 number. For internal tracking, Code 128 offers the best density; choose Code 39 or Codabar when legacy compatibility matters.

Advertisement

More guides