World Library  
Flag as Inappropriate
Email this Article

QR code

Article Id: WHEBN0000828436
Reproduction Date:

Title: QR code  
Author: World Heritage Encyclopedia
Language: English
Subject: High Capacity Color Barcode, Mobile tagging, SPARQCode, Denso, SQRL
Collection: 1994 Introductions, Automatic Identification and Data Capture, Barcodes, Encodings, Hypermedia
Publisher: World Heritage Encyclopedia

QR code

QR code for the

QR code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached. A QR code uses four standardized encoding modes (numeric, alphanumeric, byte / binary, and kanji) to efficiently store data; extensions may also be used.[1]

The QR Code system has become popular outside the automotive industry due to its fast readability and greater storage capacity compared to standard UPC barcodes. Applications include product tracking, item identification, time tracking, document management, general marketing, and much more.[2]

A QR code consists of black modules (square dots) arranged in a square grid on a white background, which can be read by an imaging device (such as a camera) and processed using Reed–Solomon error correction until the image can be appropriately interpreted. The required data are then extracted from patterns present in both horizontal and vertical components of the image.[2]


  • History 1
  • Standards 2
  • Uses 3
    • Mobile operating systems 3.1
    • URLs 3.2
    • Virtual stores 3.3
    • Code payments 3.4
    • Website login 3.5
    • Funerary use 3.6
    • Encryption 3.7
  • Design 4
    • Storage 4.1
    • Error correction 4.2
    • Encoding 4.3
    • Decoding example 4.4
  • License 5
  • Variants 6
  • Risks 7
  • Print size 8
  • See also 9
  • References 10
  • Bibliography 11
  • External links 12


The QR code system was invented in 1994 by Denso Wave. Its purpose was to track vehicles during manufacture; it was designed to allow high-speed component scanning.[3] Although initially used for tracking parts in vehicle manufacturing, QR codes now are used in a much broader context, including both commercial tracking applications and convenience-oriented applications aimed at mobile-phone users (termed mobile tagging). QR codes may be used to display text to the user, to add a vCard contact to the user's device, to open a Uniform Resource Identifier (URI), or to compose an e-mail or text message. Users can generate and print their own QR codes for others to scan and use by visiting one of several paid and free QR code generating sites or apps. The technology has since become one of the most-used types of two-dimensional barcode.[4]


Structure of a QR code, highlighting functional elements

There are several standards that cover the encoding of data as QR codes:[5]

  • October 1997 – AIM (Association for Automatic Identification and Mobility) International[6]
  • January 1999 – JIS X 0510
  • June 2000 – ISO/IEC 18004:2000 Information technology – Automatic identification and data capture techniques – Bar code symbology – QR code (now withdrawn)
    Defines QR code models 1 and 2 symbols.
  • 1 September 2006 – ISO/IEC 18004:2006 Information technology – Automatic identification and data capture techniques – QR code 2005 bar code symbology specification
    Defines QR code 2005 symbols, an extension of QR code model 2. Does not specify how to read QR code model 1 symbols, or require this for compliance.

At the application layer, there is some variation between most of the implementations. Japan's NTT DoCoMo has established de facto standards for the encoding of URLs, contact information, and several other data types.[7] The open-source "ZXing" project maintains a list of QR code data types.[8]


A QR code used on a large billboard in Japan, linking to the website

Originally designed for industrial uses, QR codes have become common in consumer advertising. Typically, a smartphone is used as a QR code scanner, displaying the code and converting it to some useful form (such as a standard URL for a website, thereby obviating the need for a user to type it into a web browser). The QR code has become a focus of advertising strategy, since it provides a way to access a brand's website more quickly than by manually entering a URL.[9][10] Beyond mere convenience to the consumer, the importance of this capability is that it increases the conversion rate (the chance that contact with the advertisement will convert to a sale), by coaxing interested prospects further down the conversion funnel with little delay or effort, bringing the viewer to the advertiser's website immediately, where a longer and more targeted sales pitch may lose the viewer's interest.

