IRONSOFTWAREHOME
Create QR Code
using IronBarCode;

// The value of the QR code as a string. Also suitable for URLS
string value = "https://ironsoftware.com/";

// Simplest example of creating a QR Code with no settings
GeneratedBarcode myQRCode = QRCodeWriter.CreateQrCode(value);

// Advanced example with all parameters exclusive to QR codes set:

// The error correction level of the QR code
var correction = QRCodeWriter.QrErrorCorrectionLevel.Highest;

// The width and height of the QR code in pixels
int size = 500;

// QR version.
// Please read https://www.qrcode.com/en/about/version.html to learn more about what QR version is
int qrVersion = 0;

GeneratedBarcode myQRCodeComplex = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion);
Imports IronBarCode

' The value of the QR code as a string. Also suitable for URLS
Dim value As String = "https://ironsoftware.com/"

' Simplest example of creating a QR Code with no settings
Dim myQRCode As GeneratedBarcode = QRCodeWriter.CreateQrCode(value)

' Advanced example with all parameters exclusive to QR codes set:

' The error correction level of the QR code
Dim correction = QRCodeWriter.QrErrorCorrectionLevel.Highest

' The width and height of the QR code in pixels
Dim size As Integer = 500

' QR version.
' Please read https://www.qrcode.com/en/about/version.html to learn more about what QR version is
Dim qrVersion As Integer = 0

Dim myQRCodeComplex As GeneratedBarcode = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion)
NuGet Download
PM > Install-Package BarCode
Create QR Code

Create QR Code

IronBarcode offers developers intuitive and easy-to-use methods to create unique QR codes with a plethora of customizations. Whether you are a developer looking for a simple QR code generator with a few lines of code or a more complex generator where you can control all aspects of the QR code, such as the correction level, size, and version, IronBarcode offers everything you need in one library.

After importing the IronBarcode library, we first instantiate the QRCodeWriter class and then use QRCodeWriter.CreateQrCode to create a new QR code with a string value of a URL. This method is the simplest way to create a QR code with default settings.

We can adjust the QR code's errorCorrectionLevel for more customization. This level correlates to the amount of redundancy or error recovery data included in the QR code, making it more fault-tolerant and ensuring it works under harsh conditions.

To control the size, simply assign an integer value to it. The qrVersion (between 1 and 40) represents the QR code version. Depending on how much data you wish to store and the capacity you want the QR code to have, developers can fine-tune it to balance between capacity and size to ensure optimization. For more information on how to determine the version of your QR code, please refer to this documentation here.

Finally, we pass all our established variables, size, qrVersion, and correction, to the QRCodeWriter.CreateQrCode method again to generate a customized QR code with all the attributes listed above.

Explore How to Create Custom Barcode Images
View on GitHub

Ready to Get Started?

Nuget Downloads 2,422,100Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required