
Barcode BasicsBarcode Basics
Do Barcodes Set Off Store Alarms?
Learn what store security gates detect, how a barcode scan can be connected to tag deactivation, and what to do if an alarm sounds.
Learn what a UPC identifies, how a UPC-A barcode relates to a 12-digit GTIN, and what a scan can—and cannot—tell you about a product.

A UPC, or Universal Product Code, is a standardized way to identify a retail product. In everyday use, “UPC” can mean both the number and the barcode on a package. More precisely, a common UPC-A barcode is the pattern of bars and spaces that carries a 12-digit product identifier called a GTIN-12. A scanner reads that number; a connected system can use it to look up a product record. [1] [2]
| Part | What it does | What to look for |
|---|---|---|
| GTIN-12, often called the UPC number | Identifies a trade item, such as a particular size of a product | Twelve digits, including the check digit |
| UPC-A symbol | Carries that number in a pattern a scanner can read | Bars and spaces, usually accompanied by readable digits |
| Product record | Associates the identifier with details in a retailer’s or another database | Information such as description or price, if the system has a matching record |
The number is the key to a record; the price or product description is not encoded as a separate field in an ordinary UPC-A symbol. Different stores can associate their own prices with the same product identifier. A scan may read the number successfully even when the particular app or store system has no matching record. [2]
Look for a linear barcode on the product’s label, box, tag, or other packaging. The human-readable number may be printed in groups, with a small digit outside the bars at either end. Read all the printed digits, including any zero at the beginning and the last digit. A typical UPC-A carries 12 digits; other barcode types and compact UPC-E symbols have different appearances, so do not identify a symbol solely by counting a few visible digits. [1] [2]
GS1 US gives this example of a UPC number: 6 14141 99999 6. Written without the spacing, it is 614141999996. The final 6 is the check digit. It is calculated from the preceding digits and helps check that the number is correctly composed. This is a teaching example from GS1 US, not a number to assign to your own product. [1]
On your own package, compare the complete printed number with the value read by a scanner. If a digit is hard to see or the values differ, check the label and scanner settings, then try again. A correctly calculated check digit does not establish who may use the number or prove that the printed label meets a retailer’s requirements.
A UPC-A scan supplies the identifier. What happens next depends on the system using it:
A missing result does not by itself mean the barcode is invalid: check that you entered or scanned the full number, then try the relevant retailer’s records or the identifier source. A matching listing identifies a record; it does not, on its own, prove that a particular physical item is genuine.
For GS1 identifiers, Verified by GS1 can be used to check available information about an identifier and its issuing company. Compare any returned information with the item and its packaging; the available information and access may vary. [3]
GTIN means Global Trade Item Number. GTIN-12 is the 12-digit identifier commonly associated with UPC-A. Other GTIN structures exist, so “GTIN” is a broader term than the particular 12-digit example here. SKU means stock keeping unit: an internal code a business uses for its own inventory. A business can maintain a SKU and a GTIN for the same product, but the two serve different purposes. [2]
A company selling two separately identified sizes will generally need a separate GTIN for each size. If you need identifiers for products you sell, check your retailer or marketplace’s current requirements and the applicable GS1 US process before creating artwork. A barcode image alone does not issue a product identifier. [1]
Some data exchanges require a 14-digit field. For example, GS1 XML represents a GTIN-12 by adding two leading zeros as padding; this does not change the underlying 12-digit identifier. Other systems can use different formats. Keep the original 12 digits intact and follow the receiving system’s instructions instead of removing zeros by guesswork. [4]
If a number fails a check or a lookup, first distinguish a formatting issue from an incorrect number. Compare it with the complete number on the label and the source product record, preserving any zeros that are part of the GTIN-12. Then ask the data owner or receiving partner how its system expects the number to be entered.
[1] GS1 US. What is a UPC Code? https://www.gs1us.org/upcs-barcodes-prefixes/guide-to-upcs
[2] GS1 US. What is a GTIN? https://www.gs1us.org/upcs-barcodes-prefixes/what-is-a-gtin
[3] GS1. Verified by GS1. https://www2.gs1.org/services/verified-by-gs1
[4] GS1 GO Customer Service Portal. What is the required format of GTIN in GS1 EDI standards? https://support.gs1.org/support/solutions/articles/43000734355-what-is-the-required-format-of-gtin-in-gs1-edi-standards-