Guide

Barcode not scanning? Nine causes and fixes

By · Updated · 6 min read

When a barcode will not scan, the cause is nearly always one of nine things, and the first three (blur, glare and distance) account for most failures. Work down the list in order. The first four are problems with how you are scanning. The other five are problems with the barcode itself.

Test the barcode itself. Upload a sharp photo to the decoder. If it reads there, the barcode is fine and the problem is the camera or lighting.

Open the barcode decoder

Problems with the scan

1. The image is blurred

The bars look soft in the preview, or the phone keeps hunting for focus. Move the barcode further away until it sharpens. Phones focus down to about 8 cm and laptop webcams only to about 20 cm. Hold still for a full second, and wipe the lens.

2. Glare or shadow

You will see a white hot spot across the bars, common on glossy labels, cans and laminated cards, or half the code sitting in your hand’s shadow. Tilt the item 10 to 20 degrees so the reflection slides off the code, and move to even light. Leave the flashlight off unless it is really dark, because it adds glare of its own.

3. Too close, too far or cut off

The barcode should take up half to three quarters of the frame width, with blank space left and right. If it fills the whole frame or is a small strip in the middle, adjust the distance. For long shipping barcodes, turn the phone sideways.

4. The wrong tool for the code

If your camera app does nothing at all when pointed at the code, the app is the problem. Phone camera apps read QR codes only. Product barcodes, Data Matrix and PDF417 need a real scanner, and the online barcode scanner reads all of them. On this site, also check that a format filter such as “QR codes only” is not switched on.

Problems with the barcode

5. No quiet zone

Text, a border or the edge of the label sits right against the first or last bar. Scanners need blank space on both sides to find where the code begins. If you made the label, add margin. If you are scanning a cropped image, go back to the uncropped original.

6. Low contrast or bad colors

Gray bars on white, dark bars on a dark background, red or orange bars, a clear label on a colored bottle. Laser scanners use red light, so red bars look white to them and the barcode vanishes. The fix is to reprint in black or dark blue on white. Until then, a camera-based scanner like this one often copes where a laser does not.

7. Damage, wrinkles and curves

A striped barcode is the same from top to bottom, so you only need one thin strip across it where every bar is intact. Find that strip and aim there. Flatten a wrinkled label, and rotate a bottle so the bars run vertically along the curve. If the digits are still legible, skip the scan and type them into the barcode lookup.

8. Printed too small or stretched

Bars that merge together, or a barcode that looks squashed. A UPC or EAN should not go below 80% of its standard size, which is about 30 mm wide. Resize from the corner so the proportions hold. If you have the data, regenerate the code with the barcode generator and export SVG, which stays sharp at any size.

9. The data is wrong, not the bars

The scan beeps and shows a value, but a checkout or app rejects it or finds the wrong product. That is a data problem and no amount of rescanning will fix it. The check digit may be wrong, or the number may not be registered in that store’s system. The barcode decoder shows whether the check digit is valid, and what UPC numbers mean explains the calculation.

Quick reference

What you seeLikely causeTry this
Soft, fuzzy barsOut of focusMove back, hold still
Bright patch on the codeGlareTilt the item
Camera app ignores itApp reads QR onlyUse a browser scanner
Reads on screen, not on paperPrint quality or sizeReprint larger from SVG
QR with a big logo failsToo much of the code coveredShrink the logo or raise error correction
Scans, but “item not found”Number not in that databaseSearch the number on Google

If you are printing barcodes

Print one and scan it from the distance and angle it will be used at before you run a batch. Size, quiet zone and contrast are the three things to check first. The types of barcodes guide helps you pick a format with enough tolerance for your printer, and how to scan a barcode covers scanning technique on each device.

Sources

Spotted a mistake? Email [email protected].

FAQ

Quick answers

Can a damaged barcode still be scanned?

Often. A striped barcode reads as long as one clean line can be drawn across every bar, so a tear at the top or bottom is harmless. QR and Data Matrix codes can lose 7% to 30% of their area and still read. If nothing works, type the digits printed under the bars.

Why does my phone camera not scan barcodes?

Built-in camera apps on iPhone and Android read QR codes only. For product barcodes, use the online barcode scanner in the browser.

What is a quiet zone?

The blank margin around a barcode. Scanners use it to find where the code starts and stops. For UPC and EAN it must be roughly 3 to 4 mm on each side at normal size. For QR codes it is four cells wide.