.NET API to generate and recognize 1D and 2D barcodes

Develop .NET applications having the capabilities to generate or recognize enterprise-level 1D and 2D barcode types.

  Download Free Trial
Aspose.BarCode for .NET

Aspose.BarCode for .NET


Aspose.BarCode for .NET is a set of barcode APIs to generate and recognize 1D & 2D barcodes from multiple image types at any angle. It is written in managed C# thus allowing the developers to easily add the barcode generation and recognition functionality to their .NET applications.

Aspose.BarCode for .NET not only creates barcodes but also can export the generated barcodes to a verity of image formats in high quality. Moreover, the developers can easily manipulate the appearance of the generated barcodes such as background color, bar color, image quality, rotation angle, x-dimension, captions, size, resolution and much more.


Advanced Barcode API Features



Print barcode labels


Save generated barcode images to stream or file


Recognize barcodes from stream or image file


Encode & decode non-english characters in 2D barcodes


Control barcode size


Rotate barcode images to any angle


Read from multi-page TIFF


Use the recognition functions to drive your real-life work processes


Add recognition to promote 3rd party services


Support for linear, 2D & postal symbologies


Embed in documents to aid traceability


Enhance application workflow by adding barcode functionality


Interpolation AutoSize mode support for renderers

Supported Barcode Symbologies

Aspose.BarCode for .NET supports for a large number of linear, 2D and postal bar code symbologies.

API supported linear barcode types include:

  • EAN13 (Encode, decode)
  • EAN8 (Encode, decode)
  • UPCA (Encode, decode)
  • UPCE (Encode, decode)
  • Interleaved2of5 (Encode, decode)
  • Standard2of5 (Encode, decode)
  • MSI (Encode, decode)
  • Code11 (Encode, decode)
  • Codabar (Encode, decode)
  • EAN14(SCC14) (Encode, decode)
  • SSCC18 (Encode, decode)
  • ITF14 (Encode, decode)
  • Matrix 2 of 5 (Encode, decode)
  • PZN (Encode, decode)
  • Code128 (Encode, decode)
  • Code39 Extended (Encode, decode)
  • Code39 Standard (Encode, decode)
  • Code93 Extended (Encode, decode)
  • Code16K
  • Code93 Standard (Encode, decode)
  • IATA 2 of 5 (Encode, decode)
  • OPC (Encode, decode)
  • GS1Code128 (Encode, decode)
  • ISBN (Encode, decode)
  • ISMN (Encode, decode)
  • ISSN (Encode, decode)
  • ITF6 (Encode, decode)
  • VIN (Encode, decode)
  • Pharmacode (Encode, decode)
  • DatabarOmniDirectional (Encode, decode)
  • DatabarTruncated (Encode, decode)
  • DatabarLimited (Encode, decode)
  • DatabarExpanded (Encode, decode)
  • DatabarStackedOmniDirectional (Encode, decode)
  • DatabarExpandedStacked (Encode, decode)
  • DatabarStacked (Encode, decode)
  • PatchCode (Encode, Decode)
  • Supplement (Decode)

2D barcode types include:

  • PDF417 (Encode, decode)
  • MacroPDF417 (Encode, decode)
  • MicroPDF417 (Encode, decode)
  • CompactPDF417 (Decode)
  • DataMatrix (Encode, decode)
  • Aztec (Encode, decode)
  • QR (Encode, decode)
  • MicroQR (Encode, decode)
  • DotCode
  • MaxiCode
  • Italian Post 25 (Encode, decode)
  • GS1DataMatrix (Encode, decode)
  • Code16K (Encode, decode)

Postal barcode types include:

  • Postnet (Encode, decode)
  • Planet (Encode, decode)
  • USPS OneCode (Encode, decode)
  • Australia Post (Encode, decode)
  • Deutsche Post Identcode (Encode, decode)
  • Deutsche Post Leticode (Encode, decode)
  • RM4SCC (Encode, decode)
  • SingaporePost (Encode, decode)
  • AustralianPosteParcel (Encode, decode)
  • SwissPostParcel (Encode, decode)
  • UpcaGs1DatabarCoupon

Imaging, Rotation & Sizing Support

Aspose.BarCode for .NET allows the manipulate of barcode label borders, border colors, style, margins and width. It also provides the ability to modify image color, background color and bar color. You can also rotate barcode images to any angle and produce high quality images with anti-aliasing. In addition to this, you can set customized resolutions for the resultant images while saving them to any of the supported image formats.

Set barcode image resolution & rotation - C#

// set code text & encoding type
using (BarCodeGenerator generator = newBarCodeGenerator(Aspose.BarCode.Generation.EncodeTypes.QR, "1234567")) {   	
	// set image resolution
	generator.Resolution = 300;
	// set image rotation
	generator.RotationAngle = 45;

Customizing Symbologies & Appearance

.NET barcode API allows you to easily customize the barcodes by specifying different kinds of symbologies, setting code text (data to be encoded to barcode image) and appearance related properties like font, background color, foreground color, as well as alignment and location (hide, above, below). You can also easily manage caption settings such as font, background color, foreground color, alignment and location (hide, above, below).

Customize barcode label's appearance - C#

// set code text & encoding type
using (BarCodeGenerator generator = newBarCodeGenerator(Aspose.BarCode.Generation.EncodeTypes.Code128, "1234567")){
	// format code text
	generator.CodeTextStyle.Color = System.Drawing.Color.Red;
	generator.CodeTextStyle.Location = CodeLocation.Above;
	generator.CodeTextStyle.Font.FamilyName = "Arial";

What People Are Saying

Don't just take our word for it. See what users have to say about Aspose.BarCode APIs.

View Case Studies

Support and Learning Resources


Aspose.BarCode offers individual Barcode generation and recognition APIs for other popular development environments as listed below: