Retail linear barcode

UPC-A Barcode

UPC-A is the familiar 12-digit retail barcode used to identify consumer trade items, especially in North America.

UPC-A barcode example encoding GTIN-12 012345000058
UPC-A example using the GTIN-12 that GS1 US makes available for examples.Encoded example: 012345000058
GS1 Style Guide §2.18.1 identifies GTIN-12 012345000058 as an example value; §2.18.2 states its barcode image examples may be freely reused.

What is UPC-A?

UPC-A is part of the GS1 EAN/UPC family. It encodes a 12-digit GTIN-12 and is designed for fast scanning at retail point of sale. The number identifies the trade item; product name, price and other descriptive information are normally retrieved from a database after the scan.

Barcode family1D / linear
Number carriedGTIN-12
Primary environmentRetail point of sale
Data contentFixed-length numeric identifier

Understanding the 12 digits

A GTIN-12 is constructed within the GS1 system and includes a check digit as its final digit. The check digit is calculated from the preceding digits and helps systems detect common data-entry or scanning errors.

Important: The UPC number is an identifier, not a price code. A store's point-of-sale system looks up the item record and current price after reading the GTIN.

Where is UPC-A used?

UPC-A is most strongly associated with consumer products sold through retail checkout systems. It is optimized for omnidirectional point-of-sale scanning, where a cashier or self-checkout scanner may encounter the symbol at different angles.

UPC-A vs. EAN-13

UPC-A carries a GTIN-12, while EAN-13 carries a GTIN-13. Both belong to the EAN/UPC family and are used for retail product identification. Modern systems commonly treat GTINs within the broader GS1 identification framework rather than thinking of UPC and EAN as unrelated systems.

UPC-A vs. Code 128

CharacteristicUPC-ACode 128
PurposeRetail trade-item identificationGeneral-purpose identification
Data lengthFixed GTIN-12Variable
LettersNoYes
Use at retail POSDesigned for itNot a substitute unless the retailer/application explicitly supports it

Printing considerations

Retail barcodes are subject to GS1 sizing, quiet-zone and print-quality requirements. Simply shrinking a UPC-A until it fits can make it difficult to scan. Packaging artwork, print process, substrate, color contrast and symbol magnification all need to be considered.

Black bars on a white or light background remain the safest choice because barcode scanners rely on optical contrast. Certain color combinations can appear very different to scanners than they do to the human eye.

Frequently asked questions

Does UPC-A store the product price?

No. It normally identifies the trade item. The retailer's database supplies price and description.

Can I invent my own UPC number for a retail product?

For products participating in the GS1 system, identifiers should be licensed and assigned according to GS1 rules so they remain globally unique.

Is the last digit random?

No. The last digit is a calculated check digit.

Standards references

Official references: GS1 EAN/UPC barcodes and GS1 barcode/GTIN information.

Related learning