Barcode · Converter

UPC-E to UPC-A converter.

Expand an 8-digit UPC-E into the 12-digit UPC-A it stands for, verify the check digit, or compress a UPC-A back to UPC-E when its zeros allow it. Format and checksum only.

How it works: the last of the six UPC-E digits says where the suppressed zeros go back. 0, 1 or 2 puts it in position 4 with four zeros; 3 inserts five zeros after the third digit; 4 inserts five zeros after the fourth; 5 to 9 inserts four zeros before that last digit. The check digit is the ordinary UPC-A check digit of the expanded number.

Sources: GS1 General Specifications 5.2.2.4; ZXing UPCEReaderVerified 30 September 2026

Advertisement

Inputs

8 digits (or 7, or the bare 6) is read as UPC-E and expanded. 12 digits is read as UPC-A and compressed. Spaces and hyphens are ignored.

Result

Enter a code and press Convert.

Advertisement

How UPC-E zero suppression works

A UPC-E barcode prints six digits, but stands for a full 12-digit UPC-A. The number system digit (0 or 1) and the check digit are not printed as digits; they are carried by the bar pattern. Written out as 8 digits, a UPC-E is number system + six digits + check digit. Below, X1 to X6 are the six digits.

Expansion by the last digit X6 (GS1 Table 5-7)
X6UPC-A (number system, then 10 digits, then check)
0, 1 or 2X1 X2 X6 0 0 0 0 X3 X4 X5
3X1 X2 X3 0 0 0 0 0 X4 X5
4X1 X2 X3 X4 0 0 0 0 0 X5
5 to 9X1 X2 X3 X4 X5 0 0 0 0 X6

Worked example (GS1 Figure 5-15)

UPC-A 0 12345 00005 8 has four zeros in a row before its last data digit, so it compresses to X = 1 2 3 4 5 5 and the UPC-E is 01234558. Expanding 01234558 reverses this.

Check digit: the standard UPC-A mod-10 check digit, calculated on the expanded 11 digits (weights 3, 1, 3, 1, and so on from the right). UPC-E has no separate algorithm.

Compressing: only a UPC-A with number system 0 or 1 and the right run of zeros can become a UPC-E, and the four cases cannot overlap, so the result is unique. Any other UPC-A, including most everyday ones, has no UPC-E form.

Format and checksum only — not a registry lookup

This page checks format and checksum only. It cannot confirm that a code was ever issued to a company or product; only GS1 and its member organizations can do that.

Sources

Advertisement

Frequently asked questions

Can every UPC-A be shortened to a UPC-E?

No. Only a UPC-A with number system 0 or 1 and a specific run of zeros in the manufacturer or product part can be compressed. Most everyday UPC-A numbers have no UPC-E form.

Does the UPC-E check digit differ from the UPC-A one?

No. It is the UPC-A check digit, calculated on the expanded 11 digits. For 01234558 the expanded UPC-A is 012345000058 and the check digit 8.

Why does the UPC-E show only six digits?

The number system digit and check digit are not printed as separate digits in the symbol’s main pattern; they are carried by the bar pattern, so the six digits stand for a full 12-digit UPC-A.

Does a valid expansion mean the code is registered?

No. The tool checks format and checksum only; only GS1 and its member organisations can say whether a number was issued.

Worked example: 04252614 expands to 042100005264

The six middle digits of a UPC-E are 425261 and the last digit, 4, is the check digit. The final data digit, 1, selects the rule: for 0, 1 or 2 the zeros go in position 4.

UPC-ERuleUPC-A
0 425261 4last data digit 1: keep digits 1-2, then the last digit, then four zeros, then digits 3-50 42100 00526 4 = 042100005264
0 123456 5last data digit 6: insert four zeros before the last digit0 12345 00006 5 = 012345000065

In both cases the check digit of the expanded UPC-A is the same as the check digit shown on the UPC-E, which is how the converter confirms the code is consistent.

Next steps: UPC-A generator, UPC to EAN-13 converter, or EAN-13 to UPC-A converter.

Privacy and scope

This tool runs entirely in your browser: nothing you type is transmitted, stored, or logged. It checks format and checksum only, with no lookup against any product database.