How to Add a Logo to QR Codes
Adding a logo to your QR code transforms a standard pattern into a branded asset. Companies use logo-embedded QR codes on marketing materials, product packaging, and digital campaigns to reinforce brand recognition while maintaining full scannability.
IronQR supports embedding logos through the QrLogo class and the Logo property in QrStyleOptions. The QrLogo constructor accepts parameters for width, height, and corner radius, giving you control over how the logo appears.
In this guide, we'll show you how to embed a logo into your QR codes using IronQR in C#.
Quickstart: Add a Logo to a QR Code
Load a logo image, attach it to QrStyleOptions, and save the branded QR code.
-
Install IronQR with NuGet Package Manager
PM > Install-Package IronQR -
Copy and run this code snippet.
var qrCode = QrWriter.Write("https://example.com"); var logo = new QrLogo(AnyBitmap.FromFile("logo.png"), 50, 50, 5); var style = new QrStyleOptions { Logo = logo }; qrCode.Save(style).SaveAs("qr-with-logo.png"); -
Deploy to test on your live environment
Start using IronQR in your project today with a free trial
Minimal Workflow (5 steps)
- Download the C# library to create QR codes with embedded logos
- Load your logo image using
AnyBitmap.FromFile - Create a
QrLogowith size and corner radius parameters - Configure
QrStyleOptionswith theLogoproperty - Save the branded QR code using
SaveAs
Embed a Logo in a QR Code
To add a logo, load your image using AnyBitmap.FromFile, then create a QrLogo object specifying the width, height, and corner radius. Assign it to the Logo property in QrStyleOptions.
For best results, use a square logo with a transparent or white background. The corner radius parameter allows you to round the logo edges for a polished look.
:path=/static-assets/qr/content-code-examples/how-to/add-custom-logo-qr-code.cs
using IronQr;
using IronSoftware.Drawing;
// Load new logo image
AnyBitmap logo = AnyBitmap.FromFile("sample.png");
// Add new logo to QR code style options
QrStyleOptions styleOptions = new QrStyleOptions()
{
Logo = new QrLogo(logo, 0, 0, 10),
Dimensions = 500,
};
// Create QR code with URL data
QrCode qr = QrWriter.Write("https://ironsoftware.com/csharp/qr/");
// Save QR code as a bitmap
AnyBitmap qrImage = qr.Save(styleOptions);
// Save QR code bitmap as file
qrImage.SaveAs("qrURLWithLogo.png");
Imports IronQr
Imports IronSoftware.Drawing
' Load new logo image
Dim logo As AnyBitmap = AnyBitmap.FromFile("sample.png")
' Add new logo to QR code style options
Dim styleOptions As New QrStyleOptions() With {
.Logo = New QrLogo(logo, 0, 0, 10),
.Dimensions = 500
}
' Create QR code with URL data
Dim qr As QrCode = QrWriter.Write("https://ironsoftware.com/csharp/qr/")
' Save QR code as a bitmap
Dim qrImage As AnyBitmap = qr.Save(styleOptions)
' Save QR code bitmap as file
qrImage.SaveAs("qrURLWithLogo.png")
Output
What's Next?
Once your logo is in place, consider adjusting the QR code colors to match your brand palette, adding margins for cleaner scanning at smaller sizes, or setting error correction levels to ensure the code stays readable with a larger logo overlay.

