Barcode & QR Codes14 min read

EAN, UPC, Code 128 and GS1 Barcode Formats Explained

Barcode formats are not interchangeable decoration. Each symbology has data rules, scanning expectations and an operational context.

Editorial visual for ean, upc, code 128 and gs1 barcode formats explained
On this page
01

EAN and UPC for retail identification

EAN-13, EAN-8, UPC-A and UPC-E encode numeric product identifiers with strict lengths and check digits. The number should be assigned through the applicable identification process.

The same product identifier must be represented consistently across packaging, catalogues and trading systems.

02

Code 128 and Code 39 for internal workflows

Code 128 efficiently represents a broad ASCII range and suits inventory, shipping and asset labels. Code 39 is simpler and widely recognized but is less compact.

Define an identifier policy before generating a large batch so scanners, databases and printed labels agree.

03

ITF-14 and GS1 data structures

ITF-14 is associated with suitable trade-item groupings and distribution units. GS1-128 adds structured application identifiers for data such as batch, dates and serials.

A generic text barcode is not automatically a GS1-compliant symbol. Data syntax and identifier ownership both matter.

04

Use the narrowest correct capability

Choose the format required by the receiving system, not the one with the most visual appeal. Confirm supported scanners, character set, data length, identifier ownership, physical print size and whether the workflow expects ordinary text or structured GS1 data.

Document the selected symbology and test values before deploying a full label batch. A database field named “barcode” is not enough specification: record whether it expects GTIN-13 rendered as EAN-13, an internal Code 128 string, an ITF-14 case symbol or another defined carrier.

05

Compare the common formats

Retail formats have fixed numeric lengths and defined check digits. General-purpose linear formats accept a broader range of internal identifiers, while two-dimensional symbols can carry substantially richer content. The receiving application—not the generator—determines which choice is operationally correct.

Do not choose Code 39 merely because a legacy scanner reads it or choose QR merely because it stores more data. Consider available label width, scanning direction, data governance, database integration and the equipment already deployed.

FormatTypical dataCommon roleImportant constraint
EAN-13 / EAN-8Fixed-length numeric GTINRetail point of saleAssigned identifier and valid check digit
UPC-A12-digit numeric GTINNorth American retailAssigned identifier and valid check digit
ITF-1414-digit numeric GTINCases and distribution unitsNot a replacement for a consumer-unit symbol
Code 128Broad ASCII dataInventory and logisticsReceiver must agree on data syntax
Code 39Restricted alphanumeric dataIndustrial and legacy systemsLower density than Code 128
QR CodeURLs and richer structured contentDigital interaction and 2D workflowsNeeds four-module quiet zone and 2D reader
06

Separate identifier governance from symbol generation

The number, the data structure and the printed symbol are different layers. An organization may assign an internal stock code and render it in Code 128 without creating a GTIN. A retail product may need a GTIN licensed through the relevant GS1 member organization before that number is rendered in EAN or UPC.

Define who can allocate identifiers, how duplicates are prevented, which database is authoritative and how retired values are handled. The generator should receive approved data rather than become an informal numbering system.

  • Maintain one authoritative identifier record.
  • Preserve leading zeros by storing codes as text.
  • Validate check digits before artwork approval.
  • Document whether GS1 application identifiers are used.
  • Never reuse regulated or externally assigned identifiers casually.
  • Verify externally issued identifiers through the appropriate authority.

Put the workflow into practice

Arrange source documents, select the pages you need, and create one PDF locally in your browser. Review the result before choosing any optional next step.

Try Barcode & QR Code Generator

Frequently asked questions

Clear answers before you merge

Are EAN-13 and UPC-A interchangeable?

They are related retail formats but use different displayed lengths and market conventions.

Does Code 128 support letters?

Yes. This studio supports printable ASCII for Code 128.

What is the difference between Code 128 and GS1-128?

GS1-128 uses Code 128 symbology with GS1-specific structured data and application identifiers.

Related tools

Continue your document workflow