QRCoder 1.4.3

.NET 5.0 .NET Standard 1.3 .NET Framework 3.5
dotnet add package QRCoder --version 1.4.3
NuGet\Install-Package QRCoder -Version 1.4.3
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="QRCoder" Version="1.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QRCoder --version 1.4.3
#r "nuget: QRCoder, 1.4.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install QRCoder as a Cake Addin
#addin nuget:?package=QRCoder&version=1.4.3

// Install QRCoder as a Cake Tool
#tool nuget:?package=QRCoder&version=1.4.3


QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to other libraries and is available as .NET Framework and .NET Core PCL version on NuGet.


👉 Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.

Release Notes

The release notes for the current and all past releases can be read here: 📄 Release Notes

Usage / Quick start

You only need four lines of code, to generate and view your first QR code.

using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
using (QRCode qrCode = new QRCode(qrCodeData))
    Bitmap qrCodeImage = qrCode.GetGraphic(20);

Optional parameters and overloads

The GetGraphics-method has some more overloads. The first two enable you to set the color of the QR code graphic. One uses Color-class-types, the other HTML hex color notation.

//Set color by using Color-class types
Bitmap qrCodeImage = qrCode.GetGraphic(20, Color.DarkRed, Color.PaleGreen, true);

//Set color by using HTML hex color notation
Bitmap qrCodeImage = qrCode.GetGraphic(20, "#000ff0", "#0ff000");

The other overload enables you to render a logo/image in the center of the QR code.

Bitmap qrCodeImage = qrCode.GetGraphic(20, Color.Black, Color.White, (Bitmap)Bitmap.FromFile("C:\\myimage.png"));

There are a plenty of other options. So feel free to read more on that in our wiki: Wiki: How to use QRCoder

Help & Issues

If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues

In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions

QRCoder is a project by Raffael Herrmann and was first released in 10/2013. It's licensed under the MIT license.

Product Versions
.NET net5.0 net5.0-windows net5.0-windows7.0 net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net6.0-windows7.0 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
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 (236)

Showing the top 5 NuGet packages that depend on QRCoder:

Package Downloads

Google Authenticator Two-Factor Authentication Library (Not officially affiliated with Google.)


Application Component for the Alliance Business Suite.


1、基础数据操作通用抽象库 2、.netore升级到3.1 2、补充nodejs 等操作 3、添加缓存ICacheMapperDbProvider, 处理文件缓存导致文件拒绝访问问题


Util.Tools.QrCode是Util应用框架的二维码操作类库。 Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。


Plz don't install.

GitHub repositories (39)

Showing the top 5 popular GitHub repositories that depend on QRCoder:

Repository Stars
Xray,V2ray,Trojan,NaiveProxy, Trojan-Go, ShadowsocksR(SSR),Shadowsocks-libev及相关插件,MTProto+TLS 一键安装工具,windows下用(一键科学上网)
Bilibili Downloader. 一款命令行式哔哩哔哩下载器.
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
Pokémon Save File Editor
Version Downloads Last updated
1.4.3 2,653,184 12/12/2021
1.4.2 569,598 11/23/2021
1.4.1 3,759,997 11/17/2020
1.3.9 2,620,429 4/8/2020
1.3.7 5,364 4/7/2020
1.3.6 2,115,746 6/25/2019
1.3.5 1,660,669 11/23/2018
1.3.4 64,729 11/17/2018
1.3.3 682,834 4/22/2018
1.3.2 511,721 10/21/2017
1.3.1 16,013 10/3/2017
1.3.0 59,948 9/23/2017
1.2.9 126,964 6/15/2017
1.2.8 26,665 5/18/2017
1.2.7 22,520 4/30/2017
1.2.6 55,111 3/16/2017
1.2.5 45,928 1/28/2017
1.2.4 2,201 1/26/2017
1.2.3 21,066 12/10/2016
1.2.2 40,893 9/13/2016
1.2.1 1,752 9/10/2016
1.2.0 5,911 9/8/2016
1.1.9 16,914 7/7/2016
1.1.8 2,116 6/27/2016
1.1.7 65,206 5/18/2016
1.1.6 1,591 5/18/2016
1.1.5 5,072 5/16/2016