Lines in the Sand: The Beach Doodle That Became the Barcode

Updated November 20, 2026•5 min read
Lines in the Sand: The Beach Doodle That Became the Barcode

Beep. That small sound happens billions of times a day, at grocery stores, libraries, warehouses, and airports. A pattern of black and white stripes passes under a scanner, and a computer instantly knows exactly what it is looking at.

The barcode is so ordinary now that it's easy to forget someone had to invent it. The story starts in the late 1940s with a graduate student, a frustrated grocery executive, and a handful of sand.

A problem at the checkout

In 1948, Bernard Silver, a graduate student at the Drexel Institute of Technology in Philadelphia, overheard a conversation between a local grocery executive and a dean at the school. The executive wanted a way to capture product information automatically at the checkout, so cashiers wouldn't have to type in every price by hand.

The dean wasn't interested, but Silver was. He told his friend Norman Joseph Woodland, a fellow student and teacher, and the two began working on the idea.

Morse code in the sand

The most famous part of the story happened on a beach in Miami. Woodland was thinking about the checkout problem and remembered the Morse code he had learned as a Boy Scout, where letters are made from dots and dashes. As he later described it, he pushed his fingers into the sand and pulled them toward himself, drawing the dots and dashes out into long thin lines.

Thick lines and thin lines, he realized, could carry information the same way dots and dashes did. That was the core idea of the barcode.

Woodland and Silver went on to design a circular version, a "bullseye" made of rings, so it could be read from any direction. They filed for a patent in 1949, and it was granted in 1952.

An idea ahead of its time

There was just one problem. In the early 1950s, there was no practical way to read a barcode quickly and cheaply. The scanners of the day were bulky, and the computers needed to look up product information were enormous and expensive. Woodland and Silver's idea was clever, but the technology around it wasn't ready.

That changed with two inventions that came later: the laser and the affordable computer. By the late 1960s and early 1970s, both had improved enough that a checkout scanner finally looked possible.

Railroads in the United States tried a related idea in the 1960s, using colored stripes on the sides of railcars so trackside scanners could identify them. The system had trouble with dirt and wear, and it was eventually abandoned, but it showed that machine-readable codes could work in the real world.

The grocery industry makes a choice

By the early 1970s, American grocery companies were ready to take barcodes seriously. They formed a committee to choose a single standard, so every product in every store would use the same kind of code.

Several companies submitted designs. One early test used a bullseye-style code, but the circular pattern had a weakness: when printed at high speed, the ink tended to smear, which made the code harder to read. A design developed at IBM by an engineer named George Laurer used straight vertical stripes instead, which held up much better on printing presses. Woodland, who was also working at IBM at the time, contributed to the effort.

In 1973, the committee chose the IBM design. It became the Universal Product Code, better known as the UPC, the striped pattern you can find on packaging all over North America.

The first scan

On June 26, 1974, at a Marsh Supermarket in Troy, Ohio, a cashier scanned the first product with a UPC barcode at a retail checkout. It was a ten-pack of Wrigley's Juicy Fruit chewing gum. That pack of gum is now part of the collection at the Smithsonian's National Museum of American History.

Adoption was slow at first. Stores had to buy expensive new scanners, and manufacturers had to print codes on their packaging. Neither side wanted to go first. Over the following decade, as more products carried barcodes and scanners became cheaper, the system took off. In 1977, Europe introduced its own compatible version, the EAN code, and barcodes spread around the world.

How a barcode actually works

A standard UPC barcode represents twelve digits. The stripes encode those digits through the widths of the black bars and white spaces between them. Taller guard bars at the start, middle, and end help the scanner find its place and know where the code begins and ends.

The final digit is a check digit, calculated from the other eleven. If the scanner misreads a stripe, the math won't add up, and the system knows to try again. That's one reason barcode scanning is so reliable.

A common myth is that barcodes contain the price. They don't. A barcode identifies the product, and the store's computer looks up the current price. That's why a store can change prices without reprinting a single label.

From stripes to squares

The barcode's success inspired new designs. In 1994, an engineer named Masahiro Hara at the Japanese company Denso Wave created the QR code to help track automotive parts. Its square grid can hold far more information than a row of stripes, and it can be read from any angle. Decades later, QR codes found a second life on restaurant menus, tickets, and posters.

Woodland received the National Medal of Technology in 1992 for his work on the barcode. Silver had died young, in 1963, years before the first scan at that Ohio supermarket.

The beep that changed shopping

It took more than twenty-five years for a sketch in the sand to become the beep at the checkout. Along the way, it needed lasers, computers, a committee, and one pack of gum.

The next time you hear that familiar beep, you'll know it started with a student on a beach, pulling dots and dashes through the sand.