Secret codes

The barcode

Date: 1952Place: Philadelphia (United States)Who?: Norman Joseph Woodland and Bernard Silver

Black and white bars that describe a product in a flash

Codes and signals
1234567890128
Illustration drawn for the site

In brief

A barcode is a number written with bars of different widths, which a laser reader scans in a fraction of a second. Patented in the United States in 1952, it became essential in shops from 1974.

The story

Norman Joseph Woodland, a student in Philadelphia, was looking for a way to record customers’ purchases automatically. He later said the idea came to him on a Florida beach, as he drew the dots and dashes of Morse code in the sand and stretched them downwards. With Bernard Silver, he filed a patent, granted in 1952, for a code shaped like a target.

It took the laser and small computers for the idea to become practical. On 26 June 1974, in a supermarket in Ohio, a pack of chewing gum was the first product scanned at a checkout with the UPC code. In Europe, the 13-digit EAN code followed in 1976. Its first digits show the national organisation that issued the code, and the last one checks for reading errors.

Example

EAN-13 code: 12 digits of information + 1 check digit calculated from the others.

Did you know?

The last digit of a barcode is a “check digit”: if it does not match the calculation made on the other digits, the till knows the reading is wrong and beeps again.

Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.

In the same family: Codes and signals