UPC-E (Universal Product Code version E) is
the short form representation of a UPC A. There may be 2-digit or
5-digit Supplement to UPC.
UPC-E compression rule from UPC-A
Not all UPC-A numbers can be compressed to UPC-E. These codes
who have a corresponding UPC-E code must have at least 4 zeros. The
rules are:
- If the manufacturer code ends with 000, 100, or 200, the UPC-E
code consists of the first two characters of the manufacturer code,
the last three characters of the product code, followed by the
third character of the manufacturer code. Under this case, The
product code must be 00000 and 00999.
- If the manufacturer code ends with 00 but does not meet the #1
requirement, The UPC-E code consists of the first three characters
of the manufacturer code, the last two characters of the product
code, followed by digit “3”. The product code can only contain two
digits(00000 to 00099).
- If the manufacturer code ends in 0 but non of the above
qualifies, the UPC-E consists of the first four digits manufacturer
code and the last digit of the product code, followed by the digit
“4”. The product code in this case can only contain one digit(00000
to 00009).
- If the manufacturer code ends with non-zero digit, the UPC-E
code consists of the manufacturer code and the last digit of the
product code. In this case the product case can only be one from
00005 to 00009 because 0 to 4 has been used for the above four
cases.
Structure of an UPC-E number
A UPC-E barcode has 6 digits with an implied number system 0. The
first 5 digits are calculated based on a conversion algorithm
described below. The last digit is the check digit of the original
UPC-A symbol.
UPC-E Properties
Besides the properties to general barcode, the following property
belongs to UPC-E:
SupplementarySeparation gets or sets the
space between the end of barcode and the begin of supplementary for
UPC/EAN in Inches. Default is 0.2 inches.
UPC-E Check Sum
UPC-E check digit is calculated using standard Mod10 method.
ezBarcodeComponent UPC-E Acceptable String Length
ezBarcodeComponent UPC-E can accept 6, 7, 8, 11, 12, 13, 14, 16, 17
digit length.
If the CodeData is 6 digits, a leading 0 will be added to the
CodeData.
If the CodeData is 8 digits, the first 7 digits will be used for
UPC-E.
UPC-E examples by using ezBarcodeComponent
[C#]
using ezBarcodeComponent.Winform;
//create barcode class
Barcode barcode1 = new Barcode();
//Specify the CodeData to encode
barcode1.CodeData = "01234500009612345";
//Set the Symbology to UpcE
barcode1.Symbology = Symbologies.UpcE;
barcode1.SupplementarySeparation = 0.2;
//Save the image
barcode1.SaveImageAs("Ean13.gif", System.Drawing.Imaging.ImageFormat.Gif);
[Vb.net]
'create barcode class
Dim barcode1 As New Barcode
'Specify the CodeData to encode
barcode1.CodeData = "01234500009612345"
'Set the Symbology to UpcE
barcode1.Symbology = Symbologies.UpcE
barcode1.SupplementarySeparation = 0.2
'Save the image
barcode1.SaveImageAs("UpcE.gif", System.Drawing.Imaging.ImageFormat.Gif)
Example of UPC-E barcode images with variable digit length.
Image |
Description |
|
6 digits CodeData = "012345"
A leading 0 is added to CodeData.
No supplementary part. |
|
7 digits CodeData = "0123456"
No supplementary part. |
|
8 digits CodeData = "01234565"
The first 7 digits is used for CodeData.
No supplementary part. |
|
11 digits CodeData = "01234500009"
The last digit is the Mod 10 check sum.
No supplementary part. |
|
12 digits CodeData = "012345000096"
The last digit is the Mod 10 check sum.
No supplementary part. |
|
13 digits CodeData = "0123450000912"
The 8th digit is the Mod 10 check sum.
The last two digits are supplementary part. |
|
14 digits CodeData = "01234500009612"
The 8th digit is the Mod 10 check sum.
The last two digits are supplementary part. |
|
16 digits CodeData = "0123450000912345"
The 8th digit is the Mod 10 check sum.
The last five digits are supplementary part. |
|
17 digits CodeData = "01234500009612345"
The 8th digit in the image is the Mod 10 check sum.
The last five digits are supplementary part. |