Scan Barcode from Image: How to Upload and Decode Photos & Screenshots
Scan barcodes from photos, screenshots, PDFs, and saved images. Upload any image containing a barcode to decode it instantly — no app or camera needed.
You don't always have the physical barcode in front of you. Sometimes it's a screenshot from a website, a photo someone texted you, a barcode in a PDF document, or a picture you took earlier. You still need to read what's in that barcode. Scanning a barcode from an image works just as well as scanning from a live camera — as long as the image is clear enough.
Here's how to upload and decode barcodes from any image source.
How to Scan a Barcode from an Image
The process takes about 10 seconds:
- Open barcodescanner.online in your browser (phone, tablet, or computer)
- Tap Upload Image instead of using the camera
- Select the photo, screenshot, or image file from your device
- The scanner finds the barcode in the image and decodes it
The result shows the barcode format (UPC-A, EAN-13, QR Code, Code 128, etc.) and the decoded content (a number, URL, or text string). From there you can copy the result, look up the product, or do whatever you need with the data.
All processing happens locally in your browser. The image never leaves your device.
Scanning from Different Sources
From a Screenshot
This is the most common use case. You see a barcode on a website, in an app, or in a digital document and need to decode it.
On iPhone:
- Press the Side button + Volume Up simultaneously to screenshot
- Open barcodescanner.online
- Tap Upload Image and select the screenshot from your Photos library
On Android:
- Press Power + Volume Down simultaneously to screenshot
- Open barcodescanner.online
- Tap Upload Image and select the screenshot from your gallery
On Desktop (Windows/Mac):
- Use Snipping Tool (Windows) or Command+Shift+4 (Mac) to capture the screen area with the barcode
- Open barcodescanner.online in your browser
- Click Upload Image and select the screenshot file
From a Photo You Took Earlier
If you photographed a barcode — on a product, a shipping label, a document — you can upload that photo later to decode it. This is useful when:
- You took photos of product barcodes at a store to look up later
- Someone sent you a photo of a barcode
- You have photos of barcodes in your camera roll from a previous task
Open barcodescanner.online, tap Upload Image, and select the photo from your library.
From a PDF or Document
Barcodes appear in shipping confirmations, invoices, tickets, and other PDF documents. To scan a barcode from a PDF:
- Open the PDF and navigate to the page with the barcode
- Zoom in so the barcode is large and clear on screen
- Take a screenshot of that area
- Upload the screenshot to barcodescanner.online
If you're on a computer, you can also use a PDF viewer's snapshot or export tool to save just the barcode area as an image.
From a Website or Online Listing
Sometimes you see a barcode image on a product listing, a specification page, or an article. You have two options:
- Right-click and save: Right-click the barcode image, select "Save image as," then upload the saved file
- Screenshot: Take a screenshot of the page area containing the barcode
Either method works. Saving the image directly usually gives you better quality.
From a Message or Email Attachment
If someone sent you a barcode image via text, email, WhatsApp, or any messaging app:
- Save the image to your device (long-press on phone, or download the attachment)
- Open barcodescanner.online
- Upload the saved image
Most messaging apps compress images, but barcode scanners handle compressed images well as long as the bars remain distinguishable.
Image Quality Tips for Better Results
Not every image will scan successfully. Here's what matters for reliable barcode decoding from images.
Resolution
The barcode needs enough pixels to distinguish individual bars. A barcode that's 200+ pixels wide in the image will scan reliably. If the barcode is tiny in a large photo (say, a barcode on a product photographed from across a room), the scanner may not have enough detail.
Fix: Crop the image so the barcode fills more of the frame before uploading.
Sharpness
Blurry images are the number one cause of failed image scans. If the bars blur together, the scanner can't tell where one bar ends and the next begins.
Fix: If you're taking the photo yourself, hold your phone steady, tap to focus on the barcode, and make sure you have adequate lighting. If the image was sent to you and it's blurry, ask for a clearer photo.
Complete Barcode
The entire barcode must be visible in the image, including the quiet zones (the blank space on either side). A barcode that's partially cropped or has a finger covering one edge won't decode.
Fix: Make sure nothing is covering or cutting off any part of the barcode when you take the photo or screenshot.
Contrast
Barcodes work on contrast — dark bars on a light background. Images that are very dark, washed out, or have a color cast over them may cause scanning issues.
Fix: If the image is too dark or too bright, use your phone's photo editor to increase contrast or brightness before uploading.
Supported Image Formats
| Format | Supported | Notes |
|---|---|---|
| JPG/JPEG | Yes | Most common photo format |
| PNG | Yes | Screenshots are usually PNG |
| GIF | Yes | Static GIFs work fine |
| WebP | Yes | Common on web |
| BMP | Yes | Older format, large files |
| HEIC | Varies | iPhone photos — convert to JPG if needed |
Why Image Scanning Fails (and How to Fix It)
| Problem | Cause | Fix |
|---|---|---|
| "No barcode found" | Barcode is too small in the image | Crop the image so the barcode is larger |
| "No barcode found" | Part of the barcode is cut off | Retake the photo with the full barcode visible |
| "No barcode found" | Image is too blurry | Use a sharper image or retake the photo |
| Wrong data decoded | Multiple barcodes in the image | Crop to show only the barcode you want |
| Scanner loads but nothing happens | Image file is corrupted | Try saving the image again or converting the format |
| Slow processing | Image file is very large (10MB+) | Resize or compress the image first |
If an image won't scan after trying these fixes, the barcode itself may be too low-quality to decode. Try scanning the physical barcode with a live camera instead.
Image Scanning vs Live Camera Scanning
| Factor | Image Upload | Live Camera |
|---|---|---|
| Speed | Upload + process (3-5 seconds) | Point and decode (1-2 seconds) |
| Best when | Barcode is in a photo, screenshot, or document | Physical barcode is in front of you |
| Quality control | You can check image quality before uploading | Depends on real-time conditions |
| Convenience | Works with any saved image | Requires the barcode to be physically present |
| Lighting | Fixed (whatever the photo captured) | Adjustable (move to better light, use flashlight) |
| Multiple attempts | Same image can be retried with crops/adjustments | Need to hold the position each time |
Use image upload when:
- The barcode is in a screenshot, photo, or document
- Someone sent you a barcode image
- You photographed barcodes earlier to scan later
- The physical barcode is no longer available
- You're working on a desktop without a webcam
Use live camera when:
- The barcode is physically in front of you
- You need to scan multiple items quickly
- You want the fastest possible decode time
Supported Barcode Formats
Image scanning supports all the same barcode formats as live camera scanning:
| Format | Type | Common Use |
|---|---|---|
| QR Code | 2D | URLs, payments, tickets |
| UPC-A | 1D | US retail products |
| EAN-13 | 1D | International retail products |
| EAN-8 | 1D | Small products |
| Code 128 | 1D | Shipping labels, inventory |
| Code 39 | 1D | Industrial, government |
| Data Matrix | 2D | Electronics, healthcare |
| PDF417 | 2D | Driver's licenses, boarding passes |
| Aztec Code | 2D | Airline boarding passes |
| ITF-14 | 1D | Shipping cartons |
All formats decode from uploaded images the same way they decode from a live camera feed.
Related Guides
- How to Scan a Barcode on iPhone and Android — all scanning methods including camera and image upload
- Barcode Lookup: How to Find Product Information — what to do after you decode a barcode number
- Barcode Scanner Not Working? Troubleshooting Guide — fix common scanning problems
- Barcode Scanner App vs Browser Scanner — compare scanning approaches