Online Barcode Reader: Decode Barcodes from Images (2026)
Learn how to read supported EAN, UPC, CODE128, CODE39, ITF, and QR codes from images, troubleshoot decoding problems, and look up a product by barcode number.

Table of Contents
Barcode reader vs. barcode scanner: what is the difference?
The terms "barcode reader" and "barcode scanner" are often used interchangeably. In this guide, we use barcode scanner for a device or app that reads a barcode from a live camera or scanner feed, and barcode reader for a tool that decodes a barcode in a saved image file. This distinction is about the input source, not a universal difference in terminology.
A live barcode scanner might use a laser or an imaging sensor to read a physical barcode. Examples include a retail checkout scanner or a phone app pointed at a product. The barcode must be visible to the device when it captures the image.
An image-based barcode reader works with a saved file instead. Depending on the tool, you may be able to select a JPEG, PNG, WebP, or another supported image containing a barcode, such as a product photo, screenshot, or image of a shipping label. Check the tool page for its accepted formats. If the barcode is in a PDF, you may need to convert or capture the relevant page as an image first.
Both approaches aim to recover the data encoded in a barcode. The main difference is whether the input is a live camera or scanner feed or an existing image. A barcode decoding library such as ZXing can read image data, depending on the application and its configuration.
If you have a clear product photo and need its EAN-13 or UPC-A value, you may be able to decode it without having the physical product in front of you. Select the image, attempt to read the barcode, and copy the result if the tool provides that option.
Supported barcode formats: EAN, UPC, CODE128, QR, and more
The omnikitbolt Barcode Reader is described as using ZXing to decode supported 1D formats and QR codes from images. It may identify the format when a decode succeeds, but available formats depend on the reader's configuration. Check the tool page for its current support list.
These are some common barcode formats and where you may encounter them:
- EAN-13: A 13-digit barcode commonly used for retail products in many markets. Its GS1 prefix relates to the GS1 member organization that allocated the number; it does not necessarily indicate where the product was manufactured.
- EAN-8: An 8-digit retail barcode used on some smaller packages where label space is limited. It includes a check digit, and allocation and acceptance depend on the applicable requirements.
- UPC-A: A 12-digit barcode commonly used for retail products in the United States and Canada. A UPC-A value can also be represented as a GTIN-13 by adding a leading zero.
- UPC-E: A compressed representation of certain UPC-A numbers, designed for products with limited label space. Its corresponding UPC-A value is determined using UPC-E expansion rules.
- CODE128: A general-purpose barcode format that can encode numbers, letters, and other characters supported by its code sets. It is used in applications such as shipping labels and inventory workflows.
- CODE39: An alphanumeric barcode format used in some industrial, logistics, and asset-labeling workflows. Its basic character set includes uppercase letters, digits, a space, and selected punctuation.
- ITF and ITF-14: Interleaved 2 of 5 (ITF) encodes numeric data in pairs. ITF-14 is used to represent a 14-digit GTIN on some cases and other trade-item packaging.
- QR code: A 2D barcode that can encode data such as URLs and text. If an image contains multiple codes, crop it to focus on the one you want to read.
How ZXing reads a barcode from an image
ZXing, short for Zebra Crossing, is an open-source barcode library with implementations for different programming languages, including JavaScript. It can decode supported barcode formats using the rules defined for each symbology.
A typical image-based decoding process may include steps like these, although the implementation varies between tools:
- Image rendering. A browser-based reader may render a selected image to a Canvas element or another image buffer so its pixels can be analyzed.
- Luminance and thresholding. The decoder analyzes image brightness to distinguish darker bars from lighter spaces. Some implementations use thresholding methods to handle variations in lighting.
- Pattern scanning. For a 1D barcode, the decoder examines lines in the image and measures the sequence of bars and spaces. Their patterns represent data according to the barcode format.
- Format detection. The decoder compares detected patterns with those used by supported formats. EAN barcodes, for example, have guard patterns, while CODE128 uses its own symbol patterns.
- Check digit or checksum validation. EAN-13 and UPC-A use check digits to help detect errors. Other formats, including CODE128, have their own checksum rules.
- Result display. If decoding succeeds, the reader can return the barcode format and its text value. How the image is handled during processing depends on the tool.
Image quality still matters. A decoder may struggle with a barcode that is blurry, too small, low in contrast, partly hidden, or photographed at a steep angle. Cropping the image and improving focus or lighting can make the barcode easier to read.
Read a barcode from a photo or screenshot
Try to decode supported EAN, UPC, CODE128, CODE39, ITF, and QR codes from an image. Check the tool page for its current supported formats and accepted image types.
When to read a barcode from an image
Live camera scanning is useful when you have the product in front of you. An image-based barcode reader can help when the code is already in a photo, screenshot, or document image:
- Check a product from a photo. A colleague or supplier sends a product image by email or chat. Decode its EAN-13 or UPC-A number, if supported, and compare it with a catalog or inventory record.
- Review inventory photos. If you have photos of shelves, products, or storage areas, try reading visible codes from your computer without returning to each item.
- Read a shipping label image. Decode a supported barcode from a photo or screenshot of a shipping label, then enter the resulting tracking value in the relevant carrier system.
- Check a product listing. Read the barcode printed on product packaging and compare its value with the number in your catalog or e-commerce listing.
- Test a generated barcode. Create a barcode with the omnikitbolt Barcode Generator and try decoding its image to check that the result matches the value you entered.
- Work from a desktop computer. A browser-based reader can be useful when you have a saved image but no handheld scanner or physical product nearby.
Barcode format comparison: EAN, UPC, CODE128, and more
The detected format can help you understand what kind of value you have decoded and where it may be used:
| Format | Typical data | Common use | What to do with the value |
|---|---|---|---|
| EAN-13 | 13 digits | Retail product identification | Search the complete number in a product database. |
| EAN-8 | 8 digits | Some retail products with limited label space | Search the complete EAN-8 value in a product lookup service. |
| UPC-A | 12 digits | Retail products, especially in the US and Canada | Search the UPC-A value in a product database. |
| CODE128 | Numbers and supported text characters | Shipping, tracking, and inventory workflows | Use the value in the relevant carrier or internal system. |
| CODE39 | Uppercase letters, digits, and selected symbols | Some industrial labels, asset tags, and inventory systems | Check the value in the system that issued or uses it. |
| ITF / ITF-14 | Numeric data; ITF-14 represents a 14-digit GTIN | Some cases and trade-item packaging | Look up the number in the relevant product or logistics system. |
| QR code | Text, URLs, and other data | Links, menus, and shared information | Review decoded content before opening a URL or using the information. |
How to read a barcode from an image, step by step
- Open the Barcode Reader. Visit omnikitbolt.com/tools/barcode-reader in a browser and check the tool page for its current requirements.
- Select an image containing the barcode. Choose a file in a format accepted by the reader. JPEG, PNG, and WebP are common image formats, but check the tool page for its current list.
- View the detected format and value. If the reader can decode the barcode, it displays the format, such as EAN-13 or CODE128, and the encoded value.
- Copy the decoded value. Use the Copy option if it is available. Search an EAN or UPC in a product lookup service, or enter a tracking or inventory code in the system that uses it.
- Crop and try again if needed. If the reader cannot detect the barcode, crop the image so the code and its clear margins are more visible. A larger, sharper barcode may be easier to decode than one that occupies only a small area of a large image.
If you are checking several product photos, make sure each barcode is visible, in focus, and large enough for the reader to analyze.
How to look up a product by barcode number
A barcode reader returns the number or text encoded in the code; it does not necessarily identify a product. To search for product information, copy the decoded EAN or UPC and try a product database or retailer catalog:
- Search engines. Paste the complete barcode number into a search engine. Results may include a product listing, but coverage varies by product and region.
- Retailer websites. Search the UPC or EAN on a retailer's website to see whether its catalog contains a matching product.
- Barcode lookup services. Services such as barcodelookup.com let you search for product records by barcode. Available information varies between services.
- Open Food Facts. This public food-product database can be searched by barcode and may include product details such as ingredients or nutrition information. Check the record and packaging for current information.
- GS1 services. Verified by GS1 can help check company and product identification details for records available in its system.
CODE128 and CODE39 values are often used for tracking, inventory, or internal identification rather than public product lookup. Try the decoded value in the relevant carrier tracking page or your organization's own system.
Decode a barcode from an image
Try reading a barcode from a product photo or screenshot, then use the decoded value in a product, tracking, or inventory lookup.
Barcode image privacy and browser-based processing
Some online barcode readers send images to a server for decoding. If an image contains a shipping label, internal reference, or other sensitive information, check how the tool handles files before selecting it.
Business images may reveal more than a barcode. A shipping label can include a tracking number or business details, while an inventory photo may show internal product codes. Consider all the information visible in the image, not only the barcode itself.
The omnikitbolt Barcode Reader is described as using ZXing in the browser to decode selected images locally. For a sensitive file, review the site's current privacy information and verify how the image is handled before using the tool.
To inspect network activity, open your browser's developer tools and check the Network tab while selecting an image. Look for requests that include image data; ordinary requests to load page resources or analytics may still occur. Network inspection can help, but it is not a substitute for reviewing the site's privacy information.
Troubleshooting barcode reading: common detection issues
If the reader cannot detect a code, start by checking the image quality and barcode visibility. These steps may help:
| Problem | Possible cause | What to try |
|---|---|---|
| No barcode detected | The barcode is small or surrounded by a large amount of background | Crop the image to make the barcode larger while keeping its bars and clear margins visible. |
| A clear-looking image does not decode | Compression, resizing, or low resolution may have softened the barcode edges | Try the original image or a higher-resolution version. Avoid repeatedly resizing or recompressing it. |
| The barcode value seems wrong | Blur, glare, low resolution, or damage may make individual bars difficult to distinguish | Compare the result with the printed digits, then try a sharper image taken in better lighting. |
| A photo taken at an angle does not decode | Perspective distortion changes the apparent width of the bars | Use a straighter photo or correct the perspective in an image editor before trying again. |
| The barcode has low contrast | Faded printing, reflections, shadows, or a colored background obscure the bars | Improve the lighting or contrast if possible, and use a sharp image with clearly visible bars and spaces. |
A screenshot can avoid camera blur and perspective distortion when the barcode is already displayed on a screen, but resizing or compression may affect readability. The result still depends on the screenshot's resolution and the barcode's size and clarity.
Related barcode and QR code tools
- Barcode Reader: attempt to decode supported EAN, UPC, CODE128, CODE39, ITF, and QR codes from an image. Check the tool page for its current supported formats and instructions.
- Barcode Generator: create barcodes from a value in formats such as CODE128, EAN-13, EAN-8, UPC-A, CODE39, and ITF-14. See the barcode generator guide.
- QR Code Reader: read a QR code from an image or use the live camera option. See the QR code reader guide.
- How to scan a barcode from a picture: a step-by-step guide to reading a barcode from a product photo or screenshot.
- PDF to Image: convert a PDF page into an image when a barcode you need to read appears in a document.
Explore barcode and QR code tools
Read supported barcodes from images, create barcodes, or decode QR codes. Check each tool page for its supported formats and current file-handling details.
Barcode reader FAQ
What is the difference between a barcode reader and a barcode scanner?
The terms barcode reader and barcode scanner are often used interchangeably. In this guide, a barcode scanner means a device or app that reads a code from a live camera or scanner feed, while a barcode reader means a tool that decodes a saved image such as a photo or screenshot. The distinction here is the input source.
What barcode formats does the omnikitbolt Barcode Reader support?
The tool is described as using ZXing and supporting common 1D formats including EAN-13, EAN-8, UPC-A, UPC-E, CODE128, CODE39, ITF, and Codabar, as well as QR codes. The formats available can depend on the reader's configuration, so check the tool page for its current list.
Can I read an EAN-13 barcode from a product photo?
You may be able to read an EAN-13 barcode from a product photo if the image is clear and the reader supports the format. Use an in-focus image with good contrast, and try to photograph the barcode straight on. If it appears small, crop the image while keeping the barcode and its clear margins visible.
Does the barcode reader upload my image to a server?
The tool is described as decoding selected images in your browser with JavaScript rather than sending them to a barcode-decoding server. For sensitive images, review the current privacy information and verify how the tool handles files. You can inspect browser network activity for requests that include image data, though a site may still make ordinary requests to load the page or analytics.
What is the difference between a 1D barcode and a QR code?
A 1D barcode, such as EAN-13, UPC-A, or CODE128, encodes data in a linear pattern of bars and spaces and is often used for short identifiers. A QR code encodes data in a two-dimensional grid and can hold more information, depending on its version and error-correction level. A reader must support the format being scanned; QR codes are often read with phone cameras or compatible 2D scanners.
Can I use the barcode reader to look up a product by its barcode number?
The reader extracts the value encoded in the barcode but does not automatically identify the product. After decoding an EAN or UPC, search the number in a product lookup service, a retailer's website, or a search engine. Database coverage varies, so a product may not appear in every service.
Why read a barcode from an image instead of using my phone camera?
Image-based reading is useful when the barcode is already in a photo, screenshot, scanned document, or PDF page rather than on a product you can scan live. For example, you might need to read a code from an emailed product image, an inventory photo, or a picture of a shipping label.
What should I do if the barcode reader cannot detect the barcode in my image?
Crop the image so the barcode is larger, then check that it is in focus, has clear contrast, and is not covered or cut off. Try a straighter photo if perspective distortion is an issue, and keep the barcode's clear margins visible. If it still cannot be decoded, the image may be too blurry, small, low-contrast, or damaged.