Example of EAN-8 in Blazor Barcode Generator Component

Barcode Generator / Getting started / EAN-8

This sample visualizes 8-digit Global Trade Identification Numbers. These numbers were introduced for use on small packages where an EAN-8 barcode would be too large.

Allowed input characters: The EAN-8 barcode supports all numeric digits (0-9) and requires an 8 characters text length.
Appearance
Value
Width
Height
Background Color
Fore Color
Text Visibility
Margin
Left
Right
Top
Bottom
Text Properties
Top
Bottom
Position
Alignment

This sample shows how to create an EAN-8 barcode. The Type property can be used to set the barcode type as Ean8.

You can customize the barcode's Value, allowing you to modify the barcode content. Adjust its Width, Height, Background Color, and Fore Color to control its size and appearance.

The Text Visibility option lets you choose whether to display the accompanying text. Margin properties such as left, right, top, and bottom define the spacing around the barcode. Text properties allow for fine-tuning text placement and alignment, enabling you to set its Position (e.g., top or bottom) and Alignment (e.g., center, left, or right).

The Download button allows users to save the barcode as an image.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE