QR code, designed with a Go board in mind
A Japanese car-parts factory in the early 1990s. On every crate, barcode labels line up, and operators scan them one after another. Each barcode holds only twenty or so characters. Customers want more, and would like to write kanji in them too. An engineer will find the answer on a game board: black and white stones placed on a grid.

A code that says more
The engineer was Masahiro Hara. He worked at Denso Wave, then a division of the automotive equipment maker Denso, which developed barcode readers. The barcode had revolutionised shop tills, but it had a limit: it encoded information in one direction only and held barely twenty alphanumeric characters. Factories wanted to put much more in it, including Japanese characters.
Two-dimensional codes already existed. Hara noticed that their designers at other companies were obsessed with how much information they could cram in. He wanted a code that held a lot but, above all, could be read very fast. He set out with a single teammate. The layout of black and white squares in their first design was inspired, according to accounts of its creation, by Go stones on their grid.
The rarest ratio in print
The obstacle came down to one question: how does a reader find the code, quickly, whatever angle it is presented at?
The team devised position markers placed in three corners of the code. But a marker is useless if it looks like something else on the label or the crate. It must be unique. To find it, Hara and his teammate undertook a dogged survey: they reduced pictures and symbols printed on leaflets, magazines and cardboard boxes to black and white areas, and measured the ratio of their widths. All day long, for days on end. They found the least used ratio in all that printed matter: 1:1:3:1:1. A black band, a white one, a black one three times as wide, a white one, a black one.
That ratio draws the three corner squares. By searching for it, a reader locates the code and its orientation at any angle, through 360 degrees. After a year and a half, the code could hold about 7,000 digits, encode kanji, and be read more than ten times faster than other codes. Denso Wave launched it in 1994 as the QR code, for quick response.
Why it survives stains
Why does a QR code stay readable when it is stained, scratched or partly hidden by a logo?
Because it contains more information than it needs. The code includes error correction, the Reed-Solomon method, which adds check data. At the highest level, a QR code can lose up to about 30% of its data and still be read. Lower levels, with less redundancy, suit food packaging subject only to minor scuffs; the highest level is used for car parts and factory floors.
Its success also owes something to a decision. Denso Wave holds patents on the code but chose not to enforce them for codes that follow the standards. The QR code was standardised in Japan in 1999, then internationally in 2000 as ISO/IEC 18004.
A code on the pack
The QR code has moved from crates of parts to packaging, posters and phones. On a pack, it raises three questions.
- The right code for the job. On medicine boxes sold in the European Union, the unique identifier required by Delegated Regulation (EU) 2016/161 is carried by another 2d barcode, the DataMatrix. The QR code is used rather for consumer information. See the barcode and counterfeit medicines.
- The medium. A code is printed on a label or laser-etched on a plastic part. The contrast and sharpness of the marking decide whether it can be read. See laser marking and the self-adhesive label.
- The surface. Etched or moulded, a marking depends on the part's surface finish, and so on the mould. See the mould date insert.
Tecmom designs its moulds and makes bottles and caps for the pharmaceutical, cosmetic, veterinary and food markets. See our expertise and our pharmaceutical packaging.
Masahiro Hara searched thousands of printed pages for the pattern that never appeared there, and put it in three corners of a square inspired by a Go board. The code born to track car parts is now printed or etched on packaging, and read with a flick of a phone, at any angle.
Glossary
- QR code
- A two-dimensional barcode, quickly readable at any angle.
- Position marker
- A square placed in three corners of a QR code that lets the reader locate and orient it.
- Error correction
- Redundant data that allows a partly damaged code to be read.
- DataMatrix
- Another 2D barcode, used for the unique identifier of medicines in Europe.
- Laser marking
- Etching information onto a part with a laser beam.