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.

  1. Install IronQR with NuGet Package Manager

    PM > Install-Package IronQR
  2. 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");
  3. Deploy to test on your live environment

    Start using IronQR in your project today with a free trial

    arrow pointer

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")
$vbLabelText   $csharpLabel

Output

QR code with embedded logo

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.

Ahmad Sohail
Full Stack Developer

Ahmad is a full-stack developer with a strong foundation in C#, Python, and web technologies. He has a deep interest in building scalable software solutions and enjoys exploring how design and functionality meet in real-world applications.

Before joining the Iron Software team, Ahmad worked on automation projects ...

Read More
Ready to Get Started?
Nuget Downloads 60,166 | Version: 2026.3 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast? PM > Install-Package IronQR
run a sample watch your URL become a QR code.