Skip to main content
Online Tool

Online Barcode Reader

Scan a barcode with your camera, upload an image, or paste an image URL. Decoded entirely in your browser. It reads retail UPC and EAN codes, Code 128 and ITF shipping labels, QR codes, Data Matrix, Aztec and PDF417, and retries a tightly cropped image with an added white margin before reporting that no barcode was found.

Point your camera at a barcode. We'll decode it automatically.

Camera access requires HTTPS and a one-time permission.

Result

Decode a barcode from your camera, an uploaded image, or an image URL — the result will appear here.

Supported Barcode Formats

The reader decodes the major 1D and 2D symbologies used across retail, logistics and healthcare.

UPC-A
UPC-E
EAN-8
EAN-13
ITF / ITF-14
Code 39
Code 93
Code 128
QR Code
Data Matrix
Aztec
PDF417

About the online barcode reader

The ReadBarcode online barcode reader scans 1D and 2D barcodes directly in your browser — straight from your phone camera, a webcam, an image upload or an image URL. Decoding runs locally in JavaScript, so the barcode never leaves your device. It works for retail UPC/EAN codes, logistics labels with Code 128 or ITF, QR codes and Data Matrix.

Use this when you need to scan a barcode online without installing an app, or when you want to verify what a printed label actually encodes.

When to Use It

  • Reading a product barcode on a store shelf from your phone.
  • Decoding a Code 128 carton label from a quick photo or upload.
  • Checking a QR code on a poster without opening it on your phone.
  • Debugging what a generated barcode actually encodes.
  • Scanning when you don't trust unknown app store scanner apps.
  • Quick desktop scanning over a webcam for catalog work.

How It Works

  1. Pick an input Choose camera, image upload or paste an image URL — whichever is fastest.
  2. Allow access if needed Grant camera permission once. Uploads and URLs don't need any permission.
  3. Frame the barcode Hold the code flat and steady. The reader auto-detects 1D and 2D formats.
  4. Get the decoded value The result panel shows the value and format.
  5. Copy or scan again Copy the value with one click or hit Scan another to scan the next one.

What to Avoid

  • Blurry, very dark or very washed-out photos — the decoder needs sharp edges.
  • Reflections on glossy packaging that wipe out part of the bars.
  • Cropping that cuts off the quiet zone (white space) around a barcode.
  • Heavily rotated or warped images — straighten them first if you can.
  • Expecting a UPC to come back with product info on its own — that needs a lookup tool.

Tips & Tricks

  • Good even lighting beats a high-resolution camera every time.
  • Move your phone slightly closer instead of zooming in.
  • If a 1D code fails, try cropping tighter and uploading the cropped image.
  • For QR codes on screens, dim your monitor a bit to reduce glare.
  • Damaged labels often still decode if you photograph them straight on.

Decoding tips by barcode type

The reader auto-detects the format, but a little framing know-how gets a clean read on the first try.

Barcode typeHow to get a clean read
Retail UPC / EANFill about 60% of the frame and keep the bars horizontal. These 1D codes decode fastest when the quiet zones on both ends are visible.
Code 128 / ITF-14 cartonsShoot straight on under even light. Long logistics codes fail when the photo is taken at an angle that compresses the narrow bars.
QR codesHold steady so all three corner finder squares are sharp. On a screen, dim the display to kill glare before scanning.
Data Matrix / GS1 2DGet close — these are small and dense. Avoid heavy JPEG compression on uploads, which smears the tiny modules together.
Damaged or curved labelsPhotograph the label flattened and straight on. Partial damage often still decodes, because a scan line can cross an undamaged part of a 1D code and 2D codes carry error correction.

Private by Default

Decoding runs in your browser using a JavaScript port of the ZXing library. Camera frames and uploaded images never leave your device, and we don't store the barcodes you scan.

How to Read a Barcode

To read a barcode, pick Camera, Image or URL in the tool above and aim it at the code; the decoded value appears in the Result panel.

  1. Press Start camera, drop an image onto the Image tab, or paste a link and press Decode URL.
  2. Check the format badge and the value. The camera stops after the first successful read.
  3. Press Copy value, or Scan another to clear the panel for the next code.

Since the value is plain text, the page doubles as a barcode to text reader: paste it into a spreadsheet or order form instead of retyping digits.

Scan a Barcode With Your Phone

Open this page in your phone browser, tap Start camera and allow camera access. The reader asks for the rear camera at up to 1080p and requests continuous autofocus where the phone supports it. Nothing is installed, so the barcode reader online free works on a work phone where you cannot add a free barcode scanner app.

Scan a Barcode Online Free With a Webcam

To scan a barcode online free on a laptop or desktop, use the same Camera tab with a built-in or USB webcam, which makes this a barcode reader for computer use with no software to install. If the webcam cannot focus that close, photograph the code with your phone and upload the photo instead.

Online Barcode Scanner vs a Handheld Barcode Scanner

An online barcode scanner suits occasional reads and checking what a code contains, while a handheld barcode scanner is faster for scanning dozens of items into another program.

FeatureThis online readerHandheld scanner
CostFree, with the camera you ownA device to buy
Many items in a rowOne code per scanBuilt for fast repeated scanning
2D codes such as QRYesImager models only; laser models read 1D only
Where the value goesShown on the page to copyTyped into the field that has the cursor
Image files and linksYesNo

How to Read a Barcode Number

The number printed under the bars is the same value a scan returns. On retail packs it is a GTIN, whose structure shows who licensed it and whether it was copied correctly, but not what the product is.

Product names and prices live in brand and retailer databases, so finding them takes a lookup, not a better scan. To check what kind of number you have, paste it into the barcode type detector.

What the Digits Under a Barcode Mean

  • A UPC-A shows 12 digits and an EAN-13 shows 13. A UPC-E shows 8 and is a zero-suppressed UPC-A.
  • The first two or three digits of an EAN-13 are a GS1 prefix naming the GS1 member organization that licensed the number, not the country of origin.
  • An EAN-13 starting with 978, or with 979 followed by a digit other than 0, carries a book's ISBN.
  • An EAN-13 or UPC-A starting with 2 is a restricted circulation number assigned for internal use, often on variable-weight items, and means nothing outside that store or country.
  • The last digit is a check digit calculated from the others with the GS1 modulo-10 method, so one mistyped digit makes the check fail.

The guide on what a GTIN is and how it is issued covers how these numbers are allocated.

Why a Barcode Cannot Be Read

A barcode cannot be read when the image loses the contrast between bars and spaces, when its quiet zone is missing, or when the reader does not support its symbology.

  • Motion blur or poor focus smears narrow bars into wide ones.
  • Glare from shrink film or lamination wipes out part of the symbol.
  • Light bars on a dark background are inverted, and this reader looks for dark bars on light, so it may miss them.
  • Text touching the bars hides the edges of a 1D code. For uploads and image links, the reader retries with a white margin added.
  • 1D codes have no error correction, while QR Code, Data Matrix, Aztec and PDF417 use Reed-Solomon error correction and tolerate some damage.
  • Codabar and GS1 DataBar Limited are not decoded here.

To identify an unfamiliar symbology, see the overview of barcode formats and where each is used.

Frequently Asked Questions

Which barcode formats does the reader support?

The reader decodes UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF (Interleaved 2 of 5), ITF-14, RSS-14, RSS Expanded, QR Code, Data Matrix, Aztec and PDF417.

Do You Upload My Images to a Server?

No. The camera stream stays in your browser, and uploaded images are decoded locally with JavaScript. Pasted image URLs are loaded directly by your browser too — we don't proxy them.

The Camera Scanner Isn't Starting — What Should I Check?

Camera access requires HTTPS and a user gesture. Make sure you're on a secure connection, allow camera permission when prompted, and that no other tab is currently using the camera.

Why Didn't My Uploaded Image Decode?

Try a sharper, well-lit photo where the barcode is straight, fills most of the frame, and isn't reflective or wrinkled. For dense 2D codes (QR, Data Matrix), avoid heavy compression.

Can I Paste an Image URL From Another Website?

Yes, if the host allows cross-origin image loading (CORS). If a URL fails, download the image and use the upload option instead.

Can a Barcode Scanner Scan a Phone Screen?

A camera-based scanner can, and that includes this online reader: point the camera at the screen, or upload a screenshot of it. Laser scanners usually cannot, because a screen does not reflect the laser beam the way a paper label does. If glare washes out part of the code, tilt the phone slightly until the bars look solid.

How Does a Barcode Reader Work?

A barcode reader measures the dark bars and light spaces of a 1D code, or the grid of dark and light modules in a 2D code, and converts them back into characters using the rules of that symbology. This reader does it in software: it turns each camera frame or image into black and white, looks for a known start pattern or finder pattern, and checks the result against the check digit or error correction before showing it.

Can Barcode Scanners Read All Barcodes?

No. Laser scanners read only 1D barcodes, and every scanner, hardware or software, decodes only the symbologies it was built or configured for. This reader covers the formats listed on this page but not Codabar or GS1 DataBar Limited. It also returns one barcode per scan, so crop an image that holds several codes before uploading it.

Related Tools