Barcode Xpress for Node.js v13.3 - Updated
EAN 8
User Guide > Concepts > Barcode Specifications > Barcode Types > EAN 8

The EAN-8 barcode is a omnidirectional, numeric 1D barcode with 8 digits, and is the condensed version of the EAN (European Article Number) barcode. EAN / UPC barcodes employ a 1-digit checksum as an error detection mechanism.

Example Barcode

The following example barcode encodes the information 0123456 as an EAN-8 barcode:

EAN-8 Barcode

Details

The EAN-8 barcode encodes 8 digits (7 digits plus one check digit) of information, and has a symbol length of 81 modules. 1

Barcode Breakdown

The barcode is split into the following sections:

Managing Organization

The EAN standard was managed by the EAN Association until 2005, when the UCC and EAN (European Article Number) merged to form GS1 (Global Standards One), at which point the EAN became GS1. 3

Platform-Specific Notes

Barcode Xpress 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 Barcode Xpress automatically adds it.

EAN-8 requires a quiet zone, which should be at least the width of 10 narrow bars. This means that if you set the MinimumBarWidth property to 3 pixels (narrow bar size), you should set the HorizontalWhiteSpace property to 30 pixels.

The EAN-8 barcode is also commonly written with 2 different bar heights. Typically, the height of the left and right guard bars are greater than the height of the bars encoding the actual barcode value, essentially creating a notch in the barcode where the text value can be written. Barcode Xpress provides the user with control over the size of this notch with the TextNotchPercent property.

The TextNotchPercent property can be set to a value of 0 to 50. This number represents the percentage of the tall bar height the short bars will be shortened by. For example, if TextNotchPercent is 10, and the bar height is set to 100 pixels, the tall bars (left and right guard bars) will be 100 pixels tall, and the short bars (bars encoding the value) will be 90 pixels tall.

Barcode Xpress 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 Barcode Xpress automatically adds it.

EAN-8 requires a quiet zone, which should be at least the width of 10 narrow bars. This means that if you set the MakeBarcodeBarSize property to 3 pixels (narrow bar size), you should set the MakeBarcodeBWidth property to 30 pixels.

The EAN-8 barcode is also commonly written with 2 different bar heights. Typically, the height of the left and right guard bars are greater than the height of the bars encoding the actual barcode value, essentially creating a notch in the barcode where the text value can be written. Barcode Xpress provides the user with control over the size of this notch with the MakeBarcodeUPCNotchPercent property.

The MakeBarcodeUPCNotchPercent property can be set to a value of 0 to 50. This number represents the percentage of the tall bar height the short bars will be shortened by. For example, if the notch percent is 10, and the bar height is set to 100 pixels, the tall bars (left and right guard bars) will be 100 pixels tall, and the short bars (bars encoding the value) will be 90 pixels tall.

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.

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.

EAN-8 requires a quiet zone, which should be at least the width of 10 narrow bars. This means that if you set the MinimumBarWidth property to 3 pixels (narrow bar size), you should set the HorizontalWhiteSpace property to 30 pixels.

The EAN-8 barcode is also commonly written with 2 different bar heights. Typically, the height of the left and right guard bars are greater than the height of the bars encoding the actual barcode value, essentially creating a notch in the barcode where the text value can be written. The barcode engine provides the user with control over the size of this notch with the TextNotchPercent property.

The TextNotchPercent property can be set to a value of 0 to 50. This number represents the percentage of the tall bar height the short bars will be shortened by. For example, if TextNotchPercent is 10, and the bar height is set to 100 pixels, the tall bars (left and right guard bars) will be 100 pixels tall, and the short bars (bars encoding the value) will be 90 pixels tall.

Similar Barcode Types

Since the transfer of specification management to the GS1, this barcode has been defined by GTIN (Global Trade Identification Number) key "GTIN-8". 4

Barcode Variants

EAN-8 barcodes are a condensed representation of EAN-13 barcodes.

Related Barcodes

EAN-8 barcodes fall into the GS1 system specification, relating them to various other barcodes including EAN-13, UPC-A, UPC-E, and GS1 Databar.

References

  1. "GS1 Standard Specifications." GS1, GS1 Organization, Jan. 2020, www.gs1.org/sites/default/files/docs/barcodes/GS1_General_Specifications.pdf.

  2. "GS1 Company Prefix." GS1, GS1 Organization, www.gs1.org/standards/id-keys/company-prefix.

  3. "How We Got Here." GS1, GS1 Organization, www.gs1.org/about/how-we-got-here.

  4. "EAN/UPC Family." GS1, GS1 Organization, www.gs1.org/docs/barcodes/GS1_Barcodes_Fact_Sheet-GS_ EAN_UPC_family.pdf.



For more information, see the Barcode Xpress SDK product page or try our online demos.