What is a barcode?
A barcode is a pattern of parallel black lines and white spaces of different widths that stores information, such as a product number, in a form a scanner can read. It lets stores and warehouses identify items quickly and accurately.
How it works
A barcode scanner shines light across the code. Black bars absorb light and white spaces reflect it. A sensor reads the pattern of reflections and converts it into numbers.
The number is then looked up in a computer system, which finds details such as the item's name and price.
Common types
Most packaged products in the United States use the UPC, or Universal Product Code, with 12 digits. In many other countries, a 13-digit EAN code is used.
Two-dimensional codes, such as QR codes, store information in squares and patterns instead of lines and can hold much more data.
History
Norman Joseph Woodland and Bernard Silver patented an early barcode design in 1952. Woodland got the idea partly from Morse code, stretching dots and dashes into thin and thick lines.
On June 26, 1974, a pack of Wrigley's chewing gum became the first product scanned with a UPC barcode in a store, at a supermarket in Troy, Ohio.
Uses
Barcodes are used on groceries, books, boarding passes, library cards, hospital wristbands and packages.
They help with checkout speed and stock control.