QR Code Introduction
QR Code Introduction
This page talks about general information of the 2D barcode, QR Code (ISO/IEC 18004:2006).
Page Content
o o o o o o o o o o o
QR Code Overview QR Code Structure and Size QR Code Data Encoding QR Code Data Characters per Symbol QR Code Error Correction Level QR Code Orientation Independence Generating and Scanning QR Code Barcodes Generating and Printing GS1 Compatible QR Code Encoding ISO-8859-1 Chars and ASCII Control Functions in QR Code Barcodes Encoding Unicode and International Character Sets Encoding Kanji Character Set QR Code Extended Channel Interpretations (ECI) QR Code Structured Append
QR Code Overview
QR Code is a matrix barcode (or two-dimensional code), readable by QR scanners, mobile phones with a camera, and smartphones. It consists of black modules arranged in a square pattern on white background. The information encoded can be text, URL or other data. OnBarcode QR Code Generator Components are fully compatible with ISO/IEC 18004:2006.
QR Code image has 40 Versions, ranging from Version 1 to Version 40. So, there are 40 sizes of QR Code in all and the size begins from 21 X 21 modules and up to 177 X 177 modules (not including quiet zone), increasing in steps of 4 modules per side. Please get details from QR Code size setting instruction.
numeric data (digits 0 - 9); alphanumeric data (digits 0 - 9; upper case letters A - Z; nine other characters: space, $ % * + - . / : ); byte data (default: ISO/IEC 8859-1; or other sets as otherwise defined); Kanji characters. Kanji characters in QR Code 2005 can be compacted into 13 bits.
numeric data: 7,089 characters alphanumeric data: 4,296 characters Byte data: 2,953 characters Kanji data: 1,817 characters
Generating & Printing QR Code Barcodes in ASP.NET, VB.NET, C# Generating & Printing QR Code Barcodes in Java Generating & Printing QR Code Barcodes in iOS (iPhone & iPad) Generating & Printing QR Code Barcodes in Android Generating & Printing QR Code Barcodes in BIRT Reports Generating & Printing QR Code Barcodes in Reporting Service 2005 & 2008 QR Code Scanner Components Reading & Scanning QR Code Barcodes in ASP.NET, VB.NET, C# Reading & Scanning QR Code Barcodes in Java QR Code Generator & Scanner Software QR Code Generator Software Mac OS QR Code Generator Software Free Online QR Code Generator Free QR Code Scanner Software
Generating and Printing GS1 Compatible QR Code with AIs (Application Identifiers)
You can easily generate GS1 compatible QR Code barcodes using the above QR Code Generation Libraries by:
Set QR Code Data property value with GS1 AI (Application Identifier) codes and datas. Use parentheses to indicate the AI codes.
For example, if you need to encode "Global Trade Item Number (GTIN)" and "Production Date" into a QR Code. You may set the property "Data" value to "(01)01234567891234(11)100130", in which: 1. "01" is Global Trade Item Number (GTIN) AI Code (Application Identifier Code). 2. "01234567891234" is your GTIN AI Data. 3. "11" is Production Date AI Code. 4. 100130" is your Production Date AI Data (produced in Jan 30, 2010).
Set QR Code property DataMode value to Auto (including all ASCII). Set QR Code property ProcessTilde value to True. Use tilde "~ddd" (ddd is from 000 to 255 for 256 ISO-8859-1 (Latin 1)) to encode chars and control functions.
For example, if you want to encode value "QR<carriage return>Code", you should set QR Code property Data value to "QR~013Code", in which: 1. "013" represents the carriage return.
Set QR Code property DataMode value to Auto (including all ASCII). Set QR Code property ProcessTilde value to True. Use tilde "~6dddddd" (dddddd is from 00000 ~ 65535) for 2-byte chars.
You need to use ECI to switch to your encoding character set, the default character set in QR Code is ISO 8859-1 (ECI value is 000003).
The QR-Code Kanji mode efficiently encodes Kanji characters in accordance with the Shift JIS system based on JIS X 0208. The Shift JIS values are shifted from the JIS X 0208 values. JIS X 0208 gives details of the shift coded representation. Each two-byte character value is compacted to a 13-bit binary codeword. To encode Kanji Character Set (Shift JIS), you need do the following steps using our QR Code Generation Components.
Set QR Code property DataMode value to Kanji. Set QR Code property ProcessTilde value to True. Use tilde "~9ddddd" ((Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)) for 2-byte chars.
Set QR Code property ProcessTilde value to True. Insert ECI "~7dddddd" into your QR Code encoding data, to switch to another character set, and followed by your new character set data.
Set QR Code property StructuredAppend value to True. Set QR Code property SymbolCount value to the count of QR Code Structured Append symbols. Set QR Code property SymbolIndex value to indicate the position of the QR Code symbol in the same group of all Structured Append symbols. Starting with 1. Set QR Code property Parity value to be identified to the same group of QR Code Structured Append symbols. Starting with 1.
Easily generate QR Code in ASP.NET, VB.NET, C#.NET projects Simply create QR Code in Java projects Easy to encode, create QR Code in iOS (iPhone & iPad) projects Simple to produce, generate QR Code in Android projects Easy to generate, encode QR Code in BIRT Reports Simple to encode, produce QR Code in Reporting Service QR Code Barcode Scanner Controls Easily read, scan QR Code images in ASP.NET, VB.NET, C# Easily recognize, scan QR Code images in Java applications QR Code Barcode Generator & Reader Software Windows QR Code Generator Software Mac OS QR Code Barcode Generator Software Free Online QR Code Barcode Generator Free QR Code Barcode Scanner Software
QR Code Structure
W : the width of QR Code image (including quiet zone). H : the height of QR Code image (including quiet zone). X : the width of QR Code module. Q : the width of the quiet zone; Q = 4X.
The QR Code barcode width, W (measured in pixel), including quiet zone, can be computed from the following expression:
So, QR Code image size is determined as long as the image version and module size are determined. The steps below can be used to obtain QR Code version and calculate the image size.
Make certain the data to be encoded. Specify the error correction level of QR Code. Refer to QR Code Version and Maximum Data Capacity Table and choose the smallest version that accommodates your input data. Calculate the QR Code image width (W) from the following expression:
For instance, you need to encode 100 numeric characters into a QR Code:
Set the error correction level to be "L". In the reference table, the Version 3 with level L is able to encode 100 or more numeric characters (up to 127 characters). Then, the image width including quiet zone should be computed as below: Calculate the QR Code image width (W) from the following expression: