KA.Barcode for .NET Suite
How to Generate EAN-13 in C# Application
How to Generate Linear EAN-13 Barcode Images in C#, ASP.NET, WinForms, Crystal & RDLC

C# EAN 13 Barcode Generator
How to generate ean-13, gtin 13 barcode with check digit calculate, validate









  • High-quality EAN-13 encoder written in C#.NET with full integration into Microsoft .NET Framework
  • Mature barcoding control suitable for producing and printing 1D EAN-13 barcode images in C#.NET applications
  • Support EAN-13 generation in ASP.NET websites, IIS, WinForms, Crystal Reports, RDLC Reports, etc
  • Support multiple linear and bi-dimensional barcode types in C#.NET, such as Code 39, EAN-13, QR Code etc
  • Simple to draw and save EAN-13 1D barcodes in Png, Jpeg, Gif, Tiff and Bmp image formats
  • Adjust various barcode settings for the generated EAN-13 barcode image, like bar width, bar height, color, etc
C# EAN-13 Barcode Generator Introduction
KA.Barcode Generator for .NET Suite is one of the best all-in-one barcode generating components for efficient EAN-13 barcoding in ASP.NET websites, Windows Forms & C# programming. This control is extremely user-friendly with easy-to-use interface and multiple settings for the generated EAN-13, EAN-13+2 and EAN-13+5 barcode images.
What Is A EAN-13 Barcode
EAN-13 is a linear barcode which encodes numeric-only data with a fixed length of 13 digits. It is also named as European Article Number 13, EAN/UCC-13, GS1-13, GTIN-13, with variants EAN-13 Supplement 2 (a two-digit Add-On), EAN-13 Supplement 5 (a five-digit add-on).

Create EAN-13 in ASP.NET web apps using C#

This .NET generator package includes an ASP.NET server component which enables developers to stream EAN-13, EAN-13+2, EAN-13+5 linear GS1 barcodes in ASP.NET websites. You can create EAN-13 in three ways: drag-and-drop control for direct barcode generation, Microsoft IIS dynamic barcode streaming, and Visual C# class library programming. For details, refer to
Create barcode in ASP.NET Core using C#
Create barcode in ASP.NET Core MVC web apps using C#
How to print barcode in Visual C# with ASP.NET web control.

Create EAN-13 in .NET Windows apps using C#

.NET developers can use this powerful barcode generator control to paint dynamic EAN-13 barcode (supplement barcode supported) in .NET WinForms applications. Try for yourself and you will find it quite easy to create EAN-13 with simple steps. All you need is to drag and drop or add reference and copy sample code. See:
How to create barcode in .NET WinForms with Visual C#
Create barcode in .NET WDF Core using C#


EAN-13 Data Encoding in C#

Encodable character sets

EAN-13 encodes 0-9 digits only.
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9


EAN-13 data length

The GS1 System requires the EAN-13 with 12 data digits and 1 check sum digits. There are 13 digits totally.

Using KeepAutomation C# EAN-13 barcode generator library, you need provide the 12 data digits only. The barcode library will automatically add the calculated check digit for you.


EAN-13 check sum digit

The GS1 System required one check digit for each EAN-13 barocde.

The checksum digit is based on a modulo 10 calculation based on the weighted sum of the values of each of the digits in 12 data digits.

The C# barcode generator library will calcualted the check sum digit and append it to the end of EAN-13 barcode symbology in C# applications.
Generate Barcode Image in Specified Width and Height
  • Set property AutoSizeAdjust to true

  • Set property DPI to be the same or higher as your printer's resolution

  • Set property BarcodeUnit to inch or cm

  • Set property BarCodeWidth and BarCodeHeight to your required image width and height
EAN-13 Barcode Property Settings in C#
Generate EAN-13 in .NET Applications with C#