Look at a QR code. To human eyes, it looks like a random pattern of black and white squares — perhaps a piece of modern art, perhaps decoration. It is neither. It is information. Each square is a piece of data. Together the squares spell out a website address, a payment code, a contact card, a piece of text, or anything else that can be written in a string of characters. The pattern was designed in Japan in 1994 by an engineer called Masahiro Hara. He worked for a small team at Denso Wave, a subsidiary of the major Japanese auto parts company Denso. The team had been asked to design a better way to track car parts on factory production lines. Traditional barcodes — the lines you see on supermarket products — were not enough. They could only hold about 20 alphanumeric characters. They had to be aligned correctly with the scanner. They became unreadable when smudged. Hara's team needed something better. The solution Hara designed was inspired partly by the Japanese board game Go. In Go, players place black and white stones on a grid. Hara realised that a two-dimensional grid of black and white squares could hold much more information than a one-dimensional line of bars. He added three large square 'finder patterns' in three corners — these let a camera find the code from any angle, even upside down. He used Reed-Solomon error correction so that even if part of the code was damaged, the rest could still be read. The result was the QR code: 'Quick Response code', because it was designed to be read very fast. The first QR code was used in 1994 to track car parts. By 2002, QR codes were spreading across Japanese industry and into general public use through camera phones. By the 2010s, QR codes were ubiquitous in China, where companies like Alipay and WeChat Pay built their entire payment systems around them. By 2025, over 2 billion QR-based payments were happening in China every day. Then came COVID-19. From 2020, QR codes spread worldwide as the standard way to access restaurant menus without touching paper, to register for vaccination passes, to check into venues for contact tracing, to make contactless payments. The QR code, once a niche industrial tool, became part of daily life almost everywhere. One key decision made it all possible. Denso Wave kept the patent on the QR code but declared that they would not enforce it. Anyone could use QR codes for free. The design was open to the world. This lesson asks how a small Japanese engineering team designed a pattern that the world adopted, and what it teaches us about good design and open technology.
Because pattern recognition is a deep human ability that engineers can borrow. Hara saw that the brain processes the Go board fast — players see entire positions at a glance. The same principle could work for a barcode. The problem was making sure the code's orientation was clear. If a 2D code could be scanned from any angle, the scanner had to find the code first, then read it. Hara solved this with three large square 'finder patterns' in three corners of the code. The fourth corner has a smaller alignment pattern. Together, these tell the scanner exactly where the code is and which way up. The trick is that the finder patterns use the ratio 1:1:3:1:1 — meaning the proportions of black and white in the pattern are 1 unit black, 1 unit white, 3 units black, 1 unit white, 1 unit black. Hara discovered this ratio by analysing thousands of printed images, looking for the least-common ratio. By choosing a ratio that almost never appears in printed materials, the scanner could find the QR code instantly without confusion. Students should see that 'engineering inspiration' often comes from outside engineering. Hara's QR code came partly from Go. Many other inventions have similar stories — Velcro came from a man noticing burrs on his dog's fur, the Wright brothers' aeroplane came partly from watching birds. End the discovery by saying that the best engineers are good observers as well as good thinkers.
Because most engineering problems have already been partly solved by someone, somewhere, in some other field. The good engineer knows how to find existing solutions and combine them in new ways. Hara borrowed Reed-Solomon error correction (American mathematics, 1960). He borrowed the principle of two-dimensional grids (existing in many cultures). He borrowed the visual logic of Go (Japanese tradition). He combined these with his own insight about the 1:1:3:1:1 finder pattern ratio. The result was new, but most of the components were old. The deeper point is that 'invention' is often recombination. The car combined the wheel (very old), the internal combustion engine (1860s), the rubber tyre (1888), and many other existing parts. The smartphone combined the mobile phone, the camera, the GPS, the touchscreen, the music player, and many other things. Most great inventions are syntheses. Students should see that 'creativity' includes finding existing tools and using them in new combinations. Hara was creative in this way. The QR code is a synthesis. End the discovery here.
Because adoption beats royalties. A patented technology that nobody uses earns nothing. A free technology that everyone uses creates the user base, the standards, the supply chains, and the brand recognition. Denso Wave still earns money from QR-related products — barcode readers, software, services. They just do not charge for the basic code itself. Compare with other examples: Linux (the free operating system that runs most servers, smartphones, and many other devices) is open-source, but companies like Red Hat make billions of dollars supporting it. Wikipedia is free, but it has become the world's largest reference work. The HTTP protocol that runs the web is free, allowing the entire web economy to exist. M-Pesa (the Kenyan mobile money service in another lesson in this collection) was given regulatory protection that allowed it to grow. The pattern is clear: in many cases, free or open technology spreads faster and ultimately benefits the originator more than charged technology. Students should see that 'who owns the technology?' is sometimes less important than 'how can it spread?'. Denso Wave understood this in 1994. The result is that the QR code is now part of daily life worldwide, and Denso Wave is famous for inventing it. End the discovery here.
Several at once. First, that good technology can wait for its moment. The QR code was technically excellent in 1994 but did not become globally universal until 2020. Twenty-six years is a long time to wait, but the design was good enough that when the moment came, it was ready. Second, that crises drive adoption. COVID-19 was a tragedy, but it pushed many beneficial changes that had been resisted for years — remote work, contactless payment, online education, telemedicine. The QR code's universal adoption was one of these. Third, that infrastructure becomes invisible when it works. Most people now use QR codes daily without thinking about them. The Japanese engineer Masahiro Hara, who designed them, is mostly unknown outside Japan. Good infrastructure becomes background. Fourth, that openness multiplies value. Because Denso did not enforce the patent, the QR code could become a global standard. If they had enforced it, COVID would have spread differently — perhaps governments would have had to use less efficient alternatives. The free availability mattered. Students should see that the QR code is a piece of infrastructure they probably use daily. Almost no one knows the inventor's name. The pattern is part of how the world works now. End the discovery here. The next QR code is being scanned right now. The simplest pattern is doing a complicated job. Now you know what is happening.
A QR code (Quick Response code) is a two-dimensional matrix barcode that can hold much more information than traditional one-dimensional barcodes. It was invented in 1994 in Japan by Masahiro Hara and his team at Denso Wave, a subsidiary of the major Japanese auto-parts company Denso. The original purpose was to track car parts on factory production lines. The design was inspired partly by the Japanese board game Go. The three large square 'finder patterns' in three corners use the ratio 1:1:3:1:1 — a ratio chosen because it almost never appears in printed materials, allowing the code to be found instantly. Reed-Solomon error correction means QR codes can be partly damaged and still readable. Denso Wave kept the patent but declared they would not enforce it — anyone could use QR codes for free. This decision allowed worldwide adoption. By 2002 QR codes were spreading across Japanese industry. By the 2010s they were universal in China, where Alipay and WeChat Pay built their payment systems around them. The COVID-19 pandemic from 2020 drove worldwide adoption — restaurant menus, vaccine certificates, contactless payment, event tickets all moved to QR codes. By 2024, billions of QR codes were being scanned daily worldwide. Over 2 billion QR-based payments happen in China each day. The QR code is now essential infrastructure. Masahiro Hara, the inventor, has stated that the current widespread use was completely unexpected when the code was designed.
| Date | Event | What changed |
|---|---|---|
| 1992 | Denso Wave begins QR code project | Masahiro Hara and his team start designing a 2D barcode for car parts tracking |
| 1994 | QR code launched | Eighteen months of development complete; the design includes finder patterns and Reed-Solomon error correction |
| Mid-1990s | Denso Wave declines to enforce patents | QR codes can be used by anyone for free; foundation laid for worldwide adoption |
| 2002 | Japanese camera phones add QR readers | General public use begins; QR codes spread across Japanese society |
| 2011-2014 | Alipay and WeChat Pay launch QR-based payments | China adopts QR codes as the dominant payment method |
| 2017 | iOS 11 adds native QR code scanning | Apple finally supports QR codes directly; Android follows; every smartphone can now scan |
| 2020-2022 | COVID-19 drives worldwide adoption | QR codes become essential for contactless menus, vaccine certificates, and many other uses |
| Today | Universal infrastructure | Billions of QR codes scanned daily worldwide; over 2 billion QR-based payments per day in China alone |
QR codes are an American invention.
QR codes were invented in Japan in 1994 by Masahiro Hara at Denso Wave. The Reed-Solomon error correction they use was invented by Americans (Reed and Solomon, 1960), but the QR code itself is a Japanese invention.
Crediting Japanese innovation matters; many technologies attributed to America were in fact invented elsewhere.
QR codes contain only website links.
QR codes can hold any text — phone numbers, contact cards, payment instructions, Wi-Fi network details, plain text, mathematical formulas, anything that can be written. They are containers for information of any kind.
Restricting QR codes to URLs ignores their wider use, especially in payments and contact tracing.
QR codes are completely safe.
QR codes can be malicious. Fake codes can link to phishing sites, malware downloads, or fraudulent payment requests. The QR code itself is morally neutral, but what it contains can be dangerous. Users should be careful about scanning codes from untrusted sources.
Treating any technology as 'completely safe' ignores real risks.
The QR code became universal because it was the best technology available.
The QR code became universal partly because of its design but also because Denso Wave gave it away free, because COVID-19 created sudden demand, because smartphones became universal, and because Chinese payment platforms standardised on it. The technology was good; the timing and openness mattered too.
Treating adoption as purely about technical merit ignores the role of business decisions, social events, and timing.
Treat the QR code as a serious example of Japanese engineering. Use 'QR code' (with capital QR) consistently — it stands for Quick Response. Pronounce 'QR' as 'cue-ARR'. Pronounce 'Masahiro Hara' as 'mah-sah-HEE-roh HAH-rah'. Pronounce 'Denso Wave' as 'DEN-so WAVE'. Pronounce 'Reed-Solomon' as 'REED-SO-loh-mon'. Pronounce 'Alipay' as 'AH-lee-pay'; 'WeChat Pay' as 'WEE-chat pay'. Be careful to credit Japanese engineering properly. The QR code is one of many recent Japanese inventions that have become global standards (others include the JPEG image format, the lithium-ion battery, the GPS receiver chip used in early consumer devices). Avoid framing the story as 'rich country technology spreading to poor countries' — it is more accurately 'Japanese technology becoming a global standard via Asian adoption first, then global'. Be balanced about the privacy and security risks. QR codes have benefits (convenience, accessibility, error tolerance) and real risks (phishing, fraud, surveillance). Mention both. Be aware that some students may have had bad experiences with QR codes — phishing, lost vaccine certificates, scams. Acknowledge this without dwelling on it. Be respectful of how QR codes have changed society in different countries. In China, QR-based payment has been transformative but has also raised real concerns about exclusion of people without smartphones. In Japan, QR codes have been used widely for over 20 years with relatively few problems. In the West, mass adoption only happened with COVID-19. Each context is different. Avoid the lazy 'tech is amazing' framing. Good engineering is real, but technology by itself does not solve problems — it shapes them. The QR code's worldwide spread depended on COVID-19, which was a tragedy. The relationship between technology and society is complex. If you have students who use QR codes for daily life (payments, transit, identification), give them space to share. If you have students who do not, do not assume universal use. End the lesson on the present. QR codes are alive, growing, and changing. The story continues.
Answer each question in one or two sentences. Use what you have learned about the QR code.
Where, when, and by whom was the QR code invented?
How does a QR code work?
Why did Denso Wave's decision not to enforce the patent matter?
What was the role of COVID-19 in spreading QR codes?
What does the QR code teach us about good engineering?
These questions have no single right answer. Talk in pairs or small groups, then share your ideas with the class.
Denso Wave decided not to charge for the QR code, even though they had the patent. Was this a good decision?
In China, QR codes are so universal that some people without smartphones cannot easily participate in daily commerce. What are the responsibilities of a society as it moves to digital systems?
The QR code was inspired partly by the Japanese board game Go. What other inventions have come from unexpected sources?
Your feedback helps other teachers and helps us improve TeachAnyClass.