{"id":80,"date":"2026-10-26T12:00:00","date_gmt":"2026-10-26T02:00:00","guid":{"rendered":"https:\/\/williamwonderlab.com\/blog\/?p=80"},"modified":"2026-10-26T08:01:50","modified_gmt":"2026-10-25T22:01:50","slug":"how-do-qr-codes-work","status":"publish","type":"post","link":"https:\/\/williamwonderlab.com\/blog\/how-do-qr-codes-work\/","title":{"rendered":"How Do QR Codes Work?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Point a phone camera at a black and white square on a menu, a poster or a parcel label, and the phone turns that pattern into text in a moment. How can a grid of small squares hold a message, and why does it still work when part of it is smudged?<\/p>\n\n\n\n<div class=\"wp-block-group ww-box ww-box-quick has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-3b599d0a wp-block-group-is-layout-constrained\" style=\"background-color:#eaf2ff;padding-top:1.25rem;padding-right:1.5rem;padding-bottom:1.25rem;padding-left:1.5rem\">\n<p class=\"wp-block-paragraph\"><strong>The short answer:<\/strong> A QR code is a square grid of small squares called <strong>modules<\/strong>. Some modules are dark and some are light, and together they store data. The code also carries extra &#8220;repair&#8221; data, made with a method called Reed-Solomon coding, so a camera can still read the message if some modules are damaged or unclear.<sup><a href=\"#ref-1\">[1]<\/a><\/sup><sup><a href=\"#ref-2\">[2]<\/a><\/sup><sup><a href=\"#ref-3\">[3]<\/a><\/sup><\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"quick-reading\">A code built for fast reading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">QR codes were designed for speed. In 1994, DENSO WAVE, then a division of DENSO CORPORATION, announced the release of its QR Code.<sup><a href=\"#ref-1\">[1]<\/a><\/sup> The name comes from the words quick response, because the code was meant to be read quickly. The company&#8217;s history page says that &#8220;the greatest challenge for the team was how to make reading their code as fast as possible.&#8221;<sup><a href=\"#ref-1\">[1]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"modules\">A grid of modules<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every QR code is a square made of modules, and each module is either dark or light. The size of the grid depends on the code&#8217;s <strong>version<\/strong>. Version 1 is 21 \u00d7 21 modules. The versions go up to Version 40, which is 177 \u00d7 177 modules.<sup><a href=\"#ref-4\">[4]<\/a><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Look closely at any QR code and you will see big square marks in its corners. These are <strong>position detection patterns<\/strong>: built-in signposts that tell a scanner &#8220;a code is here&#8221;. DENSO WAVE&#8217;s history explains that the team added these square marks so a code could be read at high speed, and chose a pattern that was &#8220;least likely to appear on various business forms&#8221; so scanners would not be fooled by other printing.<sup><a href=\"#ref-1\">[1]<\/a><\/sup> The patterns also let a reader work out which way round the code is, at any angle out of 360 degrees.<sup><a href=\"#ref-1\">[1]<\/a><\/sup><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1-1024x576.webp\" class=\"wp-image-109\" alt=\"Diagram: a 21 by 21 square grid with three large corner squares and a blank central data area. The timing patterns between the corners are not drawn.\" srcset=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1-1024x576.webp 1024w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1-300x169.webp 300w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1-768x432.webp 768w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1-1536x864.webp 1536w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-02-version-1-module-grid-diagram-1.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Schematic of a Version 1 QR code, 21 \u00d7 21 modules. The data area is left blank, so this is not a scannable code.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The diagram is a simplified schematic: it shows the grid and the corner squares only, and the data area is left blank on purpose, so it is not a scannable code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"error-correction\">Repair built in: error correction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A QR code is designed to survive some damage. The repair system works by adding a <strong>Reed-Solomon Code<\/strong> to the original data.<sup><a href=\"#ref-2\">[2]<\/a><\/sup> DENSO WAVE describes Reed-Solomon as a mathematical error correction method, and notes that it is also used for music CDs.<sup><a href=\"#ref-2\">[2]<\/a><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The code offers four error correction levels, labelled L, M, Q and H. Each level restores a different share of the codewords: about 7% at Level L, 15% at Level M, 25% at Level Q and 30% at Level H.<sup><a href=\"#ref-3\">[3]<\/a><\/sup><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1-1024x576.webp\" class=\"wp-image-720\" alt=\"Bar chart of four levels showing about 7, 15, 25 and 30 percent of codewords that can be restored, for levels L, M, Q and H.\" srcset=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1-1024x576.webp 1024w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1-300x169.webp 300w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1-768x432.webp 768w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1-1536x864.webp 1536w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-03-error-correction-levels-chart-1.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Approximate share of codewords each error correction level can restore, from DENSO WAVE.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Level M is the one most often chosen. Level Q or H may be selected for a factory where the code gets dirty, and Level L may be selected for a clean environment with a large amount of data.<sup><a href=\"#ref-2\">[2]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"everyday\">Repair you can picture<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a mended plate. The crack is still there, but the plate can still be used. A QR code works in a similar spirit: the repair data is part of the code, so the message can still be rebuilt when some modules are unclear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams-1024x576.webp\" class=\"wp-image-79\" alt=\"Illustration of a mended ceramic plate with visible gold seams resting on a linen cloth in soft window light.\" srcset=\"https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams-1024x576.webp 1024w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams-300x169.webp 300w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams-768x432.webp 768w, https:\/\/williamwonderlab.com\/blog\/wp-content\/uploads\/2026\/10\/how-do-qr-codes-work-04-mended-plate-gold-seams.webp 1344w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Illustration: repair made visible, an everyday way to picture error correction. Illustration.<\/figcaption><\/figure>\n\n\n\n<div class=\"wp-block-group ww-box ww-box-fact has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-3b599d0a wp-block-group-is-layout-constrained\" style=\"background-color:#fff6d6;padding-top:1.25rem;padding-right:1.5rem;padding-bottom:1.25rem;padding-left:1.5rem\">\n<p class=\"wp-block-paragraph\"><strong>Did you know?<\/strong> DENSO WAVE says that &#8220;even if a QR Code is partly smeared or damaged, it has the capacity to correct itself and restore the original data.&#8221;<sup><a href=\"#ref-5\">[5]<\/a><\/sup> That is why a little dirt or a small tear does not always stop a code from working.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"camera-to-link\">From camera to link<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you scan a code, the app looks at the grid of modules, reads the dark and light pattern and uses the repair data to fix any modules it cannot read clearly. The result is turned back into text, such as a web address or a short message.<sup><a href=\"#ref-2\">[2]<\/a><\/sup><sup><a href=\"#ref-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The MoneySmart website gives this advice under the heading &#8220;Think before you click&#8221;: &#8220;Delete unexpected or suspicious emails and texts. Do not click on links or open attachments.&#8221;<sup><a href=\"#ref-6\">[6]<\/a><\/sup> The same caution suits an unexpected QR code. You cannot read where a code leads before you scan it, so treat a code from an unknown source the way you would treat an unexpected link.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"try-it\">Try it: a grid of your own<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is a simple grid game. It is an analogy for the repair idea, not a real QR code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>You need:<\/strong> graph paper, two pencils and a few sticky notes.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Draw a 5 \u00d7 5 grid of squares.<\/li>\n\n<li>Colour some squares in to make a simple pattern, such as a letter or a shape.<\/li>\n\n<li>Cover one square with a sticky note. Can you still tell what the pattern is?<\/li>\n\n<li>Try covering two squares. At what point does the pattern become hard to recognise?<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What to expect:<\/strong> A simple pattern is often easy to recognise with one square covered. Real QR codes use a far more careful method (Reed-Solomon coding), so this game only shows the idea.<\/p>\n\n\n\n<div class=\"wp-block-group ww-box ww-box-safety has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-3b599d0a wp-block-group-is-layout-constrained\" style=\"background-color:#ffe9e4;padding-top:1.25rem;padding-right:1.5rem;padding-bottom:1.25rem;padding-left:1.5rem\">\n<p class=\"wp-block-paragraph\"><strong>Safety first:<\/strong> Use only paper, pencils and sticky notes for this activity. Do not scan, photograph or open any code you find on a poster, a product or a message, and do not type an address from a code into a device without an adult checking it first.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"go-deeper\">Go deeper: the standard and the maths<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What the percentages mean<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">DENSO WAVE gives the error correction rate for the total codewords, not for the area of the code. In its worked example it says: &#8220;Thus, the error correction rate for the total codewords is 25%.&#8221;<sup><a href=\"#ref-2\">[2]<\/a><\/sup> So a Level Q code can restore about one quarter of its codewords, however large the code is.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A recognised standard<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The QR Code is established as an international standard: &#8220;QR Code is established as an ISO (ISO\/IEC18004) standard.&#8221;<sup><a href=\"#ref-3\">[3]<\/a><\/sup> Standards describe the rules a reader must follow, so different scanners can read the same code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">Frequently asked questions<\/h2>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Who invented the QR code?<\/summary>\n<p class=\"wp-block-paragraph\">DENSO WAVE, then a division of DENSO CORPORATION, announced the release of its QR Code in 1994.<sup><a href=\"#ref-1\">[1]<\/a><\/sup><\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What does QR mean?<\/summary>\n<p class=\"wp-block-paragraph\">QR stands for quick response, which reflects the code&#8217;s focus on fast reading.<sup><a href=\"#ref-1\">[1]<\/a><\/sup><\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What is a module?<\/summary>\n<p class=\"wp-block-paragraph\">A module is one small square in the grid, and it is either dark or light. A Version 1 code is 21 \u00d7 21 modules.<sup><a href=\"#ref-4\">[4]<\/a><\/sup><\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Why can a QR code still work when it is damaged?<\/summary>\n<p class=\"wp-block-paragraph\">It carries repair data made with Reed-Solomon coding. Level H restores about 30% of the codewords, and Level L about 7%.<sup><a href=\"#ref-2\">[2]<\/a><\/sup><sup><a href=\"#ref-3\">[3]<\/a><\/sup><\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Do all QR codes have the same level of repair?<\/summary>\n<p class=\"wp-block-paragraph\">No. The creator chooses one of four levels, L, M, Q or H. Level M is the most often selected.<sup><a href=\"#ref-2\">[2]<\/a><\/sup><\/p>\n<\/details>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"big-idea\">The big idea<\/h2>\n\n\n\n<div class=\"wp-block-group ww-box ww-box-takeaway has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-3b599d0a wp-block-group-is-layout-constrained\" style=\"background-color:#e3f9ff;padding-top:1.25rem;padding-right:1.5rem;padding-bottom:1.25rem;padding-left:1.5rem\">\n<p class=\"wp-block-paragraph\"><strong>A message with a repair kit.<\/strong> A QR code is a grid of dark and light modules. It also carries repair data, so a phone can rebuild the message when part of the code is damaged.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"related\">Related reading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon on William Wonderlab:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Why Is the Sky Blue?<\/li>\n\n<li>How Do Solar Panels Make Electricity?<\/li>\n\n<li>How Does GPS Know Where You Are?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Explore more from scientists:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qrcode.com\/en\/history\/\">QR Code history (DENSO WAVE)<\/a><\/li>\n\n<li><a href=\"https:\/\/www.qrcode.com\/en\/about\/error_correction.html\">QR Code error correction feature (DENSO WAVE)<\/a><\/li>\n\n<li><a href=\"https:\/\/www.qrcode.com\/en\/about\/standards.html\">QR Code standardisation (DENSO WAVE)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"references\">References<\/h2>\n\n\n\n<p id=\"ref-1\" class=\"has-small-font-size wp-block-paragraph\">[1] <a href=\"https:\/\/www.qrcode.com\/en\/history\/\">DENSO WAVE, &#8220;QR Code history&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n\n\n<p id=\"ref-2\" class=\"has-small-font-size wp-block-paragraph\">[2] <a href=\"https:\/\/www.qrcode.com\/en\/about\/error_correction.html\">DENSO WAVE, &#8220;Error correction feature&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n\n\n<p id=\"ref-3\" class=\"has-small-font-size wp-block-paragraph\">[3] <a href=\"https:\/\/www.qrcode.com\/en\/about\/standards.html\">DENSO WAVE, &#8220;QR Code standardization&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n\n\n<p id=\"ref-4\" class=\"has-small-font-size wp-block-paragraph\">[4] <a href=\"https:\/\/www.qrcode.com\/en\/about\/version.html\">DENSO WAVE, &#8220;QR Code version&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n\n\n<p id=\"ref-5\" class=\"has-small-font-size wp-block-paragraph\">[5] <a href=\"https:\/\/www.qrcode.com\/en\/about\/\">DENSO WAVE, &#8220;About QR Code&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n\n\n<p id=\"ref-6\" class=\"has-small-font-size wp-block-paragraph\">[6] <a href=\"https:\/\/www.moneysmart.gov.au\/scams\">MoneySmart (Australian Government), &#8220;Scams&#8221;<\/a> (accessed 25 October 2026)<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>A QR code looks like a random pattern of black and white squares, yet it can hold text that a phone reads in an instant. Here is how it works, and why it can survive damage.<\/p>\n","protected":false},"author":1,"featured_media":719,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wwl_seo_title":"","wwl_meta_description":"","wwl_focus_keyphrase":"","footnotes":""},"categories":[63],"tags":[66,67,65,64],"class_list":["post-80","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology-engineering","tag-data","tag-digital-literacy","tag-error-correction","tag-qr-codes"],"_links":{"self":[{"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":3,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions\/813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/media\/719"}],"wp:attachment":[{"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/williamwonderlab.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}