Price File Desk

How many digits is a UPC code?

A standard UPC, the UPC-A, has 12 digits; GS1 calls the number a GTIN-12. A 13-digit code is an EAN-13 (GTIN-13), and a 12-digit UPC written as a GTIN-13 or GTIN-14 gains leading zeros. A UPC with 11 digits in a price file is missing one, often a leading zero Excel removed.

Updated November 25, 2026 ยท 4 sources listed at the end

Key facts
UPC-A12 digits (GTIN-12)
EAN-1313 digits (GTIN-13)
Case codeGTIN-14, 14 digits
UPC-ECompact 6-digit version

Which lengths does a GTIN come in?

GTIN lengths
CodeDigitsWhere GS1 US says it is used
GTIN-12 (UPC-A barcode)12Mainly North America, scanned at point of sale
GTIN-13 (EAN-13 barcode)13Mainly outside North America, at point of sale
GTIN-1414Cases and other groupings, not point of sale
GTIN-8 (EAN-8)8Small items, mostly outside North America
UPC-E6 shownCompact UPC for small packs; GS1 US no longer licenses UPC-E prefixes

From GS1 US's GTIN and barcode type pages (GTIN) (barcode types). GS1 US says the GTIN-12 is the only GTIN type that can be encoded in a UPC-A barcode.

Can a UPC have 13 digits?

Not as a UPC-A, but the same number can be written in 13 or 14 digits. GS1 XML, for example, requires a GTIN as a 14-digit field, right-justified and filled with leading zeros, whatever its length (GS1). So UPC 990497300014 becomes 0990497300014 in 13 digits and 00990497300014 in 14. A true EAN-13 that does not start with 0 is a different number, not a padded UPC.

Why does a supplier file show 11 digits?

Because the leading zero was dropped. Excel converts numbers with leading zeros to plain numbers by default when it opens a CSV or receives pasted data (Microsoft). Check the length and the check digit before importing; an 11-digit code will not match the 12-digit original in your item file.

More questions on upc, gtin and barcodes: Is a SKU the same as a UPC? · How do you read a UPC code? · How do I get a GTIN for my product? · Are GTIN and barcode the same? · Where is the check digit on a UPC?

Common questions

How many digits is a GTIN?

8, 12, 13 or 14, per GS1 US. The UPC is the 12-digit GTIN-12.

Is a UPC always 12 digits?

A UPC-A always is. The compact UPC-E shows 6 digits, and systems often store a UPC padded to 14 digits with leading zeros.

What is the 12th digit of a UPC?

The check digit, calculated from the first 11 digits.

First supplier file free. Pilot $500 for up to 5 files. Then $950 a month for up to 15 files, $60 per extra file. Every file back within 24 hours, or it is free.

Send your first file