Barcode Ready
← Barcode Guides

What Is a UPC Code? The 12 Digits Explained

A UPC (Universal Product Code) is the 12-digit number printed beneath the black bars on most products sold in the United States and Canada. It gives each product a unique ID so any store's scanner can identify it in a fraction of a second. The code itself holds no price or name, only the number; the store's system looks up the rest.

The 12 digits

A standard UPC-A has 12 numeric digits in three parts:

PartDigitsMeaning
Number system10, 1, 6, 7 and 8 are used for ordinary products. 2 is for variable-weight items like meat and produce, 3 for drugs, 4 for in-store use, 5 for coupons.
Company prefix and item number10The brand owner's prefix, assigned by GS1, followed by the number the brand gives to this specific product. The split between the two varies by company.
Check digit1Calculated from the other 11 digits so a scanner can catch a misread or a typo.

The company prefix and item number share ten digits. A company with a short prefix has more room for products; a company with a long prefix has less. GS1 sells prefixes of different lengths for this reason.

What a UPC does

Every product variant needs its own UPC. A shirt in blue medium and the same shirt in blue large are two products with two numbers. A six-pack of a drink is a different product from the single can. That precision is what lets retailers track stock, run promotions and reorder exactly what sold.

When a cashier scans a UPC, the register sends the number to the store's database. The database returns the description and price. Change the price in the database and the same barcode rings up the new amount, so nothing printed on the package has to change.

Who uses UPCs

UPC vs SKU

A SKU (stock keeping unit) is a code you invent for your own internal use, such as MUG-WHT-12. You choose the format, and no one outside your business needs to understand it. A UPC is a public number issued through GS1 and unique worldwide. Most businesses use both: the SKU for their own warehouse and spreadsheets, the UPC for anything that crosses a company boundary. Changing your SKU system never changes the UPC.

UPC-A and UPC-E

UPC-A is the full 12-digit version. UPC-E is a compressed 6-digit form for small packages like candy or lip balm, where a full-width barcode will not fit. A UPC-E can be expanded back into its 12-digit UPC-A equivalent, so it identifies the same product. Outside of very small packaging, UPC-A is what you want.

UPC is also closely related to the 13-digit EAN used in the rest of the world. A UPC-A is effectively an EAN-13 with a leading zero, which is why modern scanners read both without any trouble.

Make a UPC barcode

If you already have a 12-digit UPC, the UPC barcode generator turns it into a scannable image you can download as PNG or SVG. Enter 11 digits and it calculates the check digit for you; enter all 12 and it checks that the last digit is correct. Barcode Ready draws everything in your browser, so the numbers you type are never uploaded.

If you need to print the same code at different sizes, SVG stays sharp at any scale. For many products at once, use the bulk barcode generator.

Quick checklist

Try it