Read QR Code Value

Easily extract the QR code's content as a ready-to-use string, allowing you to immediately display the value to a user, save it to a database, or pass it to another function. IronQR reads the embedded data from any image using QrReader.Read() and exposes it through the Value property on each QrResult.

5-step guide for reading a QR code value

  • using IronQr;
  • QrImageInput imageInput = new QrImageInput(Image.FromFile("sample.jpg"));
  • QrReader reader = new QrReader();
  • IEnumerable<QrResult> results = reader.Read(imageInput);
  • Console.WriteLine(results.First().Value);

Code Explanation

An image containing a QR code is loaded from disk and wrapped in a QrImageInput object, which tells IronQR what to scan. A QrReader instance processes the input and returns a collection of QrResult objects, one per QR code found in the image. Calling .Value on a result gives the decoded string directly, whether that is a URL, a product ID, or any other encoded text.

Explore How to Read QR Code Values with IronQR.

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.