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 CodeLoad a logo image, attach it to QrStyleOptions, and save the branded QR code.
-
1Install IronQR with NuGet Package Manager
-
2Copy 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");C# -
3Deploy 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.
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.
Frequently Asked Questions
How do I add a logo to a QR code using IronQR?
You can add a logo to a QR code by using IronQR's QrLogo class and the Logo property in QrStyleOptions. Load your logo image, create a QrLogo object with size parameters, and assign it to the QrStyleOptions before saving your QR code.
What are the advantages of embedding a logo in a QR code?
Embedding a logo in a QR code turns it into a branded asset, enhancing brand recognition across marketing materials, product packaging, and digital campaigns while maintaining its scannability.
Can I control the appearance of the embedded logo in the QR code?
Yes, IronQR allows you to control the appearance of the embedded logo with the QrLogo class, which accepts parameters for width, height, and corner radius.
What image formats can I use for the logo in the QR code?
You can load your logo image using AnyBitmap.FromFile, which supports various image formats commonly used in digital branding.
What should I consider when choosing a logo for a QR code?
For best results, use a square logo with a transparent or white background to ensure the logo integrates smoothly and is visually appealing.
Why is the corner radius important when embedding logos in QR codes?
The corner radius allows you to round the edges of your logo, providing a polished and professional appearance, especially if the logo has sharp angles.
Can I customize the size of the QR code along with embedding a logo?
Yes, the QrStyleOptions allows you to specify dimensions for the QR code, enabling you to create a QR code that fits your specific needs.
How do I save a QR code with an embedded logo using IronQR?
After configuring your QR code with the QrLogo and QrStyleOptions, you can save the final QR code as an image file using the SaveAs method.
What should I do after embedding a logo in my QR code?
Consider customizing your QR code further by adjusting colors to match your brand, adding margins for better scanning, or setting error correction levels for enhanced readability.
Can embedded logo QR codes still be scanned effectively?
Yes, even with an embedded logo, IronQR ensures that the QR code maintains full scannability by allowing you to set appropriate error correction levels.

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.