EAN-8 Size Setting Instruction

Barcode Size of EAN-8

OnBarcode products enable users to control EAN-8 barcode image size during its generation. And EAN-8 size setting is supported by the following OnBarcode products:

Structure of EAN-8

  • W : the width of EAN-8 barcode image, including quiet zones.
  • X : the width of EAN-8 narrowest bar; X min = 1 pixel.
  • C : the number of EAN-8 encoded data characters, including the check digit; C =8.
  • Q : the width of the quiet zone; Q > = 7X; Q (L) = 7X, Q (R) = 7X.



Barcode Width of EAN-8

Defined by GS1 specification, EAN-8 barcode width (W, measured in pixel), can be simply computed.
  • If EAN-8 barcode has no supplement data, the expression is:

W = ( C * 7 + 11 ) X + 2Q       // C = 8, Q (L) = 7X, Q (R) = 7X.
    = ( 8 * 7 + 11 ) X + 7X + 7X
    = 67X + 14X
    = 81X

W min = 81X       // X = 1
= 81 pixel

  • If a Two-digit Add-On is included in EAN-8, the whole barcode image width including the minimum quiet zones is 106X. W min = 106 pixel.
  • If a Five-digit Add-On is included in EAN-8, the whole barcode image width including the minimum quiet zones is 133X. W min = 133 pixel.

Note that, the value of each quiet zone is default by 10X [Q (L) = 10X, Q (R) = 10X] in our EAN-8 generators, and then the respective value of W in above calculation should be87X, (107X + 15), (134X + 15).


Barcode Height of EAN-8

GS1 specification specifies that EAN-8 barcode height, including the human readable text, should be at the nominal size of 21.3 millimeters (0.8 inch). And the human readable text is 2.75 millimeters. In addition, the height of any two-digit or five-digit Add-On Symbol used, including the human readable text, must be within the image height dimensions of the primary barcode.

However, there is no need to worry about how to generate an EAN-8 barcode meeting the above requirements. Our EAN-8 barcode generators will automatically adjust image height according to the specification. And customers can control barcode image height through Top and Bottom Margin settings.

OnBarcode provides details of EAN-8 Barcode Size Setting in C#.




OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.