Basics August 15, 2026 8 min read By BarcodeForge Team

How to Read a Barcode: A Complete Beginner's Guide

Learn how barcodes work, what the bars and numbers mean, how scanners decode them, and how to read a barcode yourself with a phone or online scanner.

Barcodes are everywhere, yet most people have no idea how those black bars turn into a product name and price at checkout. This guide demystifies the whole process — what the bars mean, what the numbers underneath represent, how a scanner reads them, and how you can read one yourself in seconds.

What a barcode actually is

A barcode is a machine-readable representation of data. In a 1D barcode, information is encoded in the widths of parallel bars and spaces. A scanner measures the pattern of light and dark, translates it into characters, and passes the result to a computer. The barcode is essentially a very fast, error-resistant way to type a number.

The anatomy of an EAN-13

Look at a typical product barcode. Under the bars you will see 13 digits. They are not random — each group has a meaning:

DigitsNameMeaning
1–3GS1 prefixNumbering authority / country of registration
4–8 (varies)Company referenceThe brand or manufacturer
Next digitsProduct referenceThe specific item
Last digitCheck digitValidates the whole number

How the bars encode digits

Each digit is represented by a pattern of two bars and two spaces of varying widths, totalling seven modules. The left and right halves of an EAN-13 use different encodings, and the very first digit is encoded implicitly by the parity pattern of the left half. Guard bars at the start, middle and end tell the scanner where the symbol begins, splits and ends.

What the check digit does

The final digit is calculated from the preceding digits using a modulo-10 algorithm. If a scanner misreads a digit, or someone types the number wrong, the check digit will not match and the system rejects it. This simple trick catches the vast majority of single-digit errors and many transpositions.

How a scanner reads it

  1. 1 Illumination: a laser or LED lights up the symbol.
  2. 2 Reflection: dark bars absorb light, white spaces reflect it.
  3. 3 Sensing: a photodiode converts the reflected light into an electrical waveform.
  4. 4 Decoding: the scanner measures bar/space widths and maps them to characters.
  5. 5 Validation: the check digit is verified, then the result is sent to the host as if typed.

Modern imaging scanners take a photo of the whole symbol and decode it in software, which is why they can read 2D codes and damaged 1D symbols more easily than old laser guns.

How to read a barcode yourself

With a smartphone

For QR codes, just open your camera app and point it at the code — a link or text appears. For 1D product barcodes, use a dedicated barcode scanner app or a shopping app that looks up the product.

With an online scanner

BarcodeForge's free scanner reads both 1D and 2D codes from your camera or an uploaded image, entirely in your browser. It shows the decoded text and the symbology, and can look up retail products by their GTIN.

Can you read the bars by eye?

Not realistically — the patterns are too fine and the encoding too clever. But you can read the human-readable digits underneath, and you can verify the check digit by hand with our check digit calculator. The bars exist precisely so machines can read them faster and more accurately than any human.

Summary

A barcode is a fast, robust data entry method. The bars encode characters; the digits underneath are the human-readable form; the check digit guards against errors; and a scanner converts light patterns into data. With a phone or a free online scanner, you can read almost any code in seconds.

Tags: how to readbarcode basicsscannerean

Try it yourself — free, no signup

Generate any barcode or QR code mentioned in this guide, with correct check digits and print-ready export.

Related guides