What Is a Barcode? Explained Simply
The pattern of lines that lets a scanner read a product in an instant.
What a barcode is
A barcode is a machine-readable pattern that encodes information, most familiarly the pattern of parallel black lines of varying widths you see on product packaging. A scanner reads the pattern and instantly retrieves the encoded information, such as a product's identifying number. Barcodes let information be read quickly and accurately by machines, which is why they have become ubiquitous in retail, logistics, and countless other settings where items need to be identified fast.
How a barcode works
A traditional barcode encodes data in the widths and spacing of its lines and the gaps between them. A scanner shines light at the barcode and measures the reflections: dark lines absorb light while light gaps reflect it. By reading this pattern of light and dark, the scanner decodes the sequence of numbers or characters the barcode represents. That decoded value, often a product number, is then looked up in a database to find details like the item's name and price.
What the barcode stores
It is a common misconception that a barcode itself contains details like a product's price. In most retail systems, the barcode simply encodes an identifying number. When scanned, that number is used to look up the actual information, such as the name and current price, in the store's computer system. This is powerful because it means prices and details can be updated centrally in the database without needing to relabel every item; the barcode just points to the record.
Barcodes vs. QR codes
Traditional barcodes are one-dimensional, storing data in a single row of lines, which limits how much information they hold. QR codes are two-dimensional, using a square grid of patterns that can store much more data, including text and web links. A regular barcode typically encodes a short identifying number, while a QR code can hold far more. Both are machine-readable codes, but the QR code's two-dimensional design lets it pack in significantly more information.
Why barcodes transformed commerce
The barcode revolutionized retail and logistics by making it possible to identify items almost instantly and accurately. Before barcodes, checking out meant manually entering prices, which was slow and error-prone. Barcodes enabled fast, reliable scanning at checkout, automated inventory tracking, and efficient management of goods through supply chains. This humble pattern of lines quietly transformed how stores, warehouses, and shipping operate, becoming one of the most impactful everyday technologies.
Why it matters
Barcodes are so common that we rarely think about them, yet they power the fast, accurate identification of products that modern commerce depends on. Understanding how a barcode works, and that it usually just encodes a number looked up in a database, demystifies something you encounter every day. For anyone curious about the everyday technology around them, the barcode is a simple, elegant example of how encoding information for machines transformed the world.
Related on Skillo
See also: What is a QR code? Explained, What is NFC? How tap-to-pay and contactless work.
Sources
Published date reflects the original event date (2023-08-08). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.
Written by
Skillo Staff
0 Comments
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.