Skip to content
UPC Maker

UPC-A vs UPC-E: The Difference and How to Convert

By UPC Maker · Last reviewed November 13, 2026

UPC-A is the standard 12-digit retail barcode. UPC-E is not a different number. It is a UPC-A with a run of zeros squeezed out so the barcode fits on a very small pack. A scanner expands it back to the full 12 digits, so both point to the same product. The catch is that only numbers with zeros in the right places can be shortened.

Side by side

UPC-AUPC-E
Digits encoded in the bars126
Digits printed underneath128: a leading digit, the 6, and the check digit
Size at 100%, with quiet zones37.29 x 25.91 mm22.11 x 25.91 mm
Works for any UPC?YesNo, only numbers with the right zeros
Meant forAlmost every productPacks too small for UPC-A

UPC-E is about 15 mm narrower and no shorter. If height is your problem, UPC-E does not help.

How the zeros are removed

Split the 12-digit UPC-A into four pieces: the first digit, the next five (call them the maker digits), the five after that (the product digits) and the check digit. For 042100005264 that is 0, then 42100, then 00526, then 4.

The first digit must be 0 or 1. Then one of four rules applies, depending on how the maker digits end. If none applies, the number cannot be shortened.

RuleMaker digits end inProduct digits must beThe six UPC-E digits
1000, 100 or 20000000 to 00999First 2 maker digits, last 3 product digits, then the 3rd maker digit
20000000 to 00099First 3 maker digits, last 2 product digits, then 3
3000000 to 00009First 4 maker digits, last product digit, then 4
4Any digit from 1 to 900005 to 00009All 5 maker digits, then the last product digit

Try the rules in order and use the first that fits. The last of the six digits works as a signpost: 0, 1 or 2 means rule 1 was used, 3 means rule 2, 4 means rule 3, and 5 to 9 means rule 4. That is how a scanner knows where to put the zeros back.

Four worked examples

Rule 1: 042100005264

Maker digits 42100 end in 100. Product digits 00526 are below 01000. Take 42, then 526, then the third maker digit, 1. The six digits are 425261. With the leading 0 and the check digit 4, the pack shows 0 425261 4.

Rule 2: 045600000388

Maker digits 45600 end in 00, and the third digit is 6, so rule 1 does not fit. Product digits 00038 are below 00100. Take 456, then 38, then 3. The six digits are 456383, printed as 0 456383 8.

Rule 3: 045670000042

Maker digits 45670 end in a single 0. Product digits 00004 are below 00010. Take 4567, then 4, then 4. The six digits are 456744, printed as 0 456744 2.

Rule 4: 045678000082

Maker digits 45678 do not end in 0. Product digits 00008 fall between 00005 and 00009. Take 45678, then 8. The six digits are 456788, printed as 0 456788 2.

Numbers that cannot be shortened

Most cannot. Two examples show why.

  • 045678000037 looks close to the rule 4 example. But its product digits are 00003, and rule 4 only allows 00005 to 00009. A final digit of 3 is already taken as the signpost for rule 2. This number has no UPC-E form.
  • 036000291452, the example used across this site, has maker digits 36000 and product digits 29145. Rule 1 needs the product digits to start with two zeros. They do not, so it stays a UPC-A.

The rules also show how few products each kind of number allows. Rule 1 leaves room for 1,000 products, rule 2 for 100, rule 3 for 10 and rule 4 for only 5.

The check digit does not change

UPC-E has no check digit of its own. The digit printed at the right is the one from the full UPC-A. To verify a UPC-E, expand it and check all 12 digits.

Take 0 425261 4. The sixth digit is 1, so rule 1 was used: the maker digits are 42, then 1, then 00, and the product digits are 00 then 526. That rebuilds 04210000526 plus the check digit. Now run the usual sum from the right, multiplying by 3, 1, 3, 1 and so on:

  1. From the right, the digits are 6, 2, 5, 0, 0, 0, 0, 1, 2, 4, 0.
  2. Weighted, they become 18, 2, 15, 0, 0, 0, 0, 1, 6, 4, 0.
  3. The sum is 18 + 2 + 15 + 1 + 6 + 4 = 46.
  4. The next multiple of 10 is 50, so the check digit is 4.

It matches. The check digit calculator runs the same sum on any 12-digit number. In the barcode itself, the leading digit and the check digit have no bars of their own. They are signalled by which of two bar patterns each of the six digits uses.

Which one should you print?

Print UPC-A unless the pack cannot take it. Work through the options in this order.

  1. Scale UPC-A down. It may be printed at 80% of standard size, which is about 30 mm wide. The limits are in the guide to barcode size and printing.
  2. Turn it. On a tube or small bottle, rotating the barcode a quarter turn often finds the room.
  3. Check whether your number fits a rule above. If it does, UPC-E is available to you.
  4. If it does not fit, ask GS1. You cannot pick a shortenable number yourself. The digits come from the prefix GS1 licensed to you, so tell them the pack is small before numbers are assigned.

Do not edit a number to make it fit. Changing a digit to gain a zero produces a different product number, one that is not yours. Whether a number is accepted by a retailer depends on its GS1 licence, not on the barcode style. That side is covered in do you need a GS1 UPC.

Make and test it

The UPC generator draws both types. Switch it to UPC-E and it shows the full UPC-A number the short form stands for, so you can confirm they match your records. Print a proof at final size and read it with a scanner or the online barcode scanner. Small barcodes on curved packs are the ones that fail.

Scanners differ in what they report for a UPC-E. Some send the 12 expanded digits and some send the short form, depending on how they are set up. Store the full 12-digit number in your product records and listings either way. If your numbers have 13 digits, the small-pack option is a separate barcode called EAN-8, described on the EAN-13 generator page.

Frequently asked questions

Is UPC-E a different product number from UPC-A?

No. It is the same 12-digit number written in a compressed form. A scanner expands it, and your records should hold the full 12 digits.

Can any UPC-A be converted to UPC-E?

No. The number must start with 0 or 1 and have zeros in specific positions, as set out in the four rules above. Most UPC-A numbers do not qualify.

How many digits does a UPC-E have?

Six digits are encoded in the bars. Eight are usually printed below: a leading 0 or 1, the six, and the check digit. That is why you will see it described as 6, 7 or 8 digits in different places.

Do all scanners read UPC-E?

Retail scanners are built to read it, though the setting can be switched off on some models. If a proof will not scan on one device, test it on another before you blame the print.

Which number do I type into a product listing?

The full 12-digit UPC-A. Listing forms and the barcode field in store software expect the complete number, not the six-digit short form.

Keep reading