EMZETT.
Login

Barcode types at a glance

In short: A barcode encodes data as a pattern of bars (1D) or areas (2D). There are many types: EAN-13 in retail, Code 128 in logistics, QR code and Data Matrix as 2D codes.

In more detail: 1D codes are read by scanners with a single line and store little (usually a number). 2D codes are read as an image and hold much more, with error correction.

In detail

TypeKindContentTypical use
EAN-13 / EAN-81D13 or 8 digitsretail products (Europe)
UPC-A1D12 digitsretail in USA/Canada
Code 1281Dall ASCII characterslogistics, shipping labels, inventory
Code 391Ddigits, capital letters, few charactersindustry, ID cards
ITF-14 / Interleaved 2 of 51Ddigitsouter cartons, pallets
Codabar1Ddigits, few characterslibraries, blood banks
QR code2Dup to about 4,000 characterslinks, tickets, payments
Data Matrix2Dcompact, up to about 2,300 charactersmedicines, electronics, small parts
PDF4172D (stacked)much textboarding passes, ID documents
Aztec2Dlike QR, no quiet zonetrain tickets
  • Check digit: many codes have a control digit, see EAN-13 and the check digit.
  • Quiet zone: an empty margin around the code must stay free, otherwise the scanner will not read.
  • Choice: for short numbers in retail EAN, for own inventory Code 128, for links and lots of content QR.
  • Creating: example Code 128 in this site’s inventory tool, see Code 128 in detail.

See also: Barcode scanners: technology and types, Barcode scanner