PNG JPG BMP TIFF EAN13
Aspose.BarCode  for .NET
EAN13

Generate EAN13 Labels via C#

Create EAN-8, EAN-13, EAN-14 barcodes in any .NET based application.

How to Generate EAN Barcode Using C#

In order to create EAN-8, EAN-13, EAN-14 barcode, we’ll use

Aspose.BarCode for .NET

API which is a feature-rich, powerful and easy to use barcode API for C# platform. Open

NuGet

package manager, search for Aspose.BarCode and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.BarCode

Steps for Generating EAN Barcodes in C#

BarCode API makes it easy for the developers to create EAN barcode images in few lines of code.

  • Create an instance of BarcodeGenerator class
  • Pass EAN13 as a parameter
  • Set text to encode as second parameter
  • Set image dimensions if required
  • Call BarcodeGenerator.Save method to get the EAN13 label

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Standard, COM Interloop for PHP, VBScript, Delphi, C++
  • Development environment like Microsoft Visual Studio.
  • Aspose.BarCode for .NET library DLL referenced in your project - Install from NuGet using the Download button above
 

Create EAN Barcodes - C#

// The path to the documents directory.
string dataDir = "directoryPath";
// Instantiate object and set differnt barcode properties
BarcodeGenerator  generator = new BarcodeGenerator (EncodeTypes.EAN13, "590123412345");
generator.Parameters.Barcode.XDimension.Millimeters = 1f;

// Save the image to your system and set its image format to Jpeg
generator.Save(dataDir + "output.jpg", BarCodeImageFormat.Jpeg); 
// Use the relevant EncodeTypes EAN-8, EAN-13, EAN-14
 

Create EAN13 Codes via Free App

BarCode Generator App

  No need to download Aspose API.
  Just put in the barcode text.
  Select EAN13 from the dropdown.
  Instantly get the EAN13 label.
.NET BarCode API is capable of barcode scanning and generation. It can easily decode and generate 1D, 2D and postal barcodes of multiple symbologies. Developers can easily integrate it in any barcode generation and recognizing application. Moreover, Generated barcodes can easily be exported to different high-quality image formats. Its a standalone library and does not require any additional software installation.

Other Supported Barcode Generation Symbologies

Using .NET, One can also generate barcode of different symbologies including.

QR (QR Code, GS1 QR Code)
PDF417 (PDF 417, Micro Pdf417, Macro PDF417)
DATABAR (GS1 Databar Expanded, GS1 Databar Expanded Stacked, GS1 DataBar Expanded, GS1 Databar OmniDirectional, GS1 DataBar Stacked, GS1 Databar Stacked OmniDirectional, GS1 DataBar Truncated)
DATAMATRIX (Data Matrix, GS1 Data Matrix)
UPC (UPC-A, UPC-E, UPCA GS1 Code 128 Coupon, UPCA GS1 Databar Coupon)
AZTEC (AZTEC)
CODEBLOCK (CodablockF, GS1 CodablockF)
CODE128 (Code 128, GS1-128)
CODE16K (CODE 16K)
CODE32 (ITALIAN PHARMACODE CODE 32)
CODE39 (Code 39 Extended, Code 39 Standard)
CODE93 (Code 93 Extended, Code 93 Standard)
ONECODE (USPS ONECODE)
AUSTRALIAPOST (Australia Post, Australia Poste Parcel)
DEUTSCHEPOST (Deutsche Post Identcode, Deutsche Post Leitcode)
DUTCHKIX (KIX-CODE)
ITALIANPOST25 (ITALIAN POST 25)
RM4SCC (ROYALMAIL RM4SCC)
POSTNET (POSTNET)
SINGAPOREPOST (SINGAPORE POST)
SWISSPOSTPARCEL (SWISS POST PARCEL)
DOTCODE (DOTCODE)
INTERLEAVED2OF5 (INTERLEAVED 2 OF 5)
DATALOGIC2OF5 (DATALOGIC 2 OF 5)
IATA2OF5 (IATA 2 OF 5)
MATRIX2OF5 (MATRIX 2 OF 5)
STANDARD2OF5 (STANDARD 2 OF 5)
ISBN (ISBN)
ISMN (ISMN)
ISSN (ISSN)
ITF (ITF-6, ITF-14)
PLANET (PLANET)