Why Aspose.BarCode for .NET?

Production input is rarely clean. Aspose.BarCode for .NET is designed to decode barcodes from noisy scans, low-contrast prints, skewed photos, and partially damaged labels. Use QualitySettings presets to balance speed and tolerance, or fine-tune options for difficult images.

Standards? Covered.

Aspose.BarCode for .NET supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.

Matrix / 2D Codes

  • QR Code, MicroQR, rMQR
  • Data Matrix, Industrial Data Matrix (DPM)
  • Aztec
  • Han Xin
  • MaxiCode
  • DotCode

Linear / 1D Codes

  • UPCA, UPCE
  • EAN13, EAN14, EAN8
  • Code 128
  • DataBar
  • ITF
  • Postal

Industry & Composite Codes

  • GS1
  • ECI
  • Composite barcodes
  • HIBC
  • SwissQR
  • Royal Mailmark

Platform independence

Aspose.BarCode for .NET runs on Windows, Linux, and macOS with .NET Framework or modern .NET. It can also be used in .NET MAUI applications that target iOS, Android, and Tizen. See the documentation for detailed system requirements.

Microsoft Windows
Linux
Android
iOS
macOS
Tizen OS
ReSharper
VS Code
NuGet
GitHub
Visual Studio

Live Code Demo

Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.


/** Initialize BarcodeGenerator */ var gen = new BarcodeGenerator(EncodeTypes.QR, "1234567"); /** Set generation parameters */ gen.Parameters.Barcode.XDimension.Pixels = 7; gen.Parameters.Border.Color = Color.FromArgb(0xff000000); gen.Parameters.Border.Width.Pixels = 7; /** Generate and save Barcode image */ gen.Save("image.png", BarCodeImageFormat.Png);

/** Initialize BarCodeReader */ var reader = new BarCodeReader("image.png", DecodeType.QR); /** Set recognition quality */ reader.QualitySettings = QualitySettings.HighPerformance; /** Recognize barcodes and output results */ var res = reader.ReadBarCodes(); Console.WriteLine($"Recognized {res.Length} barcode(s)"); foreach (BarCodeResult r in res)     Console.WriteLine($"{r.CodeTypeName}: {r.CodeText}");

Unlimited possibilities

Aspose.BarCode for .NET helps you build reliable barcode workflows in C# for documents, labels, and automated processing. Generate print-ready barcodes with precise sizing, then decode from images and PDFs in services, desktop apps, or mobile projects.

With a practical feature set for production use, you can:

  • Generate and recognize over 80 barcode types
  • Work with PDF, SVG, EMF, and common image formats
  • Detect barcodes in low-resolution, rotated, or distorted images
  • Fine-tune size, margins, rotation, captions, and resolution
  • Add barcodes to reports, documents, and UI screens

Features and capabilities

Aspose.BarCode for .NET is a powerful development library to generate & recognize 1D & 2D barcodes from various image types at any angle. This API allows exporting generated barcodes to different high-quality image formats, enables modifying the appearance of generated barcodes and their parameters, such as background color, bar color, rotation angle, x-dimension, image quality, resolution, captions, size, and many others. It also provides rich barcode detecting and reading functionality and supports over 80 barcode types.

Feature icon

Save barcode labels in various formats

Feature icon

Recognize from stream or file

Feature icon

Encode & decode characters (non-english) in 2D types

Feature icon

Rotate barcode images at any angle

Feature icon

Scan barcodes from multi-page TIFF and PDF files with Aspose.PDF

Feature icon

Support for linear, 2D and postal symbologies