Although initially used to track parts in vehicle manufacturing, QR codes are now (as of 2012) used over a much wider range of applications, including commercial tracking, entertainment and transport ticketing, product/loyalty marketing (examples: mobile couponing where a company's discounted and percent discount can be captured using a QR code decoder which is a mobile app, or storing a company's information such as address and related information alongside its alpha-numeric text data as can be seen in Yellow Pages directory), and in-store product labeling. It can also be used in storing personal information for use by organizations. An example of this is Philippines National Bureau of Investigation (NBI) where NBI clearances now come with a QR code. Many of these applications target mobile-phone users (via mobile tagging). Users may receive text, add a vCard contact to their device, open a Uniform Resource Identifier (URI), or compose an e-mail or text message after scanning QR codes. They can generate and print their own QR codes for others to scan and use by visiting one of several pay or free QR code-generating sites or apps. Google had a popular API to generate QR codes,[11] and apps for scanning QR codes can be found on nearly all smartphone devices.[12]

QR codes storing addresses and Uniform Resource Locators (URLs) may appear in magazines, on signs, on buses, on business cards, or on almost any object about which users might want information. Users with a camera phone equipped with the correct reader application can scan the image of the QR code to display text, contact information, connect to a wireless network, or open a web page in the telephone's browser. This act of linking from physical world objects is termed hardlinking or object hyperlinking. QR codes also may be linked to a location to track where a code has been scanned. Either the application that scans the QR code retrieves the geo information by using GPS and cell tower triangulation (aGPS) or the URL encoded in the QR code itself is associated with a location.[13]

QR codes have been used and printed on train tickets in China since 2010.[14]

Recruiters have started placing QR codes in job advertisements,[15] while applicants have started sporting it in their CVs and visiting cards.[15]

In June 2011, The Royal Dutch Mint (Koninklijke Nederlandse Munt) issued the world's first official coin with a QR code to celebrate the centenary of its current building and premises. The coin can be scanned by a smartphone and link to a special website with contents about the historical event and design of the coin.[16] In 2008, a Japanese stonemason announced plans to engrave QR codes on gravestones, allowing visitors to view information about the deceased, and family members to keep track of visits.[17]

Mobile operating systems

QR codes can be used on various mobile device operating systems. These devices support URL redirection, which allows QR codes to send metadata to existing applications on the device. Many paid or free apps are available with the ability to scan the codes and hard-link to an external URL.


Clean URLs decreased these risks but did not eliminate them. Some of these disadvantages to URL conversion rates are fading away now that smartphones are putting web access and voice recognition in constant reach. Thus an advert viewer need only reach for his or her phone and speak the URL, at the moment of ad contact, rather than remember to type it into a PC later.

Virtual stores

During the month of June 2011, according to one study, 14 million mobile users scanned a QR code or a barcode. Some 58% of those users scanned a QR or barcode from their homes, while 39% scanned from retail stores; 53% of the 14 million users were men between the ages of 18 and 34.[18] The use of QR codes for "virtual store" formats started in South Korea,[19] and Argentina,[20] but is currently expanding globally.[21] Walmart, Procter & Gamble and Woolworths have already adopted the Virtual Store concept.[22]

Code payments

QR codes can be used to store bank account information or credit card information, or they can be specifically designed to work with particular payment provider applications. There are several trial applications of QR code payments across the world.[23][24]

In November 2012, QR code payments were deployed on a larger scale in the Czech Republic when an open format for payment information exchange - a Short Payment Descriptor - was introduced and endorsed by the Czech Banking Association as the official local solution for QR payments.[25]

QR codes are commonly used in the field of cryptographic currencies, particularly those based off and including Bitcoin.[26] Payment addresses, cryptographic keys and transaction information are often shared between digital wallets in this way.[27]

Website login

QR codes can be used to log in into websites: a QR Code is shown on the login page on a computer screen, and when a registered user scans it with a verified smartphone, they will automatically be logged in on the computer. Authentication is performed by the smartphone which contacts the server. Google tested such a login method in January 2012.[28]

Funerary use

In 2008, Ishinokoe in Yamanashi Prefecture, Japan began to sell tombstones with QR codes produced by IT DeSign, where the code leads to a virtual grave site of the deceased.[29][30][31] Other companies have begun implementing QR codes into tombstones[32] and in 2014 the Jewish Cemetery of La Paz in Uruguay, began implementing QR codes for tombstones.[33]


Japanese visa with a QR code (content is not deciphered)

Encrypted QR codes, which are not very common, have a few implementations. An Android app,[34] for example, manages encryption and decryption of QR codes using the DES algorithm (56 bits).[35] The Japanese immigration system uses encrypted QR codes when issuing visa in passports [36] as shown in the figure here.


Unlike the older, one-dimensional barcodes that were designed to be mechanically scanned by a narrow beam of light, a QR code is detected by a 2-dimensional digital image sensor and then digitally analyzed by a programmed processor. The processor locates the three distinctive squares at the corners of the QR code image, using a smaller square (or multiple squares) near the fourth corner to normalize the image for size, orientation, and angle of viewing. The small dots throughout the QR code are then converted to binary numbers and validated with an error-correcting code.


The amount of data that can be stored in the QR code symbol depends on the datatype (mode, or input character set), version (1, …, 40, indicating the overall dimensions of the symbol), and error correction level. The maximum storage capacities occur for 40-L symbols (version 40, error correction level L):[4][37]
Maximum character storage capacity (40-L)
character refers to individual values of the input mode/datatype
Input mode max. characters bits/char possible characters, default encoding
Numeric only 7,089 3⅓ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Alphanumeric 4,296 0–9, A–Z (upper-case only), space, $, %, *, +, -, ., /, :
Binary/byte 2,953 8 ISO 8859-1
Kanji/kana 1,817 13 Shift JIS X 0208

Here are some sample QR code symbols:

Error correction

Damaged but still decodable QR code
Example of a QR code with artistic embellishment that will still scan correctly thanks to error correction

Codewords are 8 bits long and use the Reed–Solomon error correction algorithm with four error correction levels. The higher the error correction level, the less storage capacity. The following table lists the approximate error correction capability at each of the four levels:

Level L (Low) 7% of codewords can be restored.
Level M (Medium) 15% of codewords can be restored.
Level Q (Quartile)[38] 25% of codewords can be restored.
Level H (High) 30% of codewords can be restored.

In larger QR symbols, the message is broken up into several Reed–Solomon code blocks. The block size is chosen so that at most 15 errors can be corrected in each block; this limits the complexity of the decoding algorithm. The code blocks are then interleaved together, making it less likely that localized damage to a QR symbol will overwhelm the capacity of any single block.

Due to error correction, it is possible to create artistic QR codes that still scan correctly, but contain intentional errors to make them more readable or attractive to the human eye, as well as to incorporate colors, logos, and other features into the QR code block.[39][40]


The format information records two things: the error correction level and the mask pattern used for the symbol. Masking is used to break up patterns in the data area that might confuse a scanner, such as large blank areas or misleading features that look like the locator marks. The mask patterns are defined on a grid that is repeated as necessary to cover the whole symbol. Modules corresponding to the dark areas of the mask are inverted. The format information is protected from errors with a BCH code, and two complete copies are included in each QR symbol.[2]

The message dataset is placed from right to left in a zigzag pattern, as shown below. In larger symbols, this is complicated by the presence of the alignment patterns and the use of multiple interleaved error-correction blocks.

Four-bit indicators are used to select the encoding mode and convey other information. Encoding modes can be mixed as needed within a QR symbol.

Encoding modes
Indicator Meaning
0001 Numeric encoding (10 bits per 3 digits)
0010 Alphanumeric encoding (11 bits per 2 characters)
0100 Byte encoding (8 bits per character)
1000 Kanji encoding (13 bits per character)
0011 Structured append (used to split a message across multiple QR symbols)
0111 Extended Channel Interpretation (select alternate character set or encoding)
0101 FNC1 in first position (see Code 128 for more information)
1001 FNC1 in second position
0000 End of message

After every indicator that selects an encoding mode is a length field that tells how many characters are encoded in that mode. The number of bits in the length field depends on the encoding and the symbol version.

Number of bits per length field
Encoding Ver. 1–9 10–26 27–40
Numeric 10 12 14
Alphanumeric 9 11 13
Byte 8 16 16
Kanji 8 10 12

Alphanumeric encoding mode stores a message more compactly than the byte mode can, but cannot store lower-case letters and has only a limited selection of punctuation marks, which are sufficient for rudimentary web addresses. Two characters are coded in an 11-bit value by this formula:

V = 45 × C1 + C2
Alphanumeric character codes
Code Character Code Character Code Character Code Character Code Character
00 0 09 9 18 I 27 R 36 SP
01 1 10 A 19 J 28 S 37 $
02 2 11 B 20 K 29 T 38 %
03 3 12 C 21 L 30 U 39 *
04 4 13 D 22 M 31 V 40 +
05 5 14 E 23 N 32 W 41
06 6 15 F 24 O 33 X 42 .
07 7 16 G 25 P 34 Y 43 /
08 8 17 H 26 Q 35 Z 44 :

Decoding example

The following images offer more information about the QR code.


The use of QR codes is free of any license. The QR code is clearly defined and published as an ISO standard.

  • Official website
  • Reed Solomon Codes for Coders – an elaborate tutorial on Wikiversity, covering both QR code structure and the Reed Solomon codes used to encode the data.
  • J. D. Biersdorfer (2 March 2011). "Q&A: how to Make a Quick Response Code".   Information on converting a URL into a QR code

