Generate and recognize 1D and 2D barcodes with .NET APIs

Generate and recognize 1D and 2D barcodes with .NET APIs

Develop .NET applications that have the ability to generate and recognize 1- and 2-dimensional barcodes for your enterprise






Aspose.BarCode for .NET is a set of APIs for generating 1D and 2D barcodes and recognizing them from a variety of image types and from any angle. It is written in C# managed code and thus allows developers to easily add barcode generation and recognition functionality to the applications they develop.

Aspose.BarCode for .NET can not only generate barcodes, but can also upload generated barcodes in a wide variety of graphic formats with high quality. What’s more, developers can easily manipulate the appearance of the generated barcodes, such as the background color, the color of the image itself, the image quality, the angle of inclination, the width of the barcode image, the caption, the size, the resolution, and more.


Provides an overview of the recognition and generation capabilities of Aspose.BarCode for .NET.


Barcode Recognition Barcode generation
  • Linear, 2D and postal barcodes
  • Directly from stream or image
  • Get barcode orientation
  • Non-English character recognition

for .NET


  • Linear, 2D and postal barcodes
  • Save to stream or image
  • Set custom size
  • Encode and apply characters other than English
Print Barcode Types
  • Indirect barcode printing
  • Linear barcode types
  • 2 dimensional barcode types


Aspose.BarCode for .NET works with most widely used graphics formats.


⇑⇓  Input/Output Output only  
  • JPEG
  • TIFF
  • PNG
  • BMP
  • GIF
  • EXIF

for .NET

  • EMF
  • SVG


You can use Aspose.BarCode for .NET to create any type of 32-bit or 64-bit . NET applications, including ASP.NET, WinForms, WPF, .NET Standard, and others.


COM Interop Framework .NET
PHP, VBScript, Delphi, C++ 

for .NET


.NET Framework

.NET Standard


Advanced API capabilities



Print barcode labels Save the generated barcode image to a stream or file Recognize barcodes from a stream or image file
Encoding and decoding non-English characters in 2D barcodes Barcode size control Rotate the barcode image to any angle
Reading from Multi-Page TIFF Use recognition features to support your business processes Add recognition to promote third-party services
Insert into documents to improve document traceability Improve the circulation of application documents by adding barcode functionality


Supported barcode symbology
Aspose.BarCode for .NET supports a wide range of linear, 2D, and mail barcode symbology.

The API supports the following types of linear barcodes:

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

2-dimensional barcode types, including:

  • PDF417 (de) encoding
  • MacroPDF417 (de) encoding
  • MicroPDF417 (de) encoding
  • CompactPDF417 (decoding only)
  • DataMatrix (de) encoding
  • Aztec (de) encoding
  • QR (de) encoding
  • MicroQR (de) encoding
  • Italian Post 25 (de) encoding
  • GS1DataMatrix (de) encoding
  • Code16K (de) encoding

Types of postal barcodes, including:

  • Postnet encoding
  • Planet encoding
  • USPS OneCode (de) encoding
  • Australia Post (de) coding
  • Deutsche Post Identcode (de) encoding
  • Deutsche Post Leticode (de) encoding
  • RM4SCC (de) encoding
  • SingaporePost (de) encoding
  • AustralianPosteParcel (de) encoding
  • SwissPostParcel (de) encoding

Support for working with images, rotating and resizing
Aspose.BarCode for .NET allows you to easily manipulate the image frame, frame color, style, indentation, and width, as well as the ability to modify the color of the image, the background color, and the color of the strokes themselves in the barcode. You can also rotate the barcode image to any angle and create high-quality anti-aliasing images. In addition to this, you can set a custom resolution for the generated images.

The .NET Barcode API gives you the ability to set the size in inches and millimeters, as well as automatically scale the image. With this API, you can create images in the desired format such as BMP, JPEG, GIF, PNG, TIFF, WMF, and the like.

Custom symbology and appearance
With the .NET Shrihcode API, you can easily customize barcodes through the specification of different kinds of symbology, text code settings (the data will be encoded into the barcode image), and appearance parameters such as font, background, character color, as well as alignment and position (hidden, top, bottom). You can also easily control title text settings such as font, background color, character color, alignment, and position (hidden, top, bottom).

WPF Support
Aspose.BarCode for .NET supports the WPF framework, so you can generate high-quality vector barcode images from WPF applications.

GUI-based visual editor for barcode inspection
Aspose.BarCode for .NET also provides a GUI-based visual editor for controlling barcode from Window forms, Web forms, and WPF applications. Almost all parameters such as text code, symbology, title, character color, background color – all this can be edited through the above WYSIWYGl.