Generate QR Codes & Barcodes
Without Native Graphics Dependencies
CodeGlyphX is a pure-managed .NET library for encoding and decoding QR codes, Data Matrix, PDF417, Aztec, and common 1D barcode formats. No System.Drawing, SkiaSharp, or ImageSharp.
dotnet add package CodeGlyphX Barcode Formats
Output Formats
Native Dependencies
Platforms
Built for Modern .NET Development
Pure-managed encoding, rendering, and supported decoding paths with explicit limits.
No Native Graphics Stack
No System.Drawing, SkiaSharp, or ImageSharp required. Pure managed code that deploys anywhere without native library headaches.
Encode & Decode
Generate codes and decode supported symbols from PNG, JPEG, BMP, GIF, and other documented image formats.
2D Codes
QR Code, Micro QR, Data Matrix, PDF417, and Aztec with full ECI, Kanji, structured append, and FNC1/GS1 support.
1D Barcodes
Code 128, GS1-128, Code 39, Code 93, Codabar, MSI, Plessey, EAN-8/13, UPC-A/E, ITF-14, and more.
Multiple Outputs
Render to PNG, JPEG, BMP, SVG, SVGZ, PDF, EPS, HTML, ASCII art, and exotic formats like PPM, PBM, TGA, ICO, XBM, XPM.
AOT & Trim Ready
CI publishes and executes a real .NET 8 NativeAOT consumer using the public APIs.
Cross-Platform
CI builds and tests Windows, Linux, and macOS. Targets .NET 8, .NET 10, .NET Standard 2.0, and .NET Framework 4.7.2.
Payment Helpers
Built-in support for SEPA Girocode, Swiss QR Bill, BezahlCode, UPI, and cryptocurrency addresses.
OTP Support
Generate otpauth:// TOTP and HOTP codes compatible with Google Authenticator, Microsoft Authenticator, and Authy.
Style Boards Built with CodeGlyphX
Curated styles generated by the library itself. Crisp, scalable, and ready for big screens.
Supported Barcode Families
From retail EAN codes to industrial Data Matrix, with the exact formats documented below.
2D Matrix Codes
1D Linear Barcodes
Payload Types
One Line of Code
Use one extension-based save path across supported formats.
using System.IO; using CodeGlyphX; // QR Code - one liner QR.Save("https://evotec.xyz", "website.png"); QR.Save("https://evotec.xyz", "website.svg"); QR.Save("https://evotec.xyz", "website.pdf"); // Barcodes Barcode.Save(BarcodeType.Code128, "PRODUCT-12345", "barcode.png"); Barcode.Save(BarcodeType.EAN, "5901234123457", "ean.png"); // 2D codes DataMatrixCode.Save("Serial: ABC123", "datamatrix.png"); Pdf417Code.Save("Document ID: 98765", "pdf417.png"); AztecCode.Save("Ticket: CONF-2024", "aztec.png"); // Decode from image if (QrImageDecoder.TryDecodeImage(File.ReadAllBytes("qr.png"), out var result)) { Console.WriteLine(result.Text); }
More Than Just Text
Built-in helpers for WiFi, contacts, payments, authentication, and more.
using CodeGlyphX; using CodeGlyphX.Payloads; // WiFi configuration QR.Save(QrPayloads.Wifi("MyNetwork", "SecurePassword123"), "wifi.png"); // 2FA / OTP codes (Google Authenticator, Authy, etc.) QR.Save(QrPayloads.OneTimePassword( OtpAuthType.Totp, "JBSWY3DPEHPK3PXP", label: "user@example.com", issuer: "MyApp" ), "otp.png"); // Contact card QR.Save(QrPayload.VCard( firstName: "Przemyslaw", lastName: "Klys", email: "contact@evotec.pl", organization: "Evotec Services" ), "contact.png"); // SEPA payment (European bank transfer) QR.Save(QrPayloads.Girocode( iban: "DE89370400440532013000", bic: "COBADEFFXXX", name: "Evotec Services", amount: 99.99m, remittanceInformation: "Invoice 2024-001" ), "payment.png");
Ready to Get Started?
Install CodeGlyphX via NuGet and start generating barcodes in minutes. No configuration, no native dependencies, just pure .NET.
CodeGlyphX is developed and maintained by Przemyslaw Klys at Evotec Services sp. z o.o.
We build open-source tools for the .NET ecosystem, including PowerShell modules, libraries, and developer utilities. Check out our other projects on our GitHub organization.