BarCode 2023.3.2

.NET Standard 2.0
dotnet add package BarCode --version 2023.3.2
NuGet\Install-Package BarCode -Version 2023.3.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BarCode" Version="2023.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BarCode --version 2023.3.2
#r "nuget: BarCode, 2023.3.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BarCode as a Cake Addin
#addin nuget:?package=BarCode&version=2023.3.2

// Install BarCode as a Cake Tool
#tool nuget:?package=BarCode&version=2023.3.2

Nuget Installs Passed windows macOS linux docker aws microsoftazure livechat

IronBarcode - The C# Barcode & QR Code Library

IronBarcode NuGet Trial Banner Image

Get Started | Features | Code Examples | Licensing | Free Trial

IronBarcode is a library developed and maintained by Iron Software that helps C# Software Engineers to read & write Barcodes and QR Codes in .NET applications & websites. Reading or writing barcodes only requires a single line of code with IronBarcode.

IronBarcode excels at:

  • Read single or multiple Barcodes and QR Codes from images or PDFs.
  • Image correction for skewing, orientation, noise, low resolution, contrast etc.
  • Create barcodes and apply to images or PDF documents.
  • Embed barcodes into HTML documents.
  • Style Barcodes and add annotation text.
  • QR Code Writing allows adding of logos, colors, and advanced QR alignment.

IronBarcode has cross platform support compatibility with:

  • .NET 6 and .NET 5, Core 2x & 3x, Standard 2, and Framework 4x
  • Windows, macOS, Linux, Docker, Azure, and AWS

IronBarcode Cross Platform Compatibility Support Image

Additionally, our API reference and full licensing information can easily be found on our website.

Using IronBarcode

Installing the IronBarcode NuGet package is quick and easy, please install the package like this:

PM> Install-Package BarCode

Once installed, you can get started by adding using IronBarCode to the top of your C# code. Here is is sample Barcode Generating, Reading, and Saving example to get started:

using IronBarCode;

// Creating a barcode is as simple as:
var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8);

// Reading a barcode is easy with IronBarcode:
var resultFromFile = BarcodeReader.Read(@"file/barcode.png"); // From a file
var resultFromPdf = BarcodeReader.ReadPdf(@"file/mydocument.pdf"); // From PDF use ReadPdf

// After creating a barcode, we may choose to resize and save which is easily done with:
myBarcode.ResizeTo(400, 100);

Features Table

IronBarcode Features

The .NET IronBarcode Library reads and writes most Barcode and QR standards. These include code 39/93/128, UPC A/E, EAN 8/13, ITF, RSS 14 / Expanded, Databar, CodaBar, Aztec, Data Matrix, MaxiCode, PDF417, MSI, Plessey, USPS, and QR. The barcode result data includes type, text, binary data, page, and image file.

The barcode reading engine includes automatic image correction and barcode detection technology to take the pain out of locating and reading from imperfect scans. Multithreading, cropping, and batch scanning provides fast and accurate scanning of multi page documents.

Barcode writing API checks and verifies format, length, number, checksum to automatically avoid encoding errors. Barcode writer allows for styling, resizing, margins, borders, recoloring, and adding text annotations. Write to image, PDF or HTML file.

Supported Barcode Formats:
  • QR & 2D Matrix: QR (+ Styled QR), Aztec, Data Matrix, MaxiCode (Read Only) USPS IM Barcode (Read Only)
  • Modern Linear Barcodes: Code 39, Code 128, PDF417, Rss14 (Read Only), RSS Expanded (Read Only)
  • Older Linear Barcodes: UPC-A, UPC-E, EAN-8, EAN-13, Codabar, ITF, MSI, Plessey (Write Only)
Reading Barcodes:
  • Read from many image formats: Images (JPG, PNG, GIF, TIFF, SVG, BMP), Multipage GIF & TIFF, System.Drawing Objects, Streams, PDF, and more
  • Image Filters to improve image reading: Brightness, Contrast, Invert, Sharpen, and many more!
  • Set Accuracy & Performance: Single / Multi Barcode Reading, Specify Crop Regions, Set Output Format, Multithreading Support
  • Output to many data formats: Text Data, Numerical Data, Binary Data, Barcode Image
Writing Barcodes:
  • Write To Document Types: Image (jpg, png, gif, tiff, bmp), System.Drawing Objects, Streams, HTML (DataURI, file, or img), PDF (File, Stream, or Binary), Existing PDF (Stamp position)
  • Encoding Barcode Data: Text, urls, IDs, numbers, & binary data
  • Checking Fault Tolerance: Null Check, Checksums, Format Aware, Detailed Error messages, Custom QR Error Correction
  • Styling Barcodes: Resizing, Margins & Borders, Recoloring, Add text annotations, Add logos to QR

Licensing & Support available

For code examples, tutorials and documentation visit

For support please email us at

You can email us at for support directly from our code team. We offer licensing and extensive support for commercial deployment projects.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on BarCode:

Package Downloads



High level C# library for the easy creation of barcodes in PDF documents using PdfSharp.


Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on BarCode:

Repository Stars
Modular monolith in .NET Core
Version Downloads Last updated
2023.3.2 1,994 3/2/2023
2023.2.2 3,882 2/2/2023
2023.1.11395 4,916 1/6/2023
2022.11.10702 35,347 11/28/2022
2022.10.9871 13,583 10/18/2022
2022.9.8982 11,455 9/14/2022
2022.9.8979 1,415 9/13/2022
2022.9.8977 364 9/13/2022
2022.8.8024 13,372 8/9/2022
2022.7.7345 25,807 7/13/2022
2022.5.5918 12,222 5/27/2022
2022.3.0 31,362 3/10/2022
2021.12.21 20,262 12/21/2021
2021.11.0 16,842 10/29/2021
2021.9.0 28,370 8/24/2021
2021.6.3 18,513 6/9/2021
2020.12.2 52,572 12/8/2020
2020.6.0 57,215 6/3/2020
2020.5.0 9,764 4/22/2020 72,850 11/22/2018 3,850 11/9/2018 1,569 11/5/2018
4.0.1 2,324 10/12/2018

* Fixed an issue with the Code39 barcode reader where the UseCode39ExtendedMode property was not correctly decoding extended characters.
* Fixed an issue where setting the font color for barcode text annotations was not working correctly.
* Fixed a warning that was being thrown when using ReadingSpeed.Detail on certain PDF documents.
* Fixed a bug where duplicate barcodes were being ignored by the barcode reader.