We scan QR codes almost every day: to pay with a smartphone, to open a restaurant menu, to show a concert ticket. This square black-and-white pattern was created in 1994 by an engineer at Denso, an auto parts manufacturer in Aichi Prefecture, Japan, to manage inventory at its factories. How did it spread around the world, and why can anyone use it for free? This article traces how it was developed and the intellectual property decision Denso made.
Ten Barcodes for a Single Part
In the early 1990s, auto parts factories used one-dimensional barcodes to manage parts. A barcode, however, could hold only about 20 alphanumeric characters and could not handle kanji. As the variety of parts grew and production came to be managed in finer detail, there was simply not enough room for the information. On the factory floor, workers sometimes had to scan 8 to 10 barcodes lined up side by side to manage a single part, which hurt efficiency and was tiring for the workers.
Masahiro Hara, who was then developing barcode scanners at Denso (today's Denso Wave), saw this firsthand. In the summer of 1992, he told his manager that he wanted to create a new two-dimensional code. The company's conditions were two people, two years, and a minimal budget.
A Go Board and a Building Seen from a Train
To pack in more information, a format that arranges data both vertically and horizontally works better than a barcode, which holds data in only one direction. Hara has said that the board game Go, which he played during lunch breaks, gave him the hint. The structure of black and white stones laid out on a grid became the shape of the two-dimensional code.
The hard part was getting a reader to find the code's position instantly. Here Hara recalled a building he had seen from the window of his commuter train. Only the upper floors had a different window layout from the floors below, and it caught his eye even from a distance. If the code had a marker too, perhaps its position could be identified right away. With that idea, Hara began designing a code with markers in its corners.
The 1:1:3:1:1 Ratio, Found by Examining Every Kind of Print
A marker is useless if it can be mistaken for letters or patterns printed on flyers or cardboard boxes. The development team converted every kind of printed material they could find into black and white and kept measuring the ratios of black and white widths. About six months into the work, they arrived at a ratio that almost never appears in everyday print: 1:1:3:1:1.
By placing squares with this ratio in three corners of the code, a reader could quickly detect the code's position and angle from any direction. The code was completed in about a year and a half and announced in 1994 as the "QR (Quick Response) Code." It can hold up to 7,089 numeric characters, about 200 times the information of a barcode. Each kanji character is packed into 13 bits, so it takes about 20% less data than storing it in the usual two bytes. For factories where codes easily get oily or scratched, it also has an error correction function based on Reed-Solomon codes, and at the highest level the content can be restored even if about 30% of the code is missing.
Holding the Patent, but Not Enforcing It
Denso obtained a patent on the core technology of the QR code. At the same time, it declared that it would not enforce the patent against QR codes that conform to the standard. No matter how good a code is, it will not be used unless the devices and systems that read it spread throughout society. Hara has compared this decision to a principle of Go: "give the other side a little, and take a little more than they do."
What Denso opened up was the technology; it had separate ways to protect its revenue and brand. One was products and technologies such as industrial QR code readers and "SQRC," which stores public and private data in a single code so that the private part can be read only by a dedicated reader. The other was registering the name "QR Code" as a trademark. Denso Wave does not require users to apply for permission, but it asks them to include the notice "QR Code is a registered trademark of DENSO WAVE INCORPORATED." This keeps the name from being treated as a generic term and losing its trademark protection.
Standardization moved forward at the same time. The QR code became a standard of AIM International (the international association of the automatic identification industry) in 1997, a Japanese Industrial Standard (JIS X 0510) in 1999, and the international standard ISO/IEC 18004 in 2000.
Out of the Factory and into the World's Payments
The QR code reached ordinary people in 2002. That year, the Sharp-made J-SH09 mobile phone for J-Phone (now SoftBank) came with a built-in reader, and in 2003 NTT Docomo adopted the feature as standard across its 505i series. People could open mobile websites and coupons just by pointing a camera, without typing a URL.
In the 2010s, Alipay and WeChat Pay in China popularized QR code payments. Because a shop could accept payments simply by putting out a printed code, adoption spread quickly, from street stalls to large supermarkets. In China, where high-value banknotes are few and people were wary of counterfeit bills, QR payments are said to have been embraced as a way to make up for the inconvenience of cash. In India's Unified Payments Interface (UPI) as well, the QR code has become the entry point for in-store payments.
In Europe and the United States, the COVID-19 pandemic from 2020 gave adoption a push. QR codes were used for contactless restaurant menus and the EU Digital COVID Certificate. Since iOS 11 in 2017, the iPhone's standard camera has also been able to read QR codes. Hara's development team won the Popular Prize, chosen by public vote, at the European Inventor Award in 2014, and the QR code was recognized as an IEEE Milestone in 2020.
"Quishing": The Downside of Convenience
As QR codes have spread, so have scams that exploit them. The method is called "quishing," a blend of "QR code" and "phishing." People cannot tell from a black-and-white pattern whether the URL inside is legitimate. Attackers put QR codes in emails posing as real companies, or stick fake stickers over the payment codes at parking lots and bike-sharing stations, to lead victims to fake login or payment screens. Public agencies and security companies advise people not to scan a QR code in an email that asks them to log in, and to open the service from its official app or a bookmark instead.
A Single Sticker Opens the Platform Doors
The fact that a QR code works just by being printed on paper is still being used to solve new problems. On the Toei Asakusa Line in Tokyo, the trains of the different railway operators that run on the line differ in door positions and number of cars, so installing platform screen doors would have required modifying every train. The cost was expected to reach about ¥2 billion. Instead, based on an idea from a Tokyo Metropolitan Bureau of Transportation employee, a system was developed jointly with Denso Wave in which QR code stickers are placed on train doors and read by cameras above the platform to open and close the platform doors in sync. No train modifications were needed, and the cost was kept to about ¥2.7 million for the stickers. The Asakusa Line's platform doors went into operation at Nishi-magome Station in November 2023, completing installation at every station of the Toei Subway.
According to Hara, after communication networks went down in the Noto Peninsula Earthquake in January 2024, there has been growing demand to store medical data in QR codes. Hara says that "nothing is stronger than low tech."
References
- DENSO WAVE, “History of QR Code” (in Japanese)
- Japan Patent Office, ““QR Code” DENSO WAVE” (updated June 2022, in Japanese)
- Tokai Television, “The Hint Was a Game of Go During a Break: The Story Behind the QR Code and Why Its Creator Opened the Patent” (November 2019, in Japanese)
- The Japan Chamber of Commerce and Industry, “Masahiro Hara, QR Code Developer, Chief Engineer, DENSO WAVE: People We Want to Visit” (November 2020, in Japanese)
- DENSO, “Believing in a Faint Light: The Walls the QR Code Developer Overcame and the Source of His Ideas” (August 2024, in Japanese)
- DENSO, “QR Code Recognized as an IEEE Milestone” (October 2020, in Japanese)
- European Patent Office, “Masahiro Hara, Motoaki Watabe, Tadao Nojiri, Takayuki Nagaya, Yuji Uchiyama” (2014)
- Business Journal, “Behind the Scenes of Toei Subway's Platform Doors: An Employee's Idea Cut Costs from ¥2 Billion to ¥2.7 Million” (December 2023, in Japanese)



