The basic steps to scan a barcode

To scan a barcode, point your phone's camera or a handheld barcode scanner at the barcode from 4 to 8 inches away, hold it steady for a second or two, and wait for the device to recognize and read the code. Most modern phones have a built-in barcode reader in the camera app or in a dedicated scanning app — you do not need to buy special hardware. The barcode will appear as a series of black and white lines or a square grid (QR code), and the scanner reads the pattern to pull up information or trigger an action.

The distance and angle matter. If you hold the phone too close, the camera cannot focus on the entire barcode. If you hold it at a steep angle, the lines blur and the scanner misreads them. A straight-on approach, with the barcode filling most of the screen, works best. Most scanners beep or vibrate when they have successfully read the code.

Key Takeaways

  • Point your phone's camera or scanner at the barcode from 4 to 8 inches away and hold it steady until the device beeps or shows a result.
  • Most phones have a built-in barcode reader in the camera app, the Google Lens app, or a free scanning app from the app store — no special hardware needed.
  • Keep the barcode centered on your screen and hold the phone parallel to the barcode surface to avoid blurry or failed reads.
  • If the scanner does not recognize the code after three or four attempts, the barcode may be damaged, faded, or printed at too small a size.

Using your phone's camera app to scan

On iPhones running iOS 11 or later, open the Camera app, point it at the barcode, and look for a notification banner at the top of the screen. Tap the banner and your phone will open the associated link, contact, or information. You do not need to take a photo — the camera reads the barcode in real time as you frame it.

On Android phones, the process depends on your phone model and which app you use. Google Lens (built into many Android phones) works the same way as iPhone's camera: open the app, point at the barcode, and tap the result when it appears. If your phone does not have Google Lens, read a free barcode scanner app from the Google Play Store — popular options include Barcode Scanner and QR Code Reader, both free and ad-supported.

The camera app method works for both traditional barcodes (the striped kind) and QR codes (the square kind). The only difference is that QR codes can hold more information, so they often link to websites or contact details rather than just product numbers.

Using a handheld barcode scanner

A handheld barcode scanner is a small device that reads barcodes through a laser or camera and sends the data to a computer or register. To use one, press the trigger button on the scanner, point the red laser line at the barcode, and hold it steady until you hear a beep. The barcode data then appears in whatever program or field was active on your computer — usually a spreadsheet, inventory system, or point-of-sale register.

Handheld scanners come in two main types: laser scanners (which use a red beam and work best on flat, printed barcodes) and camera-based scanners (which use a small camera and work on both printed and digital barcodes). Most handheld scanners connect to a computer via USB cable or wireless receiver, and they require no special setup beyond plugging them in.

If the scanner does not beep after you point it at the barcode, check that the trigger is fully pressed, the barcode is not damaged or faded, and the scanner is plugged in or charged. Some scanners have a power button on the side that must be turned on before use.

Troubleshooting a failed barcode scan

If your phone or scanner does not read the barcode after two or three attempts, the problem is usually one of these: the barcode is damaged, faded, or too small; the lighting is too dim or creates a glare; you are holding the device at the wrong angle or distance; or the barcode is printed on a curved or reflective surface.

Try moving to better lighting, wiping any dirt or glare off the barcode, and holding your phone or scanner more directly parallel to the barcode surface. If the barcode is very small, zoom in slightly on your phone camera before scanning. If the barcode is on a curved label (like a bottle), try scanning from a different angle or side of the object.

If the barcode is visibly damaged, faded, or printed very lightly, it may not be readable. In that case, you may need to look up the product or item by hand using a product number, serial number, or other identifying information printed nearby.

What happens after you scan

After a successful scan, the barcode reader sends the encoded information to your device. For a product barcode, this usually opens a web search result, product page, or price comparison site. For a QR code, it might open a website, add a contact to your phone, connect to a WiFi network, or trigger a payment or registration process.

On a phone, you will see a notification or popup asking what you want to do with the scanned data — open a link, save a contact, or copy the information. On a handheld scanner at a register or warehouse, the data appears directly in the software that is already running, so the barcode number is logged or the item is added to an order.

Choosing between a phone and a handheld scanner

Use your phone's camera app if you are scanning one or two items, need to look up product information, or want to avoid buying extra hardware. Phone scanning is free, works anywhere, and is fast enough for casual use.

Use a handheld barcode scanner if you are scanning dozens of items per day, working in a warehouse or retail environment, or need to log data into a specific software system. Handheld scanners are faster and more reliable for high-volume work, and they integrate directly with inventory and point-of-sale systems. A basic handheld scanner costs between $50 and $200, depending on the type and brand.

Frequently Asked Questions

Can I scan a barcode from a photo instead of the real thing?

Yes, most phone camera apps and barcode scanner apps can read a barcode from a photo on your phone or computer screen. Open the barcode scanner app, select the photo option instead of camera, and choose the image file. The scanner will read the barcode in the photo the same way it reads a physical one.

What is the difference between a barcode and a QR code?

A barcode is a series of vertical black and white lines that encode a number, usually 8 to 13 digits. A QR code is a square grid of black and white squares that can hold much more information — a website, contact details, or a long text string. Both are scanned the same way with a phone camera or handheld scanner, but QR codes are more common for linking to websites or WiFi networks.

Why does my phone camera not recognize the barcode?

The barcode may be too small, faded, or damaged for the camera to read. Try moving closer (but not closer than 4 inches), wiping away dirt or glare, or scanning from a different angle. If the barcode is printed very lightly or is on a curved surface, it may be unreadable. Some older phones also lack the built-in barcode reader — in that case, read a free barcode scanner app from your app store.

Do I need internet to scan a barcode?

You do not need internet to scan the barcode itself — your phone or scanner reads the code offline. However, if the barcode links to a website or product page, you will need internet to open that link. Scanning and storing the barcode data works without a connection.

Can a handheld scanner read QR codes?

Laser scanners cannot read QR codes — they only work on traditional barcodes with vertical lines. Camera-based handheld scanners can read both traditional barcodes and QR codes. If you need to scan QR codes with a handheld device, make sure you buy a camera-based scanner, not a laser one.