.NET APIs to Generate and Recognize 1D & 2D Barcodes

Create, Read and Recognize Barcodes of Linear, 2D and Postal types from multiple images within any .NET applications.

  Download Free Trial
Aspose.BarCode for .NET

Aspose.BarCode for .NET


Aspose.BarCode for .NET is a powerful API to generate and recognize 1D & 2D barcodes from multiple image types at any angle. Developers can easily add the barcode generation and recognition functionality as well as export the generated barcodes to a verity of image formats in high quality in their .NET applications.

Aspose.BarCode for .NET API supports to 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. Moreover, API supports multiple types of recognition and imaging features as well as different types of symbologies.


Advanced .NET 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


Major refactoring of generated image layout


Add termination by Timeout support for internal imaging and recognition filters


Reverse target scanning for Code39 processor


New Barcode subsets to DecodeType


Read all BarCodes from TIFF images.


Added MaxiCode and DotCode renderer.

Supported Barcode Symbologies

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

API supported linear barcode types include:

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

2D barcode types include:

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

Postal barcode types include:

  • Postnet
  • Planet
  • USPS OneCode
  • Australia Post
  • Deutsche Post Identcode
  • Deutsche Post Leticode
  • RM4SCC
  • SingaporePost
  • AustralianPosteParcel
  • SwissPostParcel
  • 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 = new BarCodeGenerator(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 = new BarCodeGenerator(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"; generator.Save("BarCode.jpg"); }

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: