NetBarcode 1.8.3
See the version list below for details.
dotnet add package NetBarcode --version 1.8.3
NuGet\Install-Package NetBarcode -Version 1.8.3
<PackageReference Include="NetBarcode" Version="1.8.3" />
<PackageVersion Include="NetBarcode" Version="1.8.3" />
<PackageReference Include="NetBarcode" />
paket add NetBarcode --version 1.8.3
#r "nuget: NetBarcode, 1.8.3"
#:package NetBarcode@1.8.3
#addin nuget:?package=NetBarcode&version=1.8.3
#tool nuget:?package=NetBarcode&version=1.8.3
NetBarcode

Barcode generation library written in .NET Core compatible with .NET Standard 2.
Supported barcodes:
- CODE128
- CODE128 (automatic mode switching)
- CODE128 A/B/C
- EAN
- EAN-13
- EAN-8
- CODE11
- CODE39
- CODE39E
- CODE93
- Codabar
Install
On Nuget:
PM> Install-Package NetBarcode
.NET CLI
> dotnet add package NetBarcode
NuGet
https://www.nuget.org/packages/NetBarcode
Requirements
This library uses System.Drawing.Common which requires the following installed packages:
sudo apt install libc6-dev
sudo apt install libgdiplus
Mac
brew update
brew install mono-libgdiplus
Using
var barcode = new Barcode("543534"); // default: Code128
Change barcode type
var barcode = new Barcode("543534", Type.Code93);
Show label
var barcode = new Barcode("543534", Type.Code128, true);
Saving in a image file
var value = barcode.SaveImageFile("./path"); // default: ImageFormat.Jpeg
Change image format
var value = barcode.SaveImageFile("./path", ImageFormat.Png); // formats: Bmp, Gif, Jpeg, Png...
Get string with base64 image to use in HTML
var value = barcode.GetBase64Image();
To manipulate the image
var image = barcode.GetImage();
Version 1.5
ImageSharp was added in place of System.Drawing due to break of support from .NET 6, more information click here.
There is a small compatibility break only if you are manipulating the image with the GetImage method or customizing font and color. In these cases the namespaces have changed to SixLabors.ImageSharp.
License
NetBarcode is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. But please give this repository a ⭐️.
Donate
If you found it useful, please consider paying me a coffee.

| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- SixLabors.Fonts (>= 1.0.1)
- SixLabors.ImageSharp (>= 2.1.11)
- SixLabors.ImageSharp.Drawing (>= 1.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on NetBarcode:
| Package | Downloads |
|---|---|
|
Bastion.Statements.Api
Package Description |
|
|
Zideun.DFeBR.EmissorNFe
Novo framework para emissão e logística de documentos fiscais para a plataforma .NET, compatível com .NET Core e .NET 4.x |
|
|
Zeus.Net.NFe.Danfe.Html
Biblioteca para geração de DANFE em HTML da NF-e. |
|
|
DFeBR.EmissorNFe
Novo framework para emissão e logística de documentos fiscais para a plataforma .NET, compatível com .NET Core e .NET 4.x |
|
|
Kurumin.Core
Colletion libraries for Kurumin Solutions |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on NetBarcode:
| Repository | Stars |
|---|---|
|
ZeusAutomacao/DFe.NET
Biblioteca para Geração de NFe(2.0, 3.10 e 4.0) e NFCe(3.10 e 4.0) e consumo dos serviços necessários à sua manutenção, conforme descritos em http://www.nfe.fazenda.gov.br/portal/principal.aspx
|
|
|
Hercules-NET/ZeusFiscal
A Principal Biblioteca em C# para Emissão e Impressão de NFe, NFCe, MDF-e e CT-e
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-beta.1 | 24,861 | 7/12/2021 |
| 1.8.3 | 5,189 | 8/25/2025 |
| 1.8.2 | 38,107 | 3/6/2025 |
| 1.8.1 | 6,794 | 2/15/2025 |
| 1.8.0 | 12,001 | 1/10/2025 |
| 1.7.2 | 117,597 | 7/23/2024 |
| 1.7.1.1 | 157,566 | 4/18/2024 |
| 1.7.0 | 585,863 | 7/22/2022 |
| 1.6.0 | 9,185 | 6/20/2022 |
| 1.5.2 | 1,720 | 6/16/2022 |
| 1.5.0 | 12,960 | 5/20/2022 |
| 1.4.5 | 123,050 | 3/20/2022 |
| 1.4.4 | 141,416 | 9/25/2021 |
| 1.4.3 | 15,937 | 7/9/2021 |
| 1.4.2 | 629 | 7/9/2021 |
| 1.4.1 | 22,637 | 5/19/2021 |
| 1.4.0 | 228,407 | 12/30/2020 |
| 1.3.0 | 1,794 | 12/24/2020 |
| 1.2.0 | 1,747 | 12/24/2020 |
| 1.1.0 | 118,964 | 8/22/2020 |
| 1.0.8 | 103,026 | 3/17/2020 |
| 1.0.7 | 107,402 | 11/27/2018 |
| 1.0.6 | 6,944 | 9/1/2018 |
| 1.0.5 | 6,875 | 7/17/2018 |
| 1.0.2 | 1,621 | 7/10/2018 |
| 1.0.0 | 9,563 | 12/22/2017 |