A crisp sample QR code on a white background

Scanned Every Day Around the World — the QR Code, a Small Invention Made in Japan

You scanned one of these squares somewhere today, too. On a restaurant menu, at a store checkout, on a plane ticket or a concert ticket, this small square of black dots has become part of everyday life all over the world. The name QR comes from the English words Quick Response. Yet few people know that this square was born in 1994, in a Japanese auto parts factory. The company that made it was Denso, and the engineers at its center were Masahiro Hara and Motoaki Watabe. It did not begin in a grand research institute, but on a factory floor wrestling with oil-stained barcodes.

The Factory Floor’s Cry for Help — Ten Barcodes on a Single Product

In the early 1990s, the auto industry was shifting from mass production to high-mix, low-volume production. As models and parts multiplied, the amount of information to be managed exploded, but the barcodes used on the floor could hold only about twenty alphanumeric characters. So workers lined up some ten barcodes on a single product and read them one by one. In Masahiro Hara’s words, “Reading them felt like more work than making the products themselves.” Reading several thousand labels a day wore the workers down, and when a barcode got dirty with oil, it could not be read at all. From the floor came a plea: “Do something — anything.”

A barcode printed on product packaging
A barcode printed on product packaging. A capacity of only about twenty characters was the limit on the factory floor at the time. Photo: Sokolikmawwer0, CC BY-SA 3.0, via Wikimedia Commons

Masahiro Hara was an engineer in charge of barcode research and development. He had graduated from the Department of Electrical and Electronic Engineering in the Faculty of Engineering at Hosei University, and in 1980 he joined Nippondenso (now Denso). Told by his boss, “In ten years, the computer age will be here. If you can’t do software, you’ll be no use,” he had taught himself software. The first barcode reader Masahiro Hara built after joining was turned away by supermarkets, whose people said their regular cashiers were faster. But 7-Eleven, then busy opening new stores, adopted it, saying it was easy for clerks who were not used to the register. Watching that sales management spread across the whole retail industry, Masahiro Hara became convinced that an age of technology handling far more information was bound to come. At first he tried to answer with a faster scanner, but he ran into the limits of the barcode itself. He also examined the two-dimensional codes that already existed overseas, but they took several seconds to read and were useless on the floor. The company’s finances had worsened, and the budget was not generous. Masahiro Hara set hardware development aside and decided to create the code itself, something that could be built with ingenuity alone. He gave himself two years.

Masahiro Hara and Motoaki Watabe

Masahiro Hara says, in an interview with the Asahi Shimbun, that in 1992 he asked his boss, “Let me build the world’s best code,” and began development. The work started in Denso’s application equipment technology division. At its center within Denso were Masahiro Hara and his junior colleague Motoaki Watabe. The project leader was Tadao Nojiri, and Takayuki Nagaya and Yuji Uchiyama of Toyota Central R&D Labs also took part. Masahiro Hara led the invention and Motoaki Watabe was mainly in charge of the software, and the two of them together also found the 1:1:3:1:1 ratio. The names of Masahiro Hara and Motoaki Watabe stand side by side as inventors on the basic QR code patent, and on the patent for the reading device, only these two names are listed as inventors. Masahiro Hara and Motoaki Watabe kept going, they say, talking of a dream: “Wouldn’t it be fun if this new code spread all over the world?” Part of what drove them was a streak of defiance, the wish to answer back to those who said that Japan — an auto parts company, of all things — could never create a code the world would use. The goal was clear: to read five times the information of a barcode, at the same speed as a barcode, 30 milliseconds. That goal of a “quick response” later became the basis of the name.

What Go Gave Them Was Not the Ratio, but a Way of Reading

The heart of the QR code is its three large squares, the finder patterns. A reader finds these squares first and grasps at once where the code is and which way it faces. At the starting point of this idea lies the game of Go. Playing Go at lunchtime, Masahiro Hara came to realize that even when a stone sits slightly off the center of a grid point, a person knows its position from its relation to the surrounding stones. What if the reading side corrected for the offset and read “approximately”? That thought became the origin of the structure that corrects distortion as it reads.

There are only three of the large squares, not four. If all four corners had one, there would be no way to tell which side is up. The empty corner becomes the signal that shows the direction.

