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:

  1. Open barcodescanner.online in your browser (phone, tablet, or computer)
  2. Tap Upload Image instead of using the camera
  3. Select the photo, screenshot, or image file from your device
  4. 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:

  1. Press the Side button + Volume Up simultaneously to screenshot
  2. Open barcodescanner.online
  3. Tap Upload Image and select the screenshot from your Photos library

On Android:

  1. Press Power + Volume Down simultaneously to screenshot
  2. Open barcodescanner.online
  3. Tap Upload Image and select the screenshot from your gallery

On Desktop (Windows/Mac):

  1. Use Snipping Tool (Windows) or Command+Shift+4 (Mac) to capture the screen area with the barcode
  2. Open barcodescanner.online in your browser
  3. 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:

  1. Open the PDF and navigate to the page with the barcode
  2. Zoom in so the barcode is large and clear on screen
  3. Take a screenshot of that area
  4. 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:

  1. Save the image to your device (long-press on phone, or download the attachment)
  2. Open barcodescanner.online
  3. 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

FormatSupportedNotes
JPG/JPEGYesMost common photo format
PNGYesScreenshots are usually PNG
GIFYesStatic GIFs work fine
WebPYesCommon on web
BMPYesOlder format, large files
HEICVariesiPhone photos — convert to JPG if needed

Why Image Scanning Fails (and How to Fix It)

ProblemCauseFix
"No barcode found"Barcode is too small in the imageCrop the image so the barcode is larger
"No barcode found"Part of the barcode is cut offRetake the photo with the full barcode visible
"No barcode found"Image is too blurryUse a sharper image or retake the photo
Wrong data decodedMultiple barcodes in the imageCrop to show only the barcode you want
Scanner loads but nothing happensImage file is corruptedTry saving the image again or converting the format
Slow processingImage 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

FactorImage UploadLive Camera
SpeedUpload + process (3-5 seconds)Point and decode (1-2 seconds)
Best whenBarcode is in a photo, screenshot, or documentPhysical barcode is in front of you
Quality controlYou can check image quality before uploadingDepends on real-time conditions
ConvenienceWorks with any saved imageRequires the barcode to be physically present
LightingFixed (whatever the photo captured)Adjustable (move to better light, use flashlight)
Multiple attemptsSame image can be retried with crops/adjustmentsNeed 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:

FormatTypeCommon Use
QR Code2DURLs, payments, tickets
UPC-A1DUS retail products
EAN-131DInternational retail products
EAN-81DSmall products
Code 1281DShipping labels, inventory
Code 391DIndustrial, government
Data Matrix2DElectronics, healthcare
PDF4172DDriver's licenses, boarding passes
Aztec Code2DAirline boarding passes
ITF-141DShipping cartons

All formats decode from uploaded images the same way they decode from a live camera feed.

8 min read

Frequently Asked Questions

Can I scan a barcode from a screenshot?
Yes. Take a screenshot of the barcode on your phone or computer, then upload it to a web-based barcode scanner like barcodescanner.online. The scanner detects and decodes barcodes in the image just like it would from a live camera feed. Make sure the barcode is fully visible and not cut off in the screenshot.
What image formats are supported for barcode scanning?
Most web-based barcode scanners accept JPG, PNG, GIF, BMP, and WebP images. These cover virtually every photo, screenshot, and image file you'll encounter. Some scanners also handle TIFF and SVG. The key factor is image quality and resolution, not the file format.
Why won't my barcode image scan?
The most common causes are: the image is too blurry (the bars aren't sharp), the barcode is too small in the frame (crop or zoom first), part of the barcode is cut off (the full barcode including quiet zones must be visible), or the image has very low contrast. Try cropping the image so the barcode fills more of the frame, and make sure the entire barcode is included.
Can I scan a barcode from a PDF?
Yes, if the barcode in the PDF is clear enough. Take a screenshot of the PDF page containing the barcode, then upload that screenshot to a web-based scanner. For best results, zoom into the barcode area in the PDF before taking the screenshot so the barcode is large and sharp in the captured image.
Is scanning a barcode from an image free?
Yes. Web-based scanners like barcodescanner.online offer free image upload scanning with no limits, no account required, and no watermarks. The barcode decoding happens locally in your browser, so there's no server processing cost. Upload as many images as you need.