Guide
Barcode not scanning? Nine causes and fixes
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 decoderProblems 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 see | Likely cause | Try this |
|---|---|---|
| Soft, fuzzy bars | Out of focus | Move back, hold still |
| Bright patch on the code | Glare | Tilt the item |
| Camera app ignores it | App reads QR only | Use a browser scanner |
| Reads on screen, not on paper | Print quality or size | Reprint larger from SVG |
| QR with a big logo fails | Too much of the code covered | Shrink the logo or raise error correction |
| Scans, but “item not found” | Number not in that database | Search 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
- GS1 General Specifications. For symbol sizes, quiet zones and color rules.
- Denso Wave: QR Code error correction
Spotted a mistake? Email [email protected].