How to Read a Barcode: 2026 Step-by-Step Guide

the figure reading barcodes on books and a book with a barcode

To read a barcode, point your phone's camera at the symbol and let the built-in scanner or Google Lens decode it. To read one by eye, look at the digits below: the first six identify the manufacturer, the next five identify the product, and the last digit verifies the scan is accurate.

What Is a Barcode?

A barcode is a machine-readable pattern that stores data as bars, spaces, or pixels. Scanners convert that pattern into the numbers, letters, or URLs printed underneath or encoded inside it.

Originally, barcodes encoded data by varying the widths and spaces of parallel lines — what we now call linear or 1D barcodes. Today they also come as squares, dots, hexagons, and stacked grids: the 2D family, which includes QR codes, Data Matrix, and PDF417.

Diagram showing the structural elements of a standard linear barcode
The basic anatomy of a 1D barcode — quiet zones, start/stop characters, data bars, and the check digit.

You'll find them everywhere: cereal boxes, warehouse pallets, pharmacy shelves, parking tickets, airline boarding passes, even on the back of your driver's license. Each one carries a unique identifier that ties a physical object to a database record — manufacturer, SKU, batch, expiry, you name it.

The Anatomy of a Linear Barcode

Every 1D barcode has the same four pieces:

  • Quiet zone: The blank margin on either end. It's not decorative — the scanner uses it to know where the symbol starts and stops.
  • Start and stop characters: Special bar patterns at each edge that tell the scanner which direction to read (left-to-right or right-to-left).
  • Data characters: The bars and spaces in the middle. Each character is a unique pattern of varying-width bars.
  • Check digit: A calculated number that verifies the rest of the read. If the math doesn't add up, the scanner rejects the scan.

2D barcodes work differently. Instead of bar widths, they use a grid of black-and-white modules. The three big squares at the corners of a QR code are finder patterns — they tell the scanner which way is up. Timing patterns sync the grid spacing, data cells carry the payload, and error-correction code (ECC) lets the scan still resolve even if part of the symbol is scratched or covered. If you want a deeper structural breakdown, our guide on how do barcodes work walks through each layer.

The 4 Main Types of Barcodes

Not all barcodes are built the same. The type you're looking at decides which scanner can read it, how much data it carries, and where it shows up in the wild.

1. Linear (1D) Barcodes

Example of a 1D linear barcode used on retail products
A typical 1D linear barcode — the format you see on every grocery item.
  • UPC (Universal Product Code): The 12-digit code on almost every grocery item in the US and Canada.
  • EAN-13 and EAN-8: The European cousin of UPC, used internationally. EAN-8 is the compressed version for small packaging.
  • Code 128: Encodes all 128 ASCII characters. You'll see it on shipping labels, healthcare wristbands, and logistics paperwork.
  • Code 39: Encodes letters and numbers. Common in automotive, defense, and ID badges.
  • Interleaved 2 of 5: Numeric-only and dense. Used in warehouses, distribution centers, and on shipping cartons.

2. Two-Dimensional (2D) Barcodes

Example of a 2D barcode such as a QR code with stacked data
A 2D barcode like a QR code packs far more data into the same printable footprint.
  • QR Code: Holds URLs, contact cards, Wi-Fi credentials, and plain text. Any smartphone camera reads them — that's why they took over marketing.
  • Data Matrix: Tiny but high-density. Electronics manufacturers print them on chips and circuit boards because they fit in a few square millimeters.
  • PDF417: Stacked linear format that can store fingerprints, photos, and signatures. The back of your driver's license has one.

If you're choosing between formats for a new project, our QR codes vs barcodes breakdown covers when each one wins.

3. Composite Barcodes

Composite barcode sample combining linear and 2D formats on a pharmaceutical product
Composite barcodes stack a 2D symbol on top of a linear one — common on pharmaceuticals.

Composite codes pair a 2D symbol on top of a linear one. Pharmacy and healthcare workflows lean on them because the linear half handles the basic SKU at point-of-sale while the 2D half stores the lot number and expiry date the regulator wants tracked.

4. Postal Barcodes

Postal barcode sample used by mail delivery services for parcel routing
Postal barcodes route mail through automated sorting equipment.
  • Intelligent Mail Barcode (IMb): The current US Postal Service standard. It rolls routing and tracking into one symbol.
  • POSTNET: The older USPS format for ZIP+4 routing. Still seen on legacy bulk mail.

Want the bigger picture on every format out there? Our barcode types guide compares them side by side.

How a Barcode Scanner Actually Works

Here's the part most people skip: how does a scanner turn a printed pattern into text? The answer is contrast.

A laser or LED illuminates the symbol. White bars and spaces reflect a lot of light back; black bars absorb it. A sensor — either a photodiode in older laser scanners, a CCD chip in linear imagers, or a camera sensor in 2D imagers and phones — measures those reflections as a series of high/low voltage pulses. The pulses become binary (1 for white, 0 for black). The decoder then matches that binary sequence against the symbology rules (UPC, Code 128, QR, etc.) and spits out the original character string. The check digit gets recalculated to confirm nothing was misread. The whole process takes a few milliseconds.

That's why print quality, contrast, and lighting matter so much. The scanner isn't "looking" at the pattern the way you do — it's measuring tiny changes in reflected light. Anything that disrupts that signal (smudges, glare, fading, wrinkled labels) breaks the read.

How to Read a Barcode on Your Phone

Your phone is already a barcode scanner. You just have to know which app to point at the symbol.

Step 1: Pick the Right App for the Job

For QR codes specifically, you don't need anything extra:

  • iPhone: The native Camera app reads QR codes. Open it, aim at the code, and a notification banner pops up with the link.
  • Android: Most modern Androids do this natively too. If yours doesn't, Google Lens is built into the Google app and the Photos app on Pixel devices.

For 1D barcodes (UPC, EAN, Code 128, etc.), you usually need a dedicated app. I've had good experience with ScanLife, Barcode Scanner by ZXing Team, and the Inventory apps that come bundled with retail POS systems. Most are free and ad-supported.

Step 2: Grant Camera Permission

The first time you open a scanner app, it'll ask for camera access. Approve it. Without it the app has nothing to work with.

Step 3: Frame and Focus

Close-up of a barcode printed on a cereal box ready to be scanned
Hold steady, fill the frame, and let autofocus lock — that's the whole technique.

Hold the phone parallel to the label, six to twelve inches away. Most apps overlay a target box on screen — line up the barcode inside it. Steady hands and decent lighting do more than a fancy app. If the scan won't lock, try turning on your flashlight or stepping into better light.

Step 4: Read the Result

Once the app decodes the symbol, it'll display the data — a URL, a product name, a number string, or nutritional info if the app cross-references a product database. From there you can copy, open the link, or save the result.

If you're trying to read a QR code that's stuck in a screenshot rather than printed in front of you, the workflow is different — our guide on scan QR from screenshot covers the iOS and Android shortcuts.

How to Read a Barcode with QR Code Dynamic's Free Barcode Reader

When you don't have a hardware scanner and the barcode lives inside an image file — a screenshot, a product photo, a PDF — a browser tool is the fastest path. QR Code Dynamic's free reader runs in the browser, takes either a file upload or your webcam, and works for both 1D and 2D symbols.

Step 1: Go to QR Code Dynamic's Barcode Reader

Open the free barcode reader in any modern browser. There's no sign-up, no install, no plugin.

Screenshot of QR Code Dynamic's online barcode reader landing page
The QR Code Dynamic barcode reader landing page.

Step 2: Choose Your Scanning Option

You'll see two input methods: image upload and live camera.

The image option accepts .png, .jpg, .jpeg, .svg, and .webp files up to 8 MB. Useful when somebody emails you a product photo or you've taken a screenshot of a delivery label.

Screenshot showing how to upload an image inside QR Code Dynamic's barcode reader
Image upload supports the five most common formats up to 8 MB.

The camera option works if you've got the physical barcode in front of you. On a phone, you can switch between front camera, back camera, back dual wide, and back ultra wide — handy when the default lens won't focus close enough on a small symbol. Hit Stop whenever you're done.

Step 3: Copy the Decoded Data

Once the reader resolves the symbol, the decoded string appears in the content box. Copy it for inventory entry, paste it into a browser if it's a URL, or save it for later. That's the whole process.

Screenshot of the decoded data results inside QR Code Dynamic's barcode reader
The decoded payload shows up in the content box — copy and go.

If you'd rather generate codes than read them, the same toolkit on QR Code Dynamic covers dynamic QR creation with scan tracking, design controls, and bulk export.

How to Read a Barcode Without Any Device (Manual Decoding)

You can decode the digits printed under a UPC barcode without any equipment. Useful when your scanner battery's dead, or when you want to verify a product's origin before you tap "Buy."

Per Wasp Barcode, the first six digits of a UPC are the manufacturer's identification number, the next five are the item number, and the last digit is the check digit. So a UPC of 0 12345 67890 5 breaks down as: manufacturer code 012345, product code 67890, check digit 5.

The check digit isn't random. It's a modulo-10 calculation across the other 11 digits — the scanner re-runs the math on every read to confirm nothing was misinterpreted.

What the Country Prefix Tells You

On a 13-digit EAN code, the first 2–3 digits are the country prefix assigned by GS1, the global standards body. A few common ones:

  • 000–019, 030–039, 060–139: United States and Canada
  • 400–440: Germany
  • 450–459, 490–499: Japan
  • 500–509: United Kingdom
  • 690–699: China
  • 880: South Korea

One important nuance — the prefix identifies where the manufacturer registered their GS1 number, not necessarily where the product was made. A US brand can register in the US and manufacture in Vietnam. The barcode won't tell you that. For origin, you still need the country-of-origin label printed elsewhere on the package.

Online Tools and Apps for Reading Barcodes

Beyond the QR Code Dynamic reader, you've got plenty of options depending on what device you're on.

Browser-based decoders — Inlite Research, ZBar, and several open-source projects accept image uploads in PNG, JPEG, GIF, TIFF, and PDF formats. They handle Code 39, Code 128, PDF417, Data Matrix, QR, and most postal symbologies. Good for occasional one-off decoding when you don't want to install anything.

Mobile apps — ScanLife, Barcode Scanner (ZXing), QR & Barcode Reader, and Sortly all do the same fundamental job on iOS and Android. The differentiator is what they do after decoding. Sortly stores results in an inventory database. ScanLife cross-references a retail product catalog. ZXing just dumps the raw string.

Desktop software — If you're processing thousands of labels, a dedicated package like Inlite ClearImage or Cognex DataMan handles batch decoding from scanned documents. Overkill for casual use, but the standard for high-volume warehouse and logistics work.

POS and ERP integrations — If you run a small retail or e-commerce operation, your point-of-sale already has a built-in scanner workflow. A barcode inventory system ties the scan directly into stock counts, reorder points, and sales reporting. If you're building one in a spreadsheet first, our guide on creating a barcode in Google Sheets is a low-cost starting point.

Tips for Accurate Barcode Reading

I've spent enough time troubleshooting bad scans to know that 90% of "scanner problems" are actually print, lighting, or technique problems. Here's the short list of what fixes most of them.

1. Print Quality and Barcode Size

Faded ink, smudged toner, or low-DPI prints kill scan rates. Use a thermal or laser printer rated for label work, not your inkjet. And size matters — a barcode shrunk too small to fit a pill bottle won't resolve under most retail scanners. Our barcode size guide covers the GS1 minimums.

Contrast also matters more than people think. Black bars on white background is the safe default. Avoid red bars (most laser scanners use red light, which makes red bars invisible).

2. The Right Scanner for the Format

Laser scanners are fast and cheap for 1D codes but can't read 2D. If you've got a mixed inventory of UPC plus QR, you need a 2D imager — a camera-based scanner that captures the whole symbol as an image. Honeywell, Zebra, and Datalogic all make solid handhelds. The price gap between 1D-only and 2D imagers has narrowed enough that I default to 2D for any new deployment.

3. Hold the Scanner Right

Most handheld scanners have a working distance — usually four to ten inches — printed on the spec sheet. Get closer than the minimum and the laser line is too narrow; get farther and it's too wide. Each scanner has a sweet spot. Find it once and your team's scan times drop in half.

4. Clean and Maintain the Hardware

Improperly scanned barcode showing glare from direct sunlight on a product label
Direct sunlight throws glare on the label and breaks the scan — easy to miss in a warehouse aisle.

A dusty scanner lens or a finger smudge on a phone camera adds noise to the reflected signal. Wipe the lens daily. Inspect cable ports on wired scanners weekly — flaky connections cause random "no read" errors that look like software bugs.

5. Watch the Lighting

Direct sunlight hitting a glossy label throws glare that washes out the contrast a scanner needs. Same with overhead halogens reflecting off shrink-wrap. If you're getting "no read" beeps in one aisle but not others, walk over and check the light angle.

