Barcode Guide

Every barcode, decoded

What each symbol encodes, how it is structured, where it is used, and the mistakes that cost money. From the UPC on the pack to the QR code on the shelf, with the GS1 specification beside each one and a generator to make your own.

Barcode symbology guide

Why there are so many barcodes

A symbology is the rulebook a barcode follows: how its bars, spaces, or modules encode data, how much data fits, and what a scanner expects to see at each end. A UPC carries a product number and nothing else. A GS1-128 carries a lot and an expiry date as well. A QR code carries a web address. Each one exists because a different scanner, in a different place, needed to read a different thing. This guide covers the ones you will meet on a retail shipment, in a warehouse, on a bookshelf, or on a coupon, with the GS1 specification, who produces each, and where it goes wrong.

Retail point of sale

What the register reads.

The symbols a shopper’s item carries through checkout and onto a marketplace listing.

01 / 04

UPC-A

UPC · GTIN-12 · Universal Product Code

The 12-digit retail barcode scanned at point of sale across North America.

Used for

  • Consumer units sold at retail point of sale in the United States and Canada
  • The GTIN field on Amazon, Walmart Marketplace, and Google Shopping listings
  • The barcode field on a Shopify or Shopify POS variant
02 / 04

EAN-13

EAN · GTIN-13 · European Article Number

The 13-digit retail barcode scanned at point of sale everywhere outside North America, and accepted inside it.

Used for

  • Consumer units at retail point of sale worldwide
  • The product GTIN on Amazon, eBay, and Google Shopping listings in every region
  • The barcode field on Shopify and other storefront variants
03 / 04

EAN-8

GTIN-8 · short EAN

The eight-digit retail barcode GS1 issues for packages too small to carry an EAN-13.

Used for

  • Very small consumer units: cosmetics, confectionery, small hardware, single-serve items
  • Point of sale anywhere an EAN-13 is scanned
  • Item setup with retailers, stored as a GTIN-8 or zero-padded to 14 digits
04 / 04

UPC-E

zero-suppressed UPC · UPC-A compressed · GTIN-12 (compressed)

The zero-suppressed form of a UPC-A, six data digits wide, for packs too small for the full symbol.

Used for

  • Small consumer units in North America: gum, cosmetics, small hardware, single-serve packs
  • Any register that scans UPC-A, which expands UPC-E automatically
  • Retailer item files, which store the expanded GTIN-12
Cases & pallets

What the receiving dock scans.

What the distribution center scans on the case, the carton, and the pallet, and reconciles against the ASN.

01 / 03

ITF-14

GTIN-14 barcode · SCC-14 · Shipping Container Code

The 14-digit case barcode printed on shipping cartons, built to survive corrugated board.

Used for

  • Standard trade cases that a retailer orders and receives as a unit
  • Inner packs and multi-packs that are ordered but not sold at POS
  • Case-level identification in retailer item setup and the 856 ASN item detail
02 / 03

GS1-128

UCC-128 · EAN-128 · UCC/EAN-128

The Code 128 subset that carries GS1 Application Identifiers, the barcode on every carton and pallet shipping label.

Used for

  • The GS1 logistics label on every carton and pallet, carrying the SSCC in (00)
  • Case marking with GTIN, lot, and expiry for grocery, pharma, and perishables
  • FSMA 204 traceability lot codes on food cases
03 / 03

SSCC-18

SSCC · Serial Shipping Container Code · (00) barcode

The 18-digit serial number that identifies one specific carton or pallet and ties it to the ASN.

Used for

  • The carton and pallet shipping label every EDI retailer requires
  • The MAN segment of the 856 ASN, linking each physical unit to its contents
  • Scan-based receiving at the DC: one scan resolves the carton to its ASN line items
Inventory & assets

What your own scanners read.

Internal labels for bins, totes, and assets. No GS1 license required, so the format is yours to choose.

01 / 05

Code 128

Code 128 A/B/C · USS Code 128 · ISO/IEC 15417

The dense, full-ASCII linear barcode behind most warehouse, tote, and carrier labels.

Used for

  • License plate numbers (LPNs) on pallets, totes, and cartons inside the warehouse
  • Bin, slot, and location labels for directed put-away and picking
  • Carrier tracking numbers on parcel labels
02 / 05

Code 39

Code 3 of 9 · USS Code 39 · LOGMARS

The oldest alphanumeric barcode still in daily use, self-checking and printable from any font.

Used for

  • Asset tags and equipment labels
  • US Department of Defense shipping and item labels (LOGMARS)
  • Healthcare labeling under the HIBC standard
03 / 05

Code 93

USS-93

A compact successor to Code 39 with two mandatory check characters.

Used for

  • Canada Post mail and parcel processing
  • Asset and inventory systems that outgrew Code 39 but predate Code 128
  • Some electronics and component labeling
04 / 05

Codabar

NW-7 · Code 2 of 7 · USD-4

A legacy numeric barcode still standard in blood banks, libraries, and older logistics systems.

Used for

  • Blood bag and blood product labeling (ABC Codabar)
  • Library book and patron cards
  • Photo lab and film processing envelopes
Books & media

What the bookstore and the library scan.

Publishing identifiers carried in an EAN-13 so bookstores and libraries can scan them like any other product.

01 / 03

ISBN

Bookland EAN · ISBN-13 · EAN-13 with 978 or 979 prefix

The book identifier, carried in an EAN-13 with a 978 or 979 prefix and an optional five-digit price add-on.

Used for

  • Print books, ebooks, and audiobooks, one ISBN per edition and format
  • Retail point of sale for books at any store with a register
  • Amazon, Ingram, and distributor catalogs, where the ISBN is the primary key
02 / 03

ISSN

EAN-13 with 977 prefix · serial barcode · BIPAD

The magazine and journal identifier, carried in an EAN-13 with a 977 prefix and a two-digit issue add-on.

Used for

  • Magazines, journals, and newspapers at retail and newsstand
  • Wholesaler and distributor tracking of sales and returns per issue
  • Library and subscription systems, where the ISSN itself is the key
03 / 03

ISMN

International Standard Music Number · EAN-13 with 979-0 prefix

The identifier for printed sheet music, carried in an EAN-13 beginning 979-0.

Used for

  • Sheet music, scores, parts, and method books at retail
  • Music publisher and distributor catalogs
  • Library cataloging of notated music
2D codes

More than a number in the symbol.

Matrix and stacked symbols that hold far more than a number: URLs, lots, expiry dates, serials.

01 / 03

QR Code

Quick Response code · GS1 QR Code · GS1 Digital Link QR

The camera-readable matrix code on packaging, and the carrier GS1 chose for 2D at point of sale.

Used for

  • GS1 Digital Link QR on packaging for 2D at point of sale (Sunrise 2027)
  • Consumer engagement: product information, registration, authenticity, and re-order
  • Serialized units where each pack carries a unique code for traceability
02 / 03

Data Matrix

GS1 DataMatrix · ECC 200 · ISO/IEC 16022

The compact matrix code on pharmaceuticals, medical devices, electronics, and small parts.

Used for

  • Serialized pharmaceutical packages under DSCSA
  • Medical device Unique Device Identification (UDI) labels
  • Direct part marking on electronics, aerospace, and automotive components
03 / 03

PDF417

Portable Data File 417 · MicroPDF417 · ISO/IEC 15438

The stacked linear code on driver’s licenses, boarding passes, and carrier shipping labels.

Used for

  • US and Canadian driver’s licenses and ID cards (AAMVA standard)
  • Airline boarding passes and baggage tags
  • Carrier shipping labels that encode the full consignee and service data
GS1 DataBar

GS1 data in a smaller footprint.

Compact GS1 symbols for produce, coupons, and small items where a UPC does not fit or does not say enough.

03 / 03

GS1 DataBar Expanded

RSS Expanded · DataBar Expanded Stacked · variable-measure barcode

The DataBar that carries weight, price, expiry, and lot alongside the GTIN, on fresh food and coupons.

Used for

  • Variable-measure fresh food: meat, cheese, deli, produce sold by weight
  • Perishables where the register must read an expiry date to block sale
  • Lot-level traceability on fresh items under FSMA 204
Healthcare & specialty

Rules layered on top of the rules.

Regulated and program-specific formats with their own rules layered on top of GS1.

02 / 02

NDC Barcode

National Drug Code · UPC-A number system 3 · GTIN for pharmaceuticals

How a US drug’s National Drug Code becomes a GTIN and appears in a linear or Data Matrix barcode.

Used for

  • Pharmacy point of sale for over-the-counter and prescription packages
  • DSCSA serialization and verification of saleable units
  • Hospital bedside scanning and medication administration records
Barcode symbology index

Barcodes, aliases, acronyms, and old names.

An alphabetical index of barcode symbologies. Alternate names, including retailer terms and older standard names, are listed and cross-referenced to the primary entry.

Where each barcode sits on a shipment

A retail shipment carries four kinds of barcode and one document that ties them together. Two of the barcodes are packaging artwork, made once. Two are generated every time a carton closes, and they have to match the document exactly.

Level Symbol Identifies Carries Produced by
Consumer unit UPC-A What the shopper buys GTIN-12 Packaging artwork
Case ITF-14 What the retailer orders GTIN-14 Packaging artwork
Case with lot or date GS1-128 What is in the case and when it expires (01) GTIN, (10) lot, (17) expiry Generated per shipment
Carton or pallet label SSCC-18 Which specific unit this is (00) SSCC Generated per shipment
Document 856 ASN What the retailer should expect on the truck Every SSCC and GTIN above Generated per shipment

Frequently asked questions

Which barcode goes on the product, the case, and the pallet?

The consumer unit carries a UPC-A (or EAN-13 outside North America) with the item GTIN. The case carries an ITF-14 with the case GTIN-14, or a GS1-128 when it also needs a lot or expiry date. Every carton or pallet the retailer receives carries a GS1-128 shipping label whose (00) barcode is the SSCC, and that SSCC must appear in the 856 ASN.

Who makes each barcode, the designer or the system?

Symbols whose value never changes are artwork: the UPC on the pack and the ITF-14 on the case are generated once and printed by the packaging supplier. Symbols whose value changes per shipment are operational output: the GS1-128 label with its SSCC, lot, count, and PO is generated by the WMS, OMS, or EDI platform when the carton closes and printed at the pack station.

Do I need a GS1 membership to use these barcodes?

For anything a trading partner scans, yes. GTINs and SSCCs are built on a GS1 Company Prefix licensed to your brand, and retailers and marketplaces verify prefix ownership against the GS1 registry. Internal bin, tote, and asset labels can use plain Code 128 or Code 39 with no license.

Which barcode mistake causes the most chargebacks?

An SSCC on the carton label that does not match the SSCC in the 856 ASN. The distribution center scans the label, finds nothing to reconcile against, and receives the carton manually at the supplier’s expense. It happens whenever the label and the ASN are produced by two systems working from different data.

Definitions live in the commerce operations glossary; per-retailer labeling and ASN rules live in the EDI requirements guides.

Book an Endless Commerce demo

See it on your channels.

Spend your time on the business, not the busywork. Book a demo and watch Endless run your operations across every channel you sell on.

Get a Demo