Supported QR Code Formats

This article was translated from English: Does it need improvement?
Translated
View the article in English

QR codes come in several shapes and sizes, each tailored to meet different needs in terms of data capacity, physical space, and scanning flexibility. Whether you're printing on a large shipping label or embedding codes on tiny hardware components, IronQR supports all major QR standards to help you get the job done.

This article introduces the three QR variants that IronQR can generate and read, with a quick code sample to help you get started immediately.


QR code supported variants

Two-dimensional (2D) matrix codes offer a compact and reliable way to store more information than traditional barcodes. IronQR supports the following QR types:

QR Code

The standard, square QR code used globally—from mobile payments to restaurant menus, logistics, marketing, and more.

  • Data Capacity: Up to 7,089 numeric or 4,296 alphanumeric characters

  • Error Correction: Four levels (Low, Medium, High, Highest) ensure data recovery even when part of the code is scratched, smudged, or obscured

  • Use Case: Ideal for general-purpose applications requiring moderate to large data capacity and high reliability

This is the most recognized and widely used QR code format, balancing capacity, scanning range, and flexibility across all industries.

QR Code

Micro QR Code

A miniaturized version of the standard QR code, designed for scenarios where space is extremely limited—such as electronics, retail tags, or warranty seals.

  • Data Capacity: Up to 35 numeric or 21 alphanumeric characters

  • Efficiency: Takes up less space and is faster to scan due to reduced module size

  • Use Case: Best suited for labeling tiny items, component tracking, or places where only a small amount of data needs to be stored

While it supports fewer characters than a standard QR code, Micro QR is highly effective in constrained physical environments.

Micro QR Code

Rectangular Micro Code (RMQRCode)

A compact rectangular format designed to fit into narrow or elongated areas where square codes don't work well.

  • Data Capacity: Comparable to Micro QR Code

  • Shape Advantage: Offers flexibility in layouts where rectangular print areas are available

  • Use Case: Perfect for forms, edge-of-label applications, and ticketing where width or height is restricted but not both

RMQRCode is functionally similar to Micro QR but provides layout adaptability not available with square formats.

Rectangular Micro Code

Quick-start snippet

Use the code below to generate a QR code with your preferred encoding. You can easily switch between the three supported types by changing the Encoding value.

:path=/static-assets/qr/content-code-examples/how-to/create-qr-code-with-encoding-type.cs
using IronQr;
using IronQr.Enum;

// Generate a Micro QR code and save it as PNG
QrCode myQr = QrWriter.Write(
    "Hello IronQR",
    new QrOptions { Encoding = QrEncoding.MicroQRCode }
);

myQr.Save().SaveAs("QR.png");
IRON VB CONVERTER ERROR developers@ironsoftware.com
$vbLabelText   $csharpLabel

To generate a standard QR Code or RMQRCode, simply use QrEncoding.QRCode or QrEncoding.RMQRCode.


請注意When decoding, set QrEncoding.All to let IronQR automatically detect the format of any QR code. This is especially useful in mixed-code environments.

常見問題解答

IronQR 支援哪些主要的 QR 碼格式?

IronQR 支援三種主要的 QR 碼格式:標準 QR 碼、Micro QR 碼和矩形微碼 (RMQRCode),每種格式都專為不同的用例和數據容量而設計。

我如何在 C# 中使用 IronQR 生成 QR 碼?

您可以使用 IronQR 在 C# 中生成 QR 碼,通過使用 QrEncoding 屬性。例如,使用 QrEncoding.QRCode 生成標準 QR 碼,或 QrEncoding.RMQRCode 生成矩形微碼。

標準 QR 碼和 Micro QR 碼之間有何不同?

標準 QR 碼具有較高的數據容量,支持高達 7,089 個數字或 4,296 個字母數字字符,而 Micro QR 碼較小,最多可容納 35 個數字或 21 個字母數字字符,適合空間受限的環境。

為何我會選擇 RMQRCode 而非其他 QR 碼格式?

RMQRCode 適合於需要矩形打印區域的布局,為方形碼不合適的環境如表單和標籤邊緣應用提供緊湊的解決方案。

IronQR 如何處理相同環境中的不同 QR 碼格式?

通過設置 QrEncoding.All,IronQR 可以自動檢測任何 QR 碼的格式,使其在混合 QR 碼類型環境中高效運行。

選擇 QR 碼格式時應考慮哪些因素?

選擇 QR 碼格式時,請考慮所需的數據容量、可用的物理空間和掃描環境。IronQR 提供多種格式以滿足各種需求。

IronQR 能否讀取具有損壞部分的 QR 碼?

可以,IronQR 生成的標準 QR 碼支持四個錯誤更正級別,即使在代碼的一部分受損時也能進行數據恢復。

使用 Micro QR 碼有哪些好處?

Micro QR 碼在空間有限的情景中非常有用,因為它們較小的尺寸和更快的掃描能力,適合電子產品、零售標籤和保修封條。

如何為我的 QR 碼選擇合適的錯誤更正級別?

根據 QR 碼將使用的環境選擇錯誤更正級別。IronQR 提供低、中、高和最高級別,以確保即使代碼部分損壞也能保持數據完整性。

哪種 QR 碼格式最適合物流和行銷?

標準 QR 碼因其高數據容量、廣泛的認可度和強大的錯誤更正能力,最適合物流和行銷。

Zeeshan Wazir
全栈开发者

Zeeshan Wazir 是一位全栈开发者,具有 PHP (Laravel)、C# 和 ASP.NET 的强大背景。他还擅长于 Python 脚本,经常使用它来简化和自动化复杂任务。

拥有计算机科学的 MPhil,Zeeshan 将深厚的技术知识与广泛项目的实践经验相结合。他喜爱构建智能、可扩展的应用程序,并不断探索改善开发者工作流的新方法。

準備好開始了嗎?
Nuget 下載 47,669 | 版本: 2025.11 剛剛發布