.NET APIs to Generate & Recognize Barcodes

Create, & recognize barcodes of linear, 2D and postal types from multiple images within any .NET application.

  Download Free Trial
Aspose.BarCode for .NET

Aspose.BarCode for .NET


Aspose.BarCode for .NET is a powerful library to generate & recognize 1D & 2D barcodes from multiple image types at any angle. Developers can easily add the barcode generation and scanning functionality to their .NET applications. It also allows exporting the generated barcodes to a verity of image formats in high quality.

Aspose.BarCode for .NET 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 with ease


Save to or load from stream or file


Encode & decode non-english characters in 2D types


Rotate barcode images at any angle


Scan barcodes from multi-page TIFF


Support for linear, 2D & postal symbologies

Supported Barcode Symbologies

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

API supported linear types include:

  • EAN 13
  • EAN 8
  • UPC A
  • UPC E
  • Interleaved 2 of 5
  • Standard 2 of 5
  • MSI
  • Code 11
  • Codabar
  • EAN 14 (SCC 14)
  • SSCC 18
  • ITF 14
  • Matrix 2 of 5
  • PZN
  • Code 128
  • Code 39 Extended
  • Code 39 Standard
  • Code 93 Extended
  • Code 16K
  • Code 93 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 types include:

  • PDF 417
  • Macro PDF 417
  • Micro PDF 417
  • Compact PDF 417 (Decode only)
  • DataMatrix
  • Aztec
  • QR
  • MicroQR
  • DotCode
  • MaxiCode
  • Italian Post 25
  • GS1DataMatrix
  • Code16K

Postal types include:

  • Postnet
  • Planet
  • USPS OneCode
  • Australia Post
  • Deutsche Post Identcode
  • Deutsche Post Leticode
  • RM4SCC
  • SingaporePost
  • AustralianPosteParcel
  • SwissPostParcel
  • UpcaGs1DatabarCoupon

Generate Barcodes

Barcode generator API allows you to easily create 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). Moreover, one can create two-dimensional barcodes like PDF 417, Data Matrix, Aztec, QR and Micro QR barcode etc in the same way as of one dimensional.

Barcode Generation - C#

 // The path to the documents directory.
string dataDir = "define-your-directory";
// Instantiate object and set differnt barcode properties
BarcodeGenerator  generator = new BarcodeGenerator (EncodeTypes.Code128, "1234567");
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);

Imaging, Rotation & Sizing Support

Aspose.BarCode for .NET allows the manipulation of 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.

Scanning Barcode

Barcode API contains another powerful feature to read or detect the most commonly used 1D and 2D barcodes, detecting them anywhere. Just few lines of code to detect the barcodes from the image.

Barcode Recognition - C#

using(BarCodeReader reader = new BarCodeReader(@"d:\template.jpg"))
        Console.WriteLine("Type: " + reader.GetCodeType());
        Console.WriteLine("CodeText: " + reader.GetCodeText());

What People Are Saying

Don't just take our word for it. See what users have to say about 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: