Skip to content
ScanHatch

EAN & UPC Validator

Check a retail product number (EAN-13, EAN-8, UPC-A or UPC-E), see what its prefix means, and convert between UPC-E and UPC-A.

13 digits, including the check digit.

UPC-E ↔ UPC-A converter

Enter a UPC-E to expand it, or a UPC-A to see whether it can be shortened.

The direction is detected automatically from the number of digits.

Privacy: Checks run in your browser. Images and values aren't sent to ScanHatch or stored. Privacy policy

How EAN and UPC numbers relate

All four are GTINs (Global Trade Item Numbers). A UPC-A is a 12-digit GTIN; written with a leading 0 it becomes the equivalent 13-digit EAN-13, and the barcodes are identical. That's why a scanner may show a UPC-A as a 13-digit number starting with 0. EAN-8 is a separate, shorter number issued for small packages. It isn't a shortened EAN-13.

When can a UPC-A be shortened to UPC-E?

Only UPC-A numbers with number system 0 or 1 and zeros in particular positions. The pattern is recorded in the last digit of the UPC-E (before the check digit):

UPC-E ends inRequired zeros in the UPC-A
0, 1, 2The manufacturer code ends in that digit then 00, and the item number starts with 00.
3The manufacturer code ends in 00, and the item number starts with 000.
4The manufacturer code ends in 0, and the item number starts with 0000.
5–9The item number is 0000 followed by that digit.

Most UPC-A numbers don't fit any of these patterns, so they can't be printed as UPC-E.

What prefixes tell you