The Story of the QR Code: From a Go Board to Every Pocket
Checking a restaurant menu, paying a bill, getting into a museum: we hold up our phones to a little black-and-white square, and in under a second a page pops up. That square is a QR code, and it has become so ordinary that we rarely wonder who invented it, or why. Its story begins in a car-parts factory with an impatient engineer, and along the way it involves a board game and a skyscraper.
A problem on the factory floor
In the early 1990s, the Japanese car-parts maker Denso tracked its components with ordinary barcodes. The trouble was that a barcode could hold only about 20 characters, so boxes often carried several of them. Workers had to scan each one in turn, and production and shipping slowed down.
Masahiro Hara, an engineer at Denso, set out to fix this. He wanted a code that could hold far more information, be read much faster, and handle Japanese characters such as kanji and kana. Work began in 1992, and after about a year and a half of development the QR code was unveiled in 1994. The name stands for “Quick Response.”
A Go board and a skyscraper
Hara has said that one source of inspiration was Go, the ancient Asian board game played with black and white stones on a grid. Playing Go over lunch, he noticed that even when a stone sat slightly off an intersection, players could still tell where it belonged. That gave him confidence that a scanner could read squares that were imperfectly printed or slightly damaged. The new code would store information both horizontally and vertically, as a two-dimensional grid.
He wasn’t starting from zero: in 1987, David Allais at the American company Intermec had already developed two-dimensional barcodes, and Hara built on that idea.
The harder question was how a scanner would pick the code out from the text and pictures around it. Hara has recalled looking out of a train window and noticing a tall building that stood out from everything around it. The code, he realised, needed a marker that stood out in the same way.
His team surveyed piles of printed material, from newspapers and magazines to cardboard boxes, looking for the ratio of black to white that appeared least often. The winner was 1:1:3:1:1. The nested squares in three corners of every QR code follow that ratio. These “position detection patterns” let a reader find the code instantly and work out its orientation from any angle.
The image at the top of this article shows the parts of a QR code. The large corner squares are the position markers. Larger codes also have a smaller alignment square, which helps the reader map the grid even when the code is printed on a tilted or curved surface. The alternating black and white dots running between the corners are the timing patterns, which mark out the rows and columns. The rest of the space holds the actual data and error-correction information. Even the blank margin matters: this “quiet zone” separates the code from everything around it.
Why did it catch on?
A few reasons explain its success:
- Capacity: a QR code can hold about 7,000 digits, compared with roughly 20 characters for a classic barcode.
- Speed: according to Denso, it could be read more than ten times faster than other codes of its day.
- Resilience: built-in error correction means a code can still be read even if up to 30 percent of it is dirty or damaged.
- Any angle: thanks to the position markers, you don’t need to hold it straight.
- Free to use: perhaps the most important reason of all.
Did you know? Denso Wave patented the QR code but announced that it would not enforce the patent, and it published the specifications. That is why anyone, anywhere, can use QR codes free of charge.
From the factory to our pockets
The QR code spread through industry first. Formal standards followed: AIM in 1997, the Japanese Industrial Standard (JIS) in 1999 and the international ISO standard in 2000. With an open patent and a clear standard, anyone could build their own reader or software.
The real leap came in 2002, when mobile phones with built-in QR readers went on sale in Japan. The code escaped the factory and turned up on adverts, tickets and business cards. As smartphone cameras improved, it spread around the world, and during the pandemic, contactless menus, payments and check-ins made it part of everyday life.
The code kept evolving, too. Micro QR, designed for tiny surfaces, arrived in 2004, and in 2014 came FrameQR, which leaves room for a picture or text in the middle.
An engineer’s legacy
Masahiro Hara was a finalist for the European Patent Office’s European Inventor Award in 2014, and the QR code won Japan’s Good Design Award in 2012. The IEEE, one of the world’s leading engineering organisations, has also recognised its development as a milestone.
Every time we scan a menu or flash a boarding pass, we are using the answer to a factory problem. A board game, a skyscraper and a patient team: like many great inventions, the QR code was born from an everyday headache.
Curious how far Japanese engineering reaches today? Read about Japan’s MMX mission to Phobos. To see how technology picks up signals from distant worlds, look at the radio waves caught from an exoplanet. And for another kind of “code” where no two patterns are alike, try the art of ebru.
Image: Zephyris / Wikimedia Commons (CC BY-SA 3.0)
Sources
- DENSO WAVE – History of QR Code
- IEEE Spectrum – How a Board Game and Skyscrapers Inspired the Development of the QR Code
- European Patent Office – Masahiro Hara, European Inventor Award 2014
- GovTech Singapore – The QR Code is everywhere, but where did it come from?