6. Test, Validate, Repeat

Before you commit a new label design to a million SKUs, print twenty and scan them with the actual hardware your team uses. Vary the orientation, the distance, and the lighting. If any of the twenty refuse to read first-try, tighten the design before it's too late to change.

The 2026 Shift From 1D to 2D Barcodes

The biggest change in barcoding right now isn't a new app — it's the industry walking away from 1D-only at point-of-sale.

MIDCOM Data Technologies highlights GS1 Sunrise 2027 as the headline driver: by the end of 2027, retail POS systems globally are expected to accept 2D barcodes alongside 1D ones. That's a real deadline, not a guideline. If you're a retailer, your scanner fleet needs to handle both formats. If you're a supplier, your labels need to print both.

The shift is already underway. BarcodeFactory Blog notes that 2D symbols are no longer the exception in 2026 — QR codes and Data Matrix are showing up on packaging, regulated documentation, and shipping labels as a default. TEKLYNX's 2026 trend report adds that RFID, 2D barcodes, and label-printing automation aren't optional add-ons anymore — they're stitched into the same workflows as traditional 1D scanning.

The dollars back it up. LinkedIn analyst syndication values the Japan barcode scanner software market at $0.8 billion in 2024 and projects $1.45 billion by 2033 — almost double in under a decade. The growth isn't coming from more 1D scanning; it's coming from 2D and software-driven workflows. If you're still buying laser-only handhelds for new projects, you're buying obsolete hardware.

The practical takeaway: get comfortable reading both formats. If your team can't decode a Data Matrix today, they'll be asked to in twelve months. Our breakdown of 1D vs 2D barcodes covers what each format does best.

Read Barcodes Quickly and Accurately Every Time

Reading a barcode isn't one skill — it's three. Knowing what the symbol type is. Picking the right tool (phone camera, handheld scanner, browser reader, or your own eyes). And keeping the print, the lighting, and the hardware clean enough that the read actually lands.

Pick one place to practice this week. Open the QR Code Dynamic online barcode reader, grab a product off your desk, and decode it. Once that's muscle memory, the rest — manual decoding, mobile scanning, warehouse-grade hardware — is just scale.

Frequently Asked Questions

How do I decode a barcode?

Decode it with a phone camera (for QR codes), a dedicated scanner app (for 1D codes), or a browser-based reader that accepts an image upload. For UPCs, you can also read the printed digits by eye — the first six are the manufacturer, the next five are the product, and the last is the check digit.

What do the numbers mean under a barcode?

On a standard 12-digit UPC, the first six digits identify the manufacturer, the next five identify the specific item, and the final digit is a check digit that the scanner recalculates to confirm a clean read. On a 13-digit EAN, the first two or three digits add a country prefix assigned by GS1.

How can I read a barcode on my phone?

For QR codes, open the native Camera app on iPhone or Android, point it at the symbol, and tap the notification banner. For 1D barcodes like UPC or EAN, install a dedicated scanner app such as ScanLife or Barcode Scanner by ZXing, grant camera permission, and frame the barcode inside the on-screen target box.

What is the difference between 1D and 2D barcodes?

1D barcodes encode data as vertical bars of varying widths and typically carry 20–25 characters — enough for a SKU or a UPC. 2D barcodes use a grid of dots or squares and can store URLs, contact cards, and several kilobytes of text. 1D needs a laser scanner; 2D needs a camera-based imager (which most phones already are).

How do I identify a barcode's country of origin?

Look at the first two or three digits of a 13-digit EAN. Those digits are the GS1 country prefix — 500 for the UK, 690 for China, 450 for Japan, and so on. Important caveat: the prefix shows where the manufacturer registered, not necessarily where the product was made.

How do I read a barcode without any equipment?

For UPC and EAN codes, read the printed digits directly. Split them into manufacturer code, item code, and check digit. You won't get URLs or large payloads (those need a scanner) but for simple product identification, the digits underneath tell you everything the bars encode.

Can a damaged barcode still be read?

Sometimes. 2D barcodes have built-in error correction — a QR code can lose up to 30% of its modules and still resolve. 1D codes are less forgiving; a damaged check digit or quiet zone usually breaks the read. If a barcode keeps failing, retype the printed digits manually as a fallback.

Discover our other blog posts before you go:

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to QR Code Generator: Free & No Sign-Up | QR Code Dynamic.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.