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
WillowMedia.Common.Pdf.Barcode
Package Description
61
ZXing.Net.Bindings.ImageSharp
ZXing.Net Bindings for ImageSharp - use ImageSharp with ZXing.Net for barcode reading
41
WillowMedia.Common.Pdf.Barcode
Package Description
38
WillowMedia.Common.Pdf.Barcode
Package Description
34
WillowMedia.Common.Pdf.Barcode
Package Description
26
WillowMedia.Common.Pdf.Barcode
Package Description
25
WillowMedia.Common.Pdf.Barcode
Package Description
19
WillowMedia.Common.Pdf.Barcode
Package Description
18
WillowMedia.Common.Pdf.Barcode
Package Description
17
ZXing.Net.Bindings.ImageSharp
ZXing.Net Bindings for ImageSharp - use ImageSharp with ZXing.Net for barcode reading
15
WillowMedia.Common.Pdf.Barcode
Package Description
14
WillowMedia.Common.Pdf.Barcode
Package Description
11
WillowMedia.Common.Pdf.Barcode
Package Description
10
WillowMedia.Common.Pdf.Barcode
Package Description
7
WillowMedia.Common.Pdf.Barcode
Package Description
5
ZXing.Net.Bindings.ImageSharp
ZXing.Net Bindings for ImageSharp - use ImageSharp with ZXing.Net for barcode reading
5

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

.NET Framework 2.0

  • No dependencies.

.NET Standard 2.1

.NET Standard 2.0

.NET Standard 1.3

.NET Standard 1.1

.NET Standard 1.0

UAP 1.0

  • No dependencies.

.NETPortable 0.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

.NET Framework 2.0

  • No dependencies.

native 0.0

  • No dependencies.

Windows 8.0

  • No dependencies.

Windows 8.0

  • No dependencies.

WindowsPhone 8.0

  • No dependencies.

.NET Core 3.0

  • No dependencies.

Silverlight 4.0

  • No dependencies.

Silverlight 5.0

  • No dependencies.

Silverlight 4.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET 7.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET 5.0

  • No dependencies.

.NET Framework 4.8

  • No dependencies.

.NET Framework 4.7

  • No dependencies.

.NET Framework 4.6.1

  • No dependencies.

.NET Framework 4.5

  • No dependencies.

.NET Framework 4.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

Silverlight 3.0

  • No dependencies.

.NET Core 3.1

  • No dependencies.

Version Downloads Last updated
0.16.11 5 11/02/2025
0.16.10 39 06/03/2025
0.16.9 4 06/27/2025
0.16.8 4 06/27/2025
0.16.7 5 06/27/2025
0.16.6 4 06/27/2025
0.16.5 4 06/27/2025
0.16.4 4 06/27/2025
0.16.2 4 06/27/2025
0.16.1 4 06/27/2025
0.16.0 4 06/27/2025
0.15.0 4 06/27/2025
0.14.0.1 4 06/27/2025
0.14.0 4 06/27/2025
0.12.0 5 06/27/2025
0.11.0.1 4 06/27/2025
0.11.0 4 06/27/2025
0.10.0 4 06/27/2025
0.9.0 4 06/27/2025
0.8.0.1 4 06/27/2025
0.7.0 4 06/27/2025
0.6.0 4 06/27/2025
0.5.0 4 06/27/2025
0.4.0 4 06/27/2025
0.3.0 4 06/27/2025
0.2.0 4 06/27/2025
0.1.0 4 06/27/2025