At a basic level, a barcode is a square or rectangle with a combination of vertical black lines of varying thickness and height, white space and numbers that together identify specific products and their relevant information. Computers linked to scanners can read these codes and use the exact combination of bars, spaces and numbers to retrieve the data for that product.