Why Won't My Barcode Scan? 9 Phone Fixes
A barcode usually won't scan because the camera can't see one clean, complete line across every bar. The usual culprits are the wrong distance, glare, a curved label, something dark printed next to the bars, or a barcode type the scanner doesn't read. Most of these are fixed in seconds by moving the phone, the light or the label. When nothing works, type the number printed under the bars. It is the same data the bars carry.
Key takeaways
- A barcode is read along a line that crosses every bar from end to end. One clean line is enough, but nothing on that line can be missing.
- Glare that leaves any clear strip across the bars is usually fine. A reflection that runs the full height of the bars, along their length, can stop the read on its own.
- In our own test, a decoder still read faded bars at 12% contrast. It failed as soon as either end of the code was cut off.
- Curved labels and steep angles were the hardest cases for the decoder we tested. Turn the bottle until the bars stand upright and face the camera.
- The digits under the bars are the fallback. Typing them works on a label that is scratched, folded or wrapped in film.
How does a phone read a barcode?
A phone scanner looks for a run of dark and light stripes and measures their widths along a line across the code. In a one-dimensional barcode, such as EAN-13, UPC-A or Code 128, all the information is in those widths. That is why the fixes below are about giving the camera a sharp, evenly lit, complete line across the bars, from the first bar to the last.
A square QR code works differently. It is built with error correction, so a scanner can rebuild missing parts of it. A one-dimensional barcode has only a check digit or check character, which lets the scanner reject a misread but not repair one. A small fault that a QR code shrugs off can stop a barcode. If your code is square, open Scan QR instead; the QR code scanning guide covers that.
What we tested
To see which faults matter most, we ran our own test. We made two real barcodes with open-source software (python-barcode 0.16.1 to draw, zxing-cpp 3.2 to decode): an EAN-13 for 4006381333931 and a Code 128 that says "Box 17". Each was drawn six pixels per narrow bar. We then damaged the images in the ways a phone camera sees a bad label and checked whether the decoder still read them. It is a computer simulation, not a test of any phone or app. Read the results as a guide to which faults are serious, not as exact limits. The script and its full output are kept with this article's record.
| Fault we added | Still read | Stopped reading |
|---|---|---|
| Blur (out of focus) | Up to half a narrow bar | Two-thirds of a narrow bar |
| Faded bars (contrast with the white) | 12% and above | 8% and below |
| Glare across all the bars, from the top down | Up to 90% of the bar height covered | All of it covered |
| Glare running the full height of the bars | Code 128 at 2% of the width | EAN-13 at 2%, both at 5% |
| Scratch along the bars | Both codes | Neither |
| One end of the code cut off | Neither | 5% of the bars missing |
| Dark box edge close to the first bar | 10 narrow bars away | EAN-13 at 5, both at 2 |
| Size in the picture | 1.5 pixels per narrow bar and above | Below about 1.5 pixels |
| Tilted in the frame | Up to 15°, and at 90° | 30° and 45° |
| Label wrapped round a bottle | EAN-13 with about 54° of the curve in view | Code 128 at 54°, both at 90° |
Small blur and faded ink were tolerated well. Losing any part of the line across the bars was not.
Nine fixes when a barcode won't scan
Work down this list in order. The first four are the quickest to try.
1. Get the whole barcode in the frame
Every bar, from the first to the last, has to be in view. In our own test, cutting off just a twentieth of one end stopped both codes. On a long shipping label, step back until you can see a little white on both sides of the bars, then let the camera settle.
2. Find the distance where the bars are sharp
Too close and the camera cannot focus; too far and the narrow bars blur into each other. Start about a hand's width away, then move slowly closer until the bars look crisp on screen. In our test, reading stopped once the narrow bars shrank below about one and a half pixels, which is how a small code looks from too far away. Fill as much of the viewfinder as you can while keeping the whole code in frame.
3. Move the glare off the bars
Glossy film, shrink-wrap and laminated cards throw back a bright patch of light. Glare covering most of the bar height did no harm as long as one clear strip ran across all the bars. In our EAN-13 test, a narrow reflection running from the top of the bars to the bottom broke the read even when it was only a fiftieth of the width. Tilt the label or the phone a little until the reflection slides off, or move away from the overhead light.
4. Hold it level and face it square on
Line the bars up with the edges of the screen and hold the phone parallel to the label. Our decoder coped with a 15° tilt and with a full quarter-turn, but not with 30° or 45°. Phone scanners vary in how they handle angles, so level and face-on is the safe choice.
5. Turn curved labels until the bars stand upright
On a bottle or a can, the bars near the edges are squeezed as the label wraps away from the camera. In our test, the Code 128 stopped reading even with only a narrow slice of the bottle in view (about 54° of its curve). Turn the bottle until the bars run up and down, like the bottle itself, and keep the code in the middle of the frame.
6. Add light, but not straight on
In a dim room the camera uses a slower shutter, which adds blur. Move to brighter light, ideally from the side, so you don't swap darkness for glare. Contrast had to fall a long way before our decoder gave up, so dim light hurts mostly through blur.
7. Keep the white space around the bars clear
Scanners need blank space on both sides of a barcode to know where it starts and stops. A box edge, text or a fold printed too close confuses a scanner. In our test, a dark edge five narrow bars from the EAN-13 stopped it. You can't fix a badly printed label, but you can cover nearby clutter with a finger or a sheet of white paper. If you print your own labels, the guide to printing a barcode that scans lists the margins each type needs.
8. Check the barcode type
No scanner reads every format. ScanMint AI's Scan Barcode tool reads twelve types: Code 128, Code 39, Code 93, Codabar, Data Matrix, EAN-13, EAN-8, ITF-14, UPC-A, UPC-E, PDF417 and Aztec. Those cover retail packaging, warehouse labels, ID cards and shipping documents. A code outside that list, or a light-on-dark code, may not read. Our decoder did not read a light-bars-on-dark version of either test code. If yours is printed that way, try good light, then type the number.
9. Type the number printed under the bars
The digits below a retail barcode are the same data the bars encode. That is why they are printed there, and why shop tills fall back to them. In Scan Barcode you can type the number instead. That works on a label that is scratched, creased, wrapped in cling film or badly lit. ScanMint AI has no option to decode a barcode from a photo in your gallery, because a still photo rarely holds the bar edges cleanly enough. Typing the number solves the same problem.
Is the barcode itself broken?
Sometimes the fault is in the code, not the camera. A scratch or crease that runs across the bars cuts through every line the scanner can use. In our test, a scratch running along the bars did no harm, while a cut across them, two narrow bars wide, stopped the EAN-13. A barcode can also be printed with bars too thin or too fat for the printer, or too small. If a code fails on every phone, in any light, the label needs reprinting, and the printing guide explains how.
When a barcode does scan, but the number looks wrong, the check digit is the place to look. The last digit is calculated from the others, and a scanner uses it to reject a misread.
Barcode tester or barcode scanner: which do you need?
A phone scanner answers one question: can this code be read here, now? That is enough for stocktaking, price checks and testing a label you made yourself. Scan it a few times from different angles and distances; a code that reads first time, every time, is in good shape.
A barcode verifier is a different instrument. It measures the printed code bar by bar and gives it a quality grade. A supplier needs that grade when a retailer asks for proof that a label meets its requirements. A phone scan cannot give you that grade. If someone asks you for a verification report, ask the printer who made the labels.
How to scan a barcode with ScanMint AI
Open Scan Barcode from the tools grid, hold the code steady inside the frame and the number appears on the screen. Copy it, search it, or keep it in your history; scanned codes stay on your phone. The step-by-step scanning guide covers the first scan, and the inventory guide shows how to log a shelf of products. To make a code of your own, use Create Barcode and follow the guide to creating a barcode.
Frequently asked questions
Why does a barcode scan at the till but not on my phone?
Shop scanners are built for the job: they light the code themselves and are tuned for the retail formats. A phone camera relies on the room's light and has to focus at the right distance. Brighter, side-on light and a steadier distance usually close the gap. If it still fails, type the number.
Can I scan a barcode from a screenshot?
Not in ScanMint AI's Scan Barcode tool, which uses the live camera. If a code exists only as an image on your phone, type the digits printed under it. For a square QR code in a screenshot, Scan QR can import the picture.
Does a barcode need to be black and white?
Dark bars on a light background read best. Faded bars still read down to 12% contrast with the white, but a light-on-dark code did not read at all with the decoder we used.
What do I do with a barcode that will never scan?
Type the number printed underneath. If you made the label, reprint it larger with clear white space on both sides.
Summary
When a barcode won't scan, give the camera one sharp, complete, glare-free line across every bar. Get the whole code in frame, hold a steady distance, move the reflection off and keep the code level. Curved labels and nearby clutter cause most of the rest. When the code itself is damaged, the digits underneath are always there to type.
Tools covered in this guide
Open any of these in ScanMint AI to follow along.
Related guides
- Mobile Barcodes: How to Make Them ScanWhy a barcode on your phone scans at one counter and not the next, and six fixes for brightness, size, margins, colours and glare, from our own decoder test.
- How to Decode a Barcode: Read the Bars by HandA barcode is 95 narrow units of bars and spaces. Here is how to turn them into 13 digits by hand, find the hidden first digit and check your answer.
- How to Print a Barcode That ScansPrint a barcode that scans first time: GS1 sizes for EAN-13 and UPC-A, how much blank margin to leave, which colours fail, and how to size codes for 203 and 300 dpi label printers.
Try ScanMint AI free
Turn your phone into a pocket scanner and PDF toolkit — 18 tools, privacy-first.
