ZXing.Net 0.16.11

About

A library which supports decoding and generating of barcodes (like QR Code, PDF 417, EAN, UPC, Aztec, Data Matrix, Codabar) within images.

How to Use

The source code repository includes small examples for Windows Forms, Silverlight, Windows Phone and other project types.

The following example works with the classic .Net framework until version 4.8.1:

// create a barcode reader instance
IBarcodeReader reader = new BarcodeReader();
// load a bitmap
var barcodeBitmap = (Bitmap)Image.FromFile("C:\\sample-barcode-image.png");
// detect and decode the barcode inside the bitmap
var result = reader.Decode(barcodeBitmap);
// do something with the result
if (result != null)
{
   txtDecoderType.Text = result.BarcodeFormat.ToString();
   txtDecoderContent.Text = result.Text;
}

If you want to try the sample code above within a project which target .Net Standard or .Net 5.0 or higher then you have to add one of the additional nuget package for a specific image library: https://www.nuget.org/packages?q=ZXing.Bindings The main package of ZXing.Net for such platforms only contains the core classes which are not dependent on a specific assembly for image formats.

// example shows a simple decoding snippet as a .Net 8.0 console appliation which uses the ZXing.Windows.Compatibility package
using System.Drawing;
using ZXing.Windows.Compatibility;

// create a barcode reader instance
var reader = new BarcodeReader();
// load a bitmap
var barcodeBitmap = (Bitmap)Image.FromFile("C:\\sample-barcode-image.png");
// detect and decode the barcode inside the bitmap
var result = reader.Decode(barcodeBitmap);
// do something with the result
if (result != null)
{
    Console.WriteLine(result.BarcodeFormat.ToString());
    Console.WriteLine(result.Text);
}
else
{
    Console.WriteLine("No barcode found");
}

There are several packages which can be used with different image libraries in combination with ZXing.Net. https://www.nuget.org/packages?q=ZXing.Bindings

Feedback

Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on ZXing.Net.

Packages Downloads
ZXing.Net.Bindings.ImageSharp.V2
ZXing.Net Bindings for ImageSharp - use ImageSharp 2.0 with ZXing.Net for barcode reading
4
ZXing.Net.Bindings.ImageSharp.V2
ZXing.Net Bindings for ImageSharp - use ImageSharp 2.0 with ZXing.Net for barcode reading
1

  • changes of the java version are reflected until 2025/10/25
  • small bug fixes and improvements

.NET Framework 2.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

.NET Framework 4.0

  • No dependencies.

.NET Framework 4.5

  • No dependencies.

.NET Framework 4.6.1

  • No dependencies.

.NET Framework 4.7

  • No dependencies.

.NET Framework 4.8

  • No dependencies.

.NET 5.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET 7.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

Silverlight 4.0

  • No dependencies.

Silverlight 5.0

  • No dependencies.

Silverlight 3.0

  • No dependencies.

Silverlight 4.0

  • No dependencies.

WindowsPhone 8.0

  • No dependencies.

Windows 8.0

  • No dependencies.

Windows 8.0

  • No dependencies.

native 0.0

  • No dependencies.

.NET Framework 2.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

.NETPortable 0.0

  • No dependencies.

UAP 1.0

  • No dependencies.

.NET Standard 1.0

.NET Standard 1.1

.NET Standard 1.3

.NET Standard 2.0

.NET Standard 2.1

.NET Core 3.0

  • No dependencies.

.NET Core 3.1

  • No dependencies.

Version Downloads Last updated
0.16.11 1 11/03/2025
0.16.10 1 11/03/2025
0.16.9 1 11/03/2025
0.16.8 1 11/03/2025
0.16.7 1 11/03/2025
0.16.6 2 10/28/2025
0.16.5 1 11/03/2025
0.16.4 1 11/03/2025
0.16.2 1 11/03/2025
0.16.1 1 11/03/2025
0.16.0 1 11/03/2025
0.15.0 1 11/03/2025
0.14.0.1 1 11/04/2025
0.14.0 1 11/03/2025
0.12.0 0 09/24/2013
0.11.0.1 1 11/04/2025
0.11.0 1 11/03/2025
0.10.0 1 11/03/2025
0.9.0 1 11/04/2025
0.8.0.1 1 11/04/2025
0.7.0 1 11/04/2025
0.6.0 1 11/04/2025
0.5.0 1 11/04/2025
0.4.0 1 11/04/2025
0.3.0 1 11/04/2025
0.2.0 1 11/04/2025
0.1.0 1 11/04/2025