Every time an item beeps at checkout, a barcode scanner just did its job in a fraction of a second. But how do barcode scanners work, and which one fits your store? The scanner shines light at a barcode, reads the pattern, and turns it into data your POS understands. Below, you’ll learn how the scan happens step by step, the main scanner types and form factors, the difference between 1D and 2D barcodes, why scanners fail, and what the 2027 shift to 2D codes means for your business.
Key Takeaways:
- A barcode scanner reads the contrast between light spaces and dark bars, not the bars themselves.
- The scan happens in four steps: light hits the code, it reflects, a sensor converts it to a signal, then a decoder turns it into data.
- 1D scanners read line barcodes like UPC, while 2D scanners also read QR codes and phone screens.
- Most scan failures come from damaged labels, glare, or a scanner that can’t read the code format. Retail systems should handle 2D barcodes by the end of 2027, so a 2D scanner is the safer buy today.
How Does a Barcode Scanner Work? (the 4-step process)

A barcode scanner works by shining light at a barcode, measuring how much light reflects back off the light and dark areas, and converting that pattern into data your point of sale (POS) or inventory system can read. It does not “read” the black bars the way we read text. It reads the contrast between the bars that absorb light and the spaces that reflect it.
Here is what happens in the fraction of a second between a scan and a beep:
- Illuminate. The scanner lights the barcode with an LED or a laser. (It is a light source, not an “LCD,” a common mix-up.)
- Reflect and capture. The dark bars absorb most of the light; the light spaces reflect it. A sensor captures that reflected pattern.
- Convert. The sensor turns the reflected light into an analog electrical signal that rises and falls with the bar-and-space pattern.
- Binarize and decode. An analog-to-digital converter turns the signal into 1s and 0s, and the decoder matches that binary pattern to a barcode standard (set by GS1, the global body that governs barcodes) to produce the final number or text. That data is sent to your POS or inventory software.
The takeaway for a store owner: the scanner is only as good as the contrast it can see. Clean, high-contrast, undamaged labels scan on the first try and keep your checkout line moving. Faded, wrinkled, or low-contrast labels are where speed and accuracy break down.

Build Your Own POS
Whether you run a retail store, café, or admissions booth, we have the point of sale hardware designed for your specific needs. Start building your ideal POS system now.
What Are the Parts of a Barcode Scanner?
Every scanner, from a $15 handheld to a supermarket checkout unit, relies on four parts working together.
Illumination source
The light that hits the barcode. Older scanners used lamps; modern ones use LEDs or a laser. Its job is simple but critical: create enough even, glare-free light for the sensor to see the contrast clearly.
Sensor
The component that “sees” the reflected light and turns it into an electrical signal. There are three common types:
- Photodiode: a single light sensor used in pen and laser scanners. It measures the intensity of light reflected straight back from the scanner’s own light source.
- CCD (Charge-Coupled Device): an array of hundreds of tiny light sensors lined up in a row that capture an image of the barcode at once. (Note: it stands for Charge-Coupled Device, not “charge-centered.”)
- CMOS: the camera image sensor used in smartphones and modern camera-based scanners. It captures a full two-dimensional image, which is what lets it read 2D codes and codes on screens.
Decoder
The processor that takes the digital pattern from the sensor, identifies which barcode standard it is, and converts it into a usable number or text string. On most modern handheld scanners the decoder is built into the unit itself.
Scan engine
The illumination source, sensor, decoder, and optics (lenses and mirrors) packaged as a single working unit. When a manufacturer says a device has a “2D scan engine,” they mean this whole assembly is built to capture and decode two-dimensional codes.
Types of Barcode Scanners by Technology

Scanners are grouped by how they capture the code. The technology determines what the scanner can read, how fast it works, and roughly what it costs.
| Type | How it reads | Reads 1D | Reads 2D / QR | Best for | Typical cost* |
|---|---|---|---|---|---|
Pen wand
|
Dragged across the code; reads reflected light through a single photodiode | Yes | No | Very low-volume, occasional scanning | $30 to $70 |
Laser
|
Sweeps one or more laser beams across the code | Yes | No | High-volume 1D checkout | $50 to $150 |
CCD / LED
|
Captures an electronic image with an array of light sensors | Yes | No | Short-range retail counters | $60 to $200 |
Camera-based (imager)
|
Takes a digital photo and decodes it in software | Yes | Yes | Phones, damaged or angled codes, and any store moving to 2D | $75 to $300 |
For most small retailers buying today, a camera-based (2D imager) is the safer choice, even if you only scan UPCs now. It reads everything a laser can, plus QR codes, phone screens, and the 2D codes coming to product packaging (more on that below).
Barcode Scanner Form Factors (which fits your store?)

“Type” is about the technology inside. “Form factor” is about the physical shape and where it sits in your workflow. You choose one based on your environment and how many items you scan.
| Form factor | Environment | Volume | Typical use |
|---|---|---|---|
| Handheld gun | General retail and warehouse | Medium to high | Backroom receiving, scanning items on the floor |
| Presentation (hands-free stand) | Fixed counter | Medium | Ticketing, small items, phone QR codes |
| In-counter | Fixed checkout | High | Grocery-style conveyor belts |
| Mobile computer | On the move, sometimes offline | High | Inventory counts, order picking, price checks on the floor |
| Fixed-mount | Kiosk or line | High | Self-checkout, manufacturing, ticket gates |
Volume is usually the deciding factor. A fixed checkout that rings up hundreds of items an hour needs an in-counter or presentation scanner, while a store that mostly scans on the sales floor is better served by a handheld or mobile computer. If regular stock counts are part of your routine, that mobile computer also lets staff scan items right at the shelf during a physical inventory count, instead of tallying on paper and keying the numbers in later.
1D vs 2D barcodes (and what your scanner needs to read them)
The single most important compatibility rule: a 1D scanner cannot read a 2D code, but a 2D scanner reads both.
| Attribute | 1D barcodes | 2D barcodes |
|---|---|---|
| Examples | UPC, EAN, Code 128 | QR Code, Data Matrix, PDF417 |
| How data is stored | Horizontal lines only | Horizontal and vertical (a grid) |
| Data capacity | A few dozen characters (usually just a product number) | Up to ~2,000+ characters |
| Readable from a phone screen? | No | Yes |
| Common uses | Retail checkout, product packaging | Mobile tickets, coupons, loyalty, scan-and-go, batch and expiry data |
What this means for you: if you sell products with UPCs today but want to accept digital coupons, mobile tickets, or loyalty codes from customer phones, you need a 2D (camera-based) scanner. A 1D laser will never read a screen.
Why barcode scanners fail (and how to fix it)
When a scanner won’t read, the problem is almost always one of six things, not a broken device. Here is how to diagnose it fast.
- Unsupported barcode type (symbology). The scanner physically can’t read that code format. Fix: confirm your scanner supports the symbologies you use, and buy multi-symbology (2D) hardware so you’re covered as your needs grow.
- Damaged or low-contrast labels. Faded, wrinkled, smudged, or torn labels kill the contrast the scanner depends on. Fix: reprint labels at high contrast on quality stock; keep printers maintained.
- Environment (glare, low light, dust). Reflective packaging, dim backrooms, and dusty lenses all cause misreads. Fix: clean the lens regularly; choose imagers that handle low light if your space is dim.
- Scanner-to-code mismatch. Trying to read a QR code or a phone screen with a 1D laser. Fix: use a 2D camera-based scanner (see the section above).
- Connectivity issues. Wireless or cloud-dependent scanners stall when the network drops. Fix: choose hardware that stores scans locally and syncs when the connection returns.
- Integration problems with your POS. The scanner reads fine but the data doesn’t land in your system. Fix: confirm the scanner is certified to work with your POS before buying, and test it against your actual product catalog.
Inventory management a headache?
KORONA POS makes stock control easy. Automate tasks, generate custom reports, and learn how you can start improving your business.
Where barcode scanning is heading: 2D at POS and GS1 Sunrise 2027
The biggest change to barcodes in 50 years is already underway, and it affects every retailer who scans products.
Through an initiative called Sunrise 2027, GS1, the organization behind the UPC, is moving the industry from 1D barcodes to data-rich 2D codes (QR codes and GS1 DataMatrix) at checkout. The goal is for retail POS systems worldwide to be able to scan and process 2D barcodes by the end of 2027.
Why it matters for a small business:
- 1D laser scanners can’t read the new codes. Reading a 2D code requires an imager (a camera-based scanner). If your checkout runs on older laser hardware, you’ll need to upgrade to stay compatible as brands add 2D codes to packaging.
- You don’t have to switch overnight. GS1 recommends “dual marking” during the transition (products carry both the old 1D barcode and the new 2D code), so your existing scanner keeps working in the meantime. Linear UPC codes will continue to be accepted after 2027, and 1D and 2D will coexist for years.
- 2D codes carry far more than a price. A single GS1 2D code can hold a product’s number plus its batch, lot, and expiration date. That opens up practical wins at the register: scanners can flag expired items, apply automatic markdowns on products nearing their sell-by date, and support faster, batch-level recalls.
The bottom line: if you’re buying a scanner in 2026, buy a 2D camera-based model. It costs a little more than a basic laser, reads everything you scan today, and is ready for what’s coming to your shelves.
How barcode scanning connects to your POS and inventory
A scanner on its own is just a data-entry device. Its value comes from what it feeds into.
When a scan reaches your POS software, the barcode number is matched to the product’s record in your catalog, tracked internally by its SKU, to pull up the price and ring up the sale. At the same time, the scan updates your inventory management system, dropping the stock count by one and, in a well-configured setup, triggering reorders when a product runs low.
Because every scan adjusts the count the moment it happens, the same setup gives you a perpetual inventory that stays accurate without constant manual recounts. The most common and costly mistake I see among retail operators is treating the scanner and the POS as separate purchases: they buy a scanner that isn’t certified for their system, then fight daily sync errors and manual corrections.
That’s why the scanner and the software need to be chosen together. A scan should flow cleanly from the trigger pull to the sale to the stock count with no re-keying. If you’re evaluating hardware, start with a POS system that has barcode scanning built in, and make sure it handles the barcode formats, including QR codes and scan-and-go, that your customers already expect.
Speak with a product specialist and learn how KORONA POS can power your business.
Frequently asked questions
Do barcode scanners read the black bars or the white spaces?
Neither on its own. They read the contrast between them. The dark bars absorb light and the light spaces reflect it, and the scanner measures that difference in reflected light to decode the pattern.
Can a barcode scanner read a QR code?
Only a 2D (camera-based) scanner can. QR codes are 2D barcodes, and 1D laser or pen scanners physically can’t read them. A 2D scanner reads both QR codes and traditional 1D barcodes.
What’s the difference between 1D and 2D scanners?
A 1D scanner reads horizontal-line barcodes like UPC and EAN, enough to look up a price. A 2D scanner uses a camera to read codes that store data both horizontally and vertically (QR, Data Matrix), which hold far more information and can be read from a phone screen. A 2D scanner also reads 1D codes; a 1D scanner does not read 2D codes.
Do barcode scanners work without internet?
Many do. Scanners that store scans locally and sync when a connection returns will keep working offline. Cloud-dependent or wireless-only setups can stall when the network drops, so if reliable connectivity is a concern, choose hardware with on-device storage.
How do grocery store scanners read a barcode from any angle?
They use omnidirectional in-counter scanners, which project laser lines in multiple directions so the barcode is read no matter how the item is oriented. That’s why a cashier can swipe an item past the glass without lining it up.
What sensor do barcode scanners use, CCD or CMOS?
Both are common. CCD (Charge-Coupled Device) sensors work best for close-range scanning and are mostly used for 1D codes. CMOS sensors are the camera sensors in smartphones and modern imagers; they read 2D codes and codes on screens, and handle more scanning situations.
Will one scanner read every barcode?
No single scanner reads everything, but a multi-symbology 2D (camera-based) scanner comes closest. It reads 1D and 2D codes, printed labels, and codes on screens, and handles damaged or awkwardly angled barcodes better than basic laser or pen models.