External links

  • BS ISO/IEC 18004:2006. Information technology. Automatic identification and data capture techniques. Bar code symbology. QR Code.  
  • BS ISO/IEC 18004:2006. Information technology. Automatic identification and data capture techniques. QR Code 2005 bar code symbology specification.  


  1. ^ "QR Code features". Denso-Wave. Archived from the original on 2012-09-15. Retrieved 3 October 2011. 
  2. ^ a b c "QR Code Essentials". Denso ADC. 2011. Retrieved 12 March 2013. 
  3. ^ Borko Furht (2011). Handbook of Augmented Reality. Springer. p. 341.  
  4. ^ a b "QR Code — About 2D Code". Denso-Wave. Archived from the original on 2012-09-15. Retrieved 3 October 2011. 
  5. ^ a b "QR Code Standardization". QR Denso-Wave. Archived from the original on 2012-09-15. Retrieved 23 April 2009. 
  6. ^ "AIM Global Online Store". Archived from the original on 2012-09-15. Retrieved 23 April 2009. 
  7. ^ "Synchronization with Native Applications".  
  8. ^ "Barcode Contents". zxing – A rough guide to standard encoding of information in barcodes. Archived from the original on 2012-05-30. Retrieved 17 February 2009. 
  9. ^ "". Archived from the original on 2012-09-12. 
  10. ^ "". Archived from the original on 2012-07-20. 
  11. ^ "Google Chart Tools". Archived from the original on 2012-07-07. 
  12. ^ "QR Code Readers for iPhone, Android, Blackberry and Windows Phone 7". Archived from the original on 2012-07-18. 
  13. ^ "Geo Tagged QR Codes". Archived from the original on 2012-07-14. Retrieved 27 October 2011. 
  14. ^ "QR codes on China's train tickets may leak personal information". Want China Times. Retrieved 16 March 2013. 
  15. ^ a b "How to jazz up your CV with QR codes - The Times of India". The Times Of India. 
  16. ^ "World's first QR code coin website". Archived from the original on 2012-09-15. 
  17. ^ Novak, Asami (2008-03-23). "Japanese Gravestones Memorialize the Dead With QR Codes". Wired. Retrieved 2013-05-08. 
  18. ^ "16 August 2011". Archived from the original on 2012-09-06. 
  19. ^ "Tesco QR Code Virtual Store". Archived from the original on 2012-09-15. 
  20. ^ "Marketing futurista: ya se puede comprar con la cámara del celular". Archived from the original on 2012-09-15. 
  21. ^ "11 November 2010". Archived from the original on 2012-09-15. 
  22. ^ "Top 10 QR Code Store examples". Archived from the original on 2012-09-15. 
  23. ^ "SCVNGR Unveils QR Code Payment System". 
  24. ^ "MasterCard starts piloting QkR mobile payment app". 
  25. ^ "Standard No. 26: Format for exchanging the payment information for Czech domestic payments using the QR codes". Czech Banking Association. November 2012. 
  26. ^
  27. ^
  28. ^ "Google testing login authentication via QR codes". 
  29. ^ お墓参りも「ネット」の時代 携帯サイトで故人を偲ぶ
  30. ^ QR code graves give a “Memorial Window”
  31. ^ 供養の窓 - 石の声 株式会社
  32. ^ Quiring Monuments adds smartphone codes to gravestones
  33. ^ "Uruguayan Jewish Cemetery QRfied" (in Español).  
  34. ^ "QR Droid". Google. 19 August 2011. Retrieved 5 September 2011. 
  35. ^ "Encrypted QR Codes". QR Droid. 24 October 2011. Retrieved 5 September 2011. 
  36. ^ "QR Code Usage In Japan". Studio Cliffano. 18 May 2009. Retrieved 18 May 2009. 
  37. ^ "Version and Maximum capacity table". Denso-Wave. Archived from the original on 2012-09-15. 
  38. ^ "2D Barcode: QR-Code". Archived from the original on 2012-09-15.  — TEC-IT
  39. ^ Orli Sharaby (18 October 2010). "Form Meets Function: Extreme Makeover QR Code Edition". Archived from the original on 2012-07-08. Retrieved 29 July 2011. 
  40. ^ Hamilton Chan (18 April 2011). "HOW TO: Make Your QR Codes More Beautiful". Archived from the original on 2012-07-10. Retrieved 29 July 2011. 
  41. ^ "QR". Denso-Wave. 6 November 2003. Archived from the original on 2012-09-15. Retrieved 23 April 2009. 
  42. ^ "UK QR Code Trademark". Archived from the original on 2012-09-15. 
  43. ^ "EU QR Code Trademark". Archived from the original on 2012-09-15. 
  44. ^ "US QR Code Trademark". Archived from the original on 2012-09-15. 
  45. ^ Information technology — Automatic identification and data capture techniques — QR Code 2005 bar code symbology specification, ISO/IEC 18004:2006 cor. 2009, pages 3, 6.
  46. ^ "QR Code Overview & Progress of QR Code Applications". Retrieved 26 June 2014. 
  47. ^
  48. ^ a b "Jargon Watch",  .
  49. ^ "Malicious Images: What's a QR Code". SANS Technology Institute. 3 August 2011. Archived from the original on 2012-07-13. Retrieved 31 August 2011. 
  50. ^ "Barcode Scanner". Google. 1 June 2011. Archived from the original on 2012-09-15. Retrieved 31 August 2011. 
  51. ^ "QR Droid". Google. 19 August 2011. Archived from the original on 2012-09-15. Retrieved 31 August 2011. 
  52. ^ "ScanLife Barcode Reader". Google. 24 May 2011. Archived from the original on 2012-09-15. Retrieved 31 August 2011. 
  53. ^ "Consumer Alert: QR Code Safety". Better Business Bureau. 23 June 2011. Archived from the original on 2012-07-15. Retrieved 31 August 2011. 
  54. ^ "AVG Cautions: Beware of Malicious QR Codes". PC World. 28 June 2011. Archived from the original on 2012-09-07. Retrieved 31 August 2011. 
  55. ^ "EvilQR – When QRCode goes bad". AppSec-Labs Blog. 14 August 2011. Archived from the original on 2012-09-15. Retrieved 31 August 2011. 
  56. ^ "QR Codes: A Recipe for a Mobile Malware Tsunami". Cyveillance, Inc. 20 October 2010. Archived from the original on 2012-07-28. Retrieved 31 August 2011. 
  57. ^ QR Codes hold up to 2.9 KB whereas the smallest known computer virus is about one-tenth that size "The Smallest Virus I Could Manage". Virus Labs and Distribution. 1995. Archived from the original on 2012-09-15. Retrieved 31 August 2011. 
  58. ^ "Beware of Malicious QR Codes". ABC. 8 June 2011. Archived from the original on 2012-08-01. Retrieved 31 August 2011. 
  59. ^ How big does a QR code need to be?


