.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 class 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 barcodes


Rotate barcode images at any angle


Scan barcodes from multi-page TIFF


Support for linear, 2D & postal symbologies

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

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 pdf417, Datamatrix, 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 barcode 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 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.

Scanning Barocde

Barcode API contains another powerful feature to read or recognize 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("BarCode Type: " + reader.GetCodeType());
        Console.WriteLine("BarCode CodeText: " + reader.GetCodeText());

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: