Barcode Xpress for Java v13.1 - Updated
EAN-8
User Guide > Concepts > Barcode Specifications > Barcode Types > EAN-8

The EAN (European Article Numbering) code is primarily used in supermarkets. EAN-8 is a shortened version of the EAN-13 code. It is a numeric-only code that includes a 2 or 3 digit country code, 4 or 5 data digits (depending on the length of the country code), and a checksum digit that is automatically added. If there are eight digits specified during a write, the eighth digit will be replaced with the correct checksum.

Unlike the UPC-E symbol, which compresses data that could also be printed as a full-size UPC-A symbol by squeezing out zeros, the data digits in an EAN-8 symbol specifically identify a particular product and manufacturer. Since a limited number of EAN-8 codes are available in each country, they are issued only for products with insufficient space for a normal EAN-13 symbol.

The barcode engine will generate an error if you have characters in your barcode value that are not allowed. You can have 7 or 8 digits in the EAN-8 barcode value. You don’t have to include the 8th digit (checksum) since it is automatically added.

An example: