How to read a barcode from an image
- 1
Add the image
Drag in a photo, pick a file, or paste a screenshot with Ctrl+V (⌘V on a Mac).
- 2
Or use your camera
Switch to Use camera and hold the barcode inside the frame, a hand’s width away.
- 3
Read the number
You see the digits or text, the barcode type (like EAN-13 or Code 128) and what kind of number it is.
- 4
Copy it
One tap copies the result, ready to paste into a spreadsheet, a search or your inventory system.
What the numbers mean
A barcode only holds a number or some text. What it means depends on the type:
- UPC-A (12 digits, US and Canada): a GS1 company prefix, an item number the company picked, and a check digit at the end.
- EAN-13 (13 digits): the first 2 or 3 digits show which national GS1 office issued the number, not where the product was made. Then come the company, the item and the check digit.
- ISBN: an EAN-13 starting with 978 or 979 is a book number.
- ITF-14 (14 digits, on cartons): the first digit is the packaging level, and the next 12 are usually the product’s own number inside the box.
- Code 128, Code 39 and Data Matrix: whatever the company decided to put in, like a SKU, a serial number, a tracking number or an Amazon FNSKU. There’s no fixed meaning.
Want to know who a retail number belongs to? Verified by GS1 shows which company a UPC or EAN is registered to. The barcode itself has no product name or price in it: shops look those up in their own systems.
Reading a barcode from a photo, a screenshot or a PDF
- Photos: shoot straight on, close enough that the barcode fills about a third of the picture, with no glare across the bars. Curved cans and bottles read best with the bars running up and down.
- Screenshots: zoom in until the barcode is big on screen first. Each bar needs a few pixels to tell thin from thick.
- PDFs: this reader takes images, not PDF files. Open the PDF, zoom in on the barcode, take a screenshot and paste it here.
- Several barcodes in one image, like a shipping label, are all read at once, and each one is outlined so you know which result is which.
Why a barcode won’t scan
- The margins are cut off. Linear barcodes need a blank strip on both sides. If the photo or the print crops it, scanners can’t find the start and end.
- It’s blurry or too small. Move closer, tap to focus, or use a sharper image.
- Low contrast or the wrong colors. Bars must be dark on a light background. Red bars disappear under the red light of laser scanners, and white-on-black only works on some scanners (this one reads it).
- The check digit is wrong. UPC, EAN and ITF-14 end with a check digit. If it was miscalculated when the barcode was made, many scanners reject the code. Remake it with a generator that adds the digit for you.
- Bars are damaged: a crease, a scratch or a label edge through the bars. Codes like Data Matrix and QR survive some damage, but linear barcodes usually don’t.
Need to make a barcode?
Every reader here has a matching generator, free, with the check digit added and a scan test before you download: barcode generator (all types), UPC, EAN-13, Code 128, ITF-14 and Data Matrix. Need hundreds? Use the bulk barcode generator.
Scanning QR codes? This page reads them too, but the QR code scanner page explains the link safety check it runs on every code.