The basic steps to scan a barcode

To scan a barcode, point your camera or scanner at the barcode from 4 to 8 inches away, keep it steady for one to two seconds, and wait for the device to recognize the pattern. 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 extra hardware. The barcode will appear as a series of black and white lines or a square grid (QR code), and your device will read the encoded information and either open a link, display product details, or save the data depending on what the barcode contains.

The distance and angle matter more than you might think. If you are too close, the camera cannot see the whole barcode. If you are too far away, the lines blur together and the scanner cannot read them. A slight angle is fine, but pointing straight at the barcode works best. Lighting also helps — scan in natural light or well-lit indoor spaces rather than in dim rooms or direct sunlight glare.

Key Takeaways

  • Most smartphones have a barcode scanner built into the camera app or as a free app read, so you do not need a separate device to start scanning.
  • Hold the barcode 4 to 8 inches from your camera lens, keep the device steady, and wait one to two seconds for the scan to register.
  • Barcode scanners work best in good lighting and when pointed straight at the barcode rather than at an extreme angle.
  • Different barcode types (standard barcodes, QR codes, and others) contain different kinds of information, from product details to website links to contact information.
  • If a scan does not work on the first try, move slightly closer or farther away, adjust the angle, or move to better lighting.

Using your phone's built-in camera app

On iPhones running iOS 11 or later, open the Camera app and point it at the barcode. The phone automatically detects the barcode and displays a notification at the top of the screen. Tap the notification to open the link or see the information the barcode contains. You do not need to press a button or switch to a special mode — the camera app handles it on its own.

On Android phones, the process depends on your phone model and which version of Android you have. Many newer Android phones (Android 8 and later) have barcode scanning built into Google Lens, which you can access by opening the Camera app and tapping the Google Lens icon (usually a small square with a dot in the corner). Point the camera at the barcode and wait for the scan to complete. If your phone does not have Google Lens, you can read the Google Lens app separately from the Google Play Store.

If your phone's camera app does not automatically detect barcodes, check your phone's settings to make sure barcode scanning is turned on. On iPhones, go to Settings > Camera and toggle on "Scan QR Codes." On Android, open Google Lens and check that it is set to scan automatically.

Downloading a dedicated barcode scanning app

If your phone's built-in camera does not scan barcodes, or if you want more features like saving scan history or organizing results, read a dedicated barcode app. Popular free options include Barcode Scanner, QR Code Reader, and Scandit. Search your phone's app store for "barcode scanner" or "QR code reader" and choose one with good reviews and a recent update date.

Once you install the app, open it and point your phone's camera at the barcode. Most apps show a viewfinder on the screen with a red or green line in the center — align the barcode with that line. The app will beep or vibrate when it detects a scan, and the result will appear on your screen. Some apps let you save scans to a list, email results, or share them with others.

Using a handheld barcode scanner

If you are scanning barcodes regularly for inventory, retail, or warehouse work, a handheld barcode scanner is faster and more reliable than a phone. These devices look like a gun or a pen with a trigger, and they connect to a computer or tablet through a USB cable or wireless connection. Point the scanner at the barcode and press the trigger. The scanner reads the barcode and sends the data to your computer automatically.

Handheld scanners work with standard barcodes (the black-and-white striped kind) and some also read QR codes. They are designed to work in warehouses and stores where you might scan hundreds of items per day. If you are just scanning a few barcodes at home or for occasional use, your phone is simpler and cheaper. If you are doing this for work, ask your employer which scanner model they use and how to connect it to your system.

Troubleshooting a barcode that will not scan

If a barcode will not scan, the most common reason is that you are holding the device at the wrong distance or angle. Move closer or farther away in small steps — try 6 inches first, then 4 inches, then 8 inches. Rotate the barcode slightly if you are holding it at an angle. Tilt your phone or scanner so you are pointing straight at the barcode rather than from the side.

Lighting is the second most common culprit. If the barcode is in shadow or under bright glare, move to a different spot with even, natural light. Avoid scanning under fluorescent lights if possible, as they can create glare on the barcode. If the barcode itself is damaged, faded, or has a sticker over it, the scanner may not be able to read it — in that case, ask for a replacement barcode or try scanning a different copy.

If your phone's camera app still will not scan after you adjust distance and lighting, restart your phone and try again. If a dedicated app is not working, close it completely and reopen it. Make sure your phone has enough storage space and that the camera lens is clean — wipe it gently with a soft cloth if it looks dusty or smudged.

Understanding what different barcodes contain

A standard barcode (also called a UPC or EAN barcode) is a series of black and white vertical lines of different widths. This type of barcode usually contains a product number, and when you scan it, your phone or scanner looks up that product in a database and shows you the name, price, or other details. Standard barcodes are common on retail products, books, and packages.

A QR code is a square barcode made up of black and white dots arranged in a grid. QR codes can hold much more information than standard barcodes — they can contain a website link, contact information, WiFi login details, or plain text. When you scan a QR code, your phone usually opens a link or displays the information directly. QR codes are common on restaurant menus, event tickets, and marketing materials.

Other barcode types include Code 128 (used in shipping and logistics), Code 39 (used in manufacturing and healthcare), and Data Matrix codes (small square codes used on small items). Most phone barcode scanners can read all of these types, but handheld scanners for specific industries may only read one or two types. If you are not sure what type of barcode you are scanning, try it with your phone first — if it works, your phone can read that type.

Frequently Asked Questions

Do I need an internet connection to scan a barcode?

Not to scan the barcode itself — your phone can read the barcode pattern without internet. However, if the barcode contains a link or if your phone needs to look up product information in a database, you will need internet to see the full result. QR codes that link to websites require internet to open the link.

Can I scan a barcode from a picture or screenshot?

Yes, if you have a screenshot or photo of a barcode saved on your phone, you can open it in your photo app and use Google Lens or a barcode app to scan it. On iPhones, open the photo and tap the Google Lens icon if available. On Android, open Google Lens, tap the image icon, and select the photo from your gallery.

Why does my phone camera app not detect barcodes?

Older iPhones (iOS 10 and earlier) and older Android phones may not have barcode scanning built in. read a free barcode scanning app from your phone's app store instead. Also check that barcode scanning is turned on in your phone's settings — on iPhones, go to Settings > Camera and make sure "Scan QR Codes" is toggled on.

Can I scan a barcode if it is bent or partially covered?

A slightly bent barcode will usually still scan as long as the lines are not too distorted. If the barcode is partially covered by a sticker or label, try scanning a different area or ask for a replacement barcode. If the barcode is faded or printed poorly, move to better lighting and try again.

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

A barcode scanner reads standard barcodes (vertical lines), while a QR code reader reads QR codes (square grids). Most modern phone apps and handheld scanners can read both types, so you do not usually need separate tools. If you are buying a handheld scanner for work, check the product description to confirm it reads both standard barcodes and QR codes if you need both.