How do barcodes work? © Getty Images

How do barcodes work?

These zebra stripe patterns are like Morse code for laser scanners.

Asked by: Anonymous
The barcodes you see on goods at the supermarket encode information in patterns of wide and narrow black lines. When a barcode is moved over an optical scanner, the device detects the sequence as a series of long and short impulses almost like Morse code.


Though the origins of barcodes go all the way back to the 1960s, the technology for reading them is developing all the time. The latest readers use lasers. Here, you no longer need to move the product over a scanner. Instead, the laser beams are continuously flipping backward and forward, channelled through an elaborate arrangement of mirrors and prisms. These ensure that the light reflects off the barcode regardless of the angle you’re holding it at.


Subscribe to BBC Focus magazine for fascinating new Q&As every month and follow @sciencefocusQA on Twitter for your daily dose of fun science facts.