Black and white stones on a Go board
Black and white stones on a Go board. The human eye, which knows a stone’s position even when it sits off center, was the hint for how a machine could read. Photo: Dietmar Rabich, CC BY-SA 4.0, via Wikimedia Commons

It is often said that the finder pattern’s 1:1:3:1:1 ratio came from Go, but the story confirmed in Masahiro Hara’s own interviews is different. That ratio is something Masahiro Hara and Motoaki Watabe found by surveying printed matter wherever they could get hold of it. To find a ratio that barely exists in the world, they photographed more than 5,000 pages of printed material — forms and product boxes, newspapers and magazines — and measured the proportions of black and white. They examined the characters of the major writing systems as well, from kanji and the alphabet to the Korean and Arabic scripts, avoiding common ratios until they reached the rarest one, 1:1:3:1:1. It took about half a year from the start, and along the way a computer left running overnight once stopped, and all the data they had built up was lost.

The idea for the marker itself came from somewhere else. On a day off, drinking a beer and gazing out of a train window, Masahiro Hara noticed a building in which the arrangement of windows on the upper floor alone was different. “If there were a marker that said this is a QR code, it could be read quickly” — that was the moment. Because this ratio does not change no matter which direction it is read from, a machine instantly recognizes this square as a QR code, from the side or at an angle.

When a phone camera points at this square, it looks first for the three large squares. Because of these squares, it knows at once where the code is and which way it faces, even if the code is upside down or tilted. Then it reads the black-and-white pattern of the small cells in turn and turns it into letters and numbers; if part of the code is stained or torn, it calculates the missing portion from the remaining pattern and restores it. Here lies the secret of how the code is revived and read, within its set limit.

The finished code was read at the same speed as a barcode, while holding about 200 times the information. In its largest size, it can hold up to 7,089 numeric characters, 4,296 alphanumeric characters, and 1,817 kanji characters. For the same amount of information as a barcode, its size shrinks to one-tenth. Above all, true to a code made for factory use, it can be read even when dirty, within a set limit. Through a function called error correction, the person making the code can choose one of four levels, from 7% to 30%, and even if that proportion of the code is damaged, the original information is restored and read. The factory floor’s cry over oil stains is inscribed, just as it was, in the very middle of the specifications.

In a logistics warehouse, a worker uses a handheld terminal to read QR labels on shelves
In a logistics warehouse, a worker uses a handheld terminal to read QR labels on shelves. Born in a factory, the code still works on the floor today. Photo: ОператороФФ (operatoroff.ru), CC BY 4.0, via Wikimedia Commons

Its first job was production management for auto parts. In the same year, 1994, it also began to be used for product management on contact lens packaging.

The Denso head office in Kariya, Aichi Prefecture
The Denso head office in Kariya, Aichi Prefecture. The QR code was born in this company’s application equipment technology division. Photo: Jihara19, CC BY-SA 4.0, via Wikimedia Commons

Opening the Patents

Here this story reaches its turning point. Denso published the specifications of the QR code and declared that it would not exercise its patent rights on the technology covered by the standard. Masahiro Hara says: “I thought that if we wanted it to spread early, opening the patents was the right answer,” and “We decided from the beginning to offer it free of charge.” The company pictured its profit in the readers and systems that read the code. Once it became a code that anyone could use with confidence, standardization followed. In 1997 came the AIM international standard, in 1999 the Japanese Industrial Standard (JIS), and in June 2000 the international standard ISO/IEC 18004. The trademark on the name “QR Code” is still held by Denso Wave, but after the declaration that the rights would not be exercised, the patents expired as their terms ran out.

Out into the World

Betting tickets of the Japan Racing Association have been printed with QR codes since 2001. The first time Masahiro Hara met his own invention out on the street, it was a losing betting ticket discarded at a station. Seeing the QR code on it, he says, he was “deeply moved.”