See also

This recommendation corresponds to a Version 4 code with 33 modules per side printed no smaller than 1" square (25 mm), not including the required margin.

A printing company recommends a minimum size for a printed QR code module of 0.03 inches (0.76 mm), to ensure that the printed result is legible for scanners.[59] In addition, by standard practice, a minimum of four modules width should be left blank around the code.

Print size

Risks include linking to dangerous web sites with browser exploits, enabling the microphone/camera/GPS, and then streaming those feeds to a remote server, analysis of sensitive data (passwords, files, contacts, transactions),[53] and sending email/SMS/IM messages or DDOS packets as part of a botnet, corrupting privacy settings, stealing identity,[54] and even containing malicious logic themselves such as JavaScript [55] or a virus.[56][57] These actions could occur in the background while the user is only seeing the reader opening a seemingly harmless web page.[58] In Russia, a malicious QR code caused phones that scanned it to send premium texts at a fee of US$6 each.[48]

In the case of no software exploits, malicious QR codes combined with a permissive reader can still put a computer's contents and user's privacy at risk. This practice is known as "attagging", a portmanteau of "attack tagging".[48] They are easily created and can be affixed over legitimate QR codes.[49] On a smartphone, the reader's permissions may allow use of the camera, full Internet access, read/write contact data, GPS, read browser history, read/write local storage, and global system changes.[50][51][52]

The only context in which common QR codes can carry executable data is the URL data type. These URLs may host Javascript code, which can be used to exploit vulnerabilities in applications on the host system, such as the reader, the web browser or the image viewer, since a reader will typically send the data to the application associated with the data type used by the QR code.


Model 1 QR code is an older version of the specification. It is visually similar to the widely seen model 2 codes, but lacks alignment patterns.

IQR code is an alternative to existing QR codes developed by Denso Wave. IQR codes can be created in square or rectangular formations; this is intended for situations where a rectangular barcode would otherwise be more appropriate, such as cylindrical objects. IQR codes can fit the same amount of information in 30% less space. There are 61 versions of square IQR codes, and 15 versions of rectangular codes. For squares, the minimum size is 9x9 modules; rectangles have a minimum of 19x5 modules. IQR codes add error correction level S, which allows for 50% error correction.[46] IQR Codes have not yet been given an ISO specification, and only proprietary Denso Wave products can create or read IQR codes.[47]

Micro QR code is a smaller version of the QR code standard for applications where symbol size is limited. There are 4 different versions (sizes) of Micro QR codes: the smallest is 11×11 modules; the largest can hold 35 numeric characters.[45]


The word QR code itself is a registered trademark of Denso Wave Incorporated.[41] In UK, the trademark is registered as E921775, the word "QR Code", with a filing date of 03/09/1998.[42] The UK version of the trademark is based on the Kabushiki Kaisha Denso (DENSO CORPORATION) trademark, filed as Trademark 000921775, the word "QR Code", on 03/09/1998 and registered on 6/12/1999 with the European Union OHIM (Office for Harmonization in the Internal Market).[43] The U.S. Trademark for the word "QR Code" is Trademark 2435991 and was filed on 29 September 1998 with an amended registration date of 13 March 2001, assigned to Denso Corporation.[44]

to Denso Wave, which was then validated into French, UK, and German patents, all of which are still in force as of November 2011.  

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.