CheckBarcode.com

UPC-E converter

CopyClear
Enter 8-digit UPC-E or 12-digit UPC-A, including the check digit.

More tools

UPC-E converter

About this tool

Expand 8-digit UPC-E to UPC-A or compress a qualifying 12-digit UPC-A to UPC-E.

How does UPC-E conversion work?

UPC-E represents a qualifying UPC-A number in eight printed digits. Expanding it restores the full twelve-digit UPC-A before checking the final digit. Both representations identify the same item.

Worked example

UPC-E8 digits
01278907
UPC-A12 digits
012000007897

The compression mode digit

UPC-E has a number-system digit, six data digits and a check digit. The sixth data digit, immediately before the check digit, selects the expansion rule.

Here, the blue 0 moves after the first two data digits. Four zeros are restored before the remaining three data digits. The green 7 stays as the check digit.

  • Mode 0, 1 or 2

    Move the mode after the first two data digits, restore four zeros, then append the remaining three.

  • Mode 3

    Keep the first three data digits, restore five zeros, then append the next two.

  • Mode 4

    Keep the first four data digits, restore five zeros, then append the fifth.

  • Mode 5 to 9

    Keep the first five data digits, restore four zeros, then append the mode digit.

The number-system and check digits stay at the ends. Compression works only when reversing one of these rules reproduces the original UPC-A exactly.

  1. Enter UPC-E

    Enter all eight printed digits, including the first and final digits.

  2. Expand and validate

    Restore the full UPC-A number and check its final digit.

  3. Convert back

    A qualifying UPC-A number can be compressed to UPC-E.

Both forms identify the same item and keep the same check digit: 7.

GS1 zero-suppression rules

Which codes can I enter?

Enter all eight printed UPC-E digits or all twelve UPC-A digits, including the check digit. Keep leading zeros. UPC-E number systems 0 and 1 are supported. Six- and seven-digit shortcuts are not accepted. For EAN-8 or zero-padded GTIN representations, use the GTIN converter.

Why can only some UPC-A codes be compressed?

UPC-E uses specific patterns of zeros rather than simply removing leading zeros. A UPC-A can be compressed only when expanding the result restores the original number exactly. The tool rejects codes that do not qualify and checks the final digit before returning a conversion.