In August 2002, the first mobile phone with a function for reading QR codes came out in Japan. Once reading alone was enough to reach a website or receive a coupon, the code left the factory and spread into the streets. Masahiro Hara also says he was moved, around that time, by the sight of high school girls in Harajuku reading QR codes printed in magazines with their mobile phones to get online. In the 2010s, smartphones lit the fire. In China, mobile payments in the last three months of 2017 reached about 37.7 trillion yuan (about 650 trillion yen). Even small shops and street stalls taking money through printed QR codes became an everyday scene. In 2020, during the COVID-19 pandemic, restaurants around the world brought in this square for contactless menus, and the National Restaurant Association reported that half of the full-service restaurants in the United States newly adopted QR menus.

A mobile payment QR sign at a café counter in China
A mobile payment QR sign at a café counter in China. Photo: Harald Groven, CC BY-SA 2.0, via Wikimedia Commons
A payment QR notice posted inside a city bus in Bengaluru, India
A payment QR notice posted inside a city bus in Bengaluru, India. The factory’s square crossed continents and reached even buses. Photo: Mallikarjunasj, CC0, via Wikimedia Commons

The QR Code, Upgraded

The code did not end with its completion. Once anyone could read it, a problem arose: even a company’s internal information could be read by anyone. In 2007, Denso Wave created the SQRC, which holds public information and encrypted private information divided within a single code, and in 2011 it brought out an anti-copy QR code that cannot be copied with a copier. On the Toei Subway’s Asakusa Line, since 2019, cameras at the stations have been reading QR codes affixed to train doors to open and close the platform doors.

Awards and Honors

  • 2000 — Chunichi Industrial Technology Award. Recipients: Tadao Nojiri, Masahiro Hara, and Motoaki Watabe (Denso Technical Review)
  • 2002 — Masahiro Hara receives the R&D 100 Award in the United States
  • 2014 — European Inventor Award, Popular Prize: Masahiro Hara, Takayuki Nagaya, and team (European Patent Office)
  • 2016 — Selected for the 100 Innovations of Postwar Japan (Japan Institute of Invention and Innovation)
  • 2020 — Ichimura Prize in Industry, main award. The developers were Masahiro Hara and Motoaki Watabe (Ichimura Foundation for New Technology)
  • 2020 — The QR code is recognized as an IEEE Milestone, a first for the Denso Group
  • 2022 — Denso receives the IEEE Corporate Innovation Award, for the development of the QR code and its spread around the world
  • 2023 — Masahiro Hara receives the Imperial Prize and the Japan Academy Prize. The selection noted that, for a corporate researcher without a doctorate and with only seven published papers, even becoming a candidate was exceptional
  • 2024 — Masahiro Hara receives the Chunichi Culture Award (Chunichi Shimbun)
  • 2026 — Masahiro Hara receives the Asahi Prize for 2025 (Asahi Shimbun). At the presentation ceremony, Masahiro Hara named, as the reasons for its spread, an easy-to-read code and its evolution, the opening of the patents and standardization, and uses expanded together with users

How the Development Record Was Checked

The contents of this article were checked one by one against the Japan Patent Office’s official introduction page, the official development stories of Denso and Denso Wave, the official specifications of the Good Design Award, and press releases of the European Patent Office. Interview and lecture coverage in the Asahi Shimbun and the Yomiuri Shimbun was checked as well. Where a widely told explanation differs from the inventor’s own words — as with the common story that the ratio came from Go — this article distinguishes them on the basis of the inventor’s own interviews.

Videos

Words in This Article

  • QR code: The initials of Quick Response. A two-dimensional code developed by Denso in 1994.
  • Finder pattern: The three large squares in a QR code. They are the markers by which a machine finds the code’s position and orientation.
  • Error correction: A function that restores the original information even if part of the code is dirty or torn. The level of damage it can tolerate can be chosen from four levels.
  • Reed–Solomon code: The mathematical method used in error correction. It is also used on music CDs and the like.
  • International standard (ISO): An agreement that brings standards that differ from country to country into one shared worldwide standard. The QR code was adopted as ISO/IEC 18004 in 2000.
  • SQRC: A later form of the QR code that holds public information and encrypted private information, divided within a single code. It was developed by Denso Wave in 2007.

Sources

MDJ Craft Select is made slowly, one story at a time — research, writing, and fact-checking done by hand. You can also leave a small tip here — the price of a coffee.

Share this story

Similar Posts