Genocs.QRCodeLibrary
7.0.0
Requires NuGet 5.0.0 or higher.
dotnet add package Genocs.QRCodeLibrary --version 7.0.0
NuGet\Install-Package Genocs.QRCodeLibrary -Version 7.0.0
<PackageReference Include="Genocs.QRCodeLibrary" Version="7.0.0" />
<PackageVersion Include="Genocs.QRCodeLibrary" Version="7.0.0" />
<PackageReference Include="Genocs.QRCodeLibrary" />
paket add Genocs.QRCodeLibrary --version 7.0.0
#r "nuget: Genocs.QRCodeLibrary, 7.0.0"
#:package Genocs.QRCodeLibrary@7.0.0
#addin nuget:?package=Genocs.QRCodeLibrary&version=7.0.0
#tool nuget:?package=Genocs.QRCodeLibrary&version=7.0.0
Genocs QRCode Library

Encode QR codes as SkiaSharp images, SVG, PNG bytes, and related formats. Optional image decode is included. Supports net10.0, net9.0, and net8.0.
Installation
dotnet add package Genocs.QRCodeLibrary
Getting Started
Use this package to build a QR module matrix with QRCodeGenerator, then render it with a format-specific class (QRCode, SvgQRCode, PngByteQRCode, and others). Payload helpers under PayloadGenerator produce structured strings (Wi-Fi, vCard, Girocode, and more) that you pass into CreateQrCode.
Rendering uses SkiaSharp and does not depend on System.Drawing.Common.
using Genocs.QRCodeLibrary.Encoder;
using SkiaSharp;
using var generator = new QRCodeGenerator();
using QRCodeData data = generator.CreateQrCode("Hello, World!", QRCodeGenerator.ECCLevel.M);
using var qrCode = new QRCode(data);
using SKImage image = qrCode.GetGraphic(20, SKColors.Black, SKColors.White, drawQuietZones: true);
using var stream = File.OpenWrite("qrcode.png");
image.Encode(SKEncodedImageFormat.Png, 100).SaveTo(stream);
To read a QR image, use QRDecoder.ImageDecoder(SKImage). Decode is experimental: crisp generated PNGs are covered by tests; camera-style JPEGs are not a supported path yet.
Avoid the GetGraphic overload that takes an icon or logo overlay.
Main Entry Points
QRCodeGeneratorQRCode/QRCode.GetGraphicSvgQRCodePngByteQRCode/BitmapByteQRCode/Base64QRCodePayloadGeneratorQRDecoder.ImageDecoder
Warning Policy
This package follows the quality gate in build-and-test.yml:
- Libraries must build for
net10.0,net9.0, andnet8.0. - Unit tests must pass before merging changes.
Release Notes
- CHANGELOG: https://github.com/Genocs/qrcode/blob/main/CHANGELOG.md
- Releases: https://github.com/Genocs/qrcode/releases
Community
- Discord @genocs
- Issues: github.com/Genocs/qrcode/issues
Support
- Documentation Portal: https://genocs-blog.netlify.app/
- Documentation: https://github.com/Genocs/qrcode/tree/main/docs
- Repository: https://github.com/Genocs/qrcode
If this project helped you:
- Star the repository
- Open issues with scanner samples (image + expected payload)
- Buy me a coffee
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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 is compatible. 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. |
-
net10.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
-
net8.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
-
net9.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.0.0 | 97 | 10/10/2026 |
| 5.0.2 | 86,329 | 5/3/2024 |
| 5.0.1 | 11,653 | 4/4/2024 |
| 5.0.0 | 335 | 4/4/2024 |
| 3.1.0 | 33,251 | 3/30/2022 |
| 3.0.73 | 670 | 3/30/2022 |
| 3.0.72 | 659 | 3/30/2022 |
| 3.0.0 | 85 | 10/10/2026 |
| 2.0.71 | 668 | 3/30/2022 |
| 2.0.70 | 660 | 3/30/2022 |
| 2.0.69 | 1,225 | 1/20/2022 |
| 2.0.68 | 573 | 1/2/2022 |
| 1.1.1 | 565 | 12/4/2021 |
| 1.0.67 | 531 | 1/2/2022 |
| 1.0.66 | 486 | 1/2/2022 |
| 1.0.65 | 564 | 1/2/2022 |
| 1.0.2 | 835 | 9/30/2020 |
| 1.0.1 | 781 | 2/5/2020 |
The change log and breaking changes are listed here.
https://github.com/Genocs/qrcode/releases
