This barcode scanner online reads a barcode with your phone or laptop camera, or from a picture you already have, and shows the number or text inside it. There's nothing to install. You can also type a product number to find out whether its check digit is right. The camera view and your pictures stay in your browser, so nothing is uploaded.
How to use the barcode scanner online
- Choose Camera, Image or Type a number.
- For Camera, press Start camera and allow access when your browser asks. Hold the code steady and it's read automatically.
- For Image, choose a photo or screenshot that shows the whole code.
- For a typed number, enter 8, 12, 13 or 14 digits and press Check number.
- Copy the value with the button under the result.
The last few codes you scan are listed under the result until you reset or leave the page. That helps when you're checking several items in a row.
Which barcodes it can read
The scanner is built on ZXing, an open-source barcode library, and handles both the striped codes on products and the square codes on tickets and labels.
- Product codes: UPC-A, UPC-E, EAN-8 and EAN-13, the barcodes on retail packaging.
- Industrial codes: Code 39, Code 93 and Code 128, often seen on shipping and warehouse labels.
- Two-dimensional codes: QR Code, Data Matrix and Aztec.
The result shows the format it found, the value and how many characters that value has. To make a code rather than read one, use the QR code generator.
What a check digit is
The last digit of a product barcode isn't part of the number's meaning. It's a small piece of arithmetic that catches mistakes. If a digit is mistyped or misread, the sum no longer comes out right and the code can be rejected. GS1, the organization behind these numbers, publishes the method, and this tool follows it for GTIN-8, GTIN-12, GTIN-13 and GTIN-14 numbers:
- Leave off the last digit. Starting from the rightmost remaining digit, multiply the digits by 3, 1, 3, 1 and so on.
- Add all the results together.
- Subtract that sum from the nearest equal or higher multiple of ten. The answer is the check digit.
A worked example
GS1's own example is the GTIN-13 number 6291041500213. Take the first twelve digits, 629104150021. Multiplying from the left by 1, 3, 1, 3 and so on gives 6, 6, 9, 3, 0, 12, 1, 15, 0, 0, 2 and 3. Those add up to 57. The nearest equal or higher multiple of ten is 60, and 60 minus 57 is 3, which matches the last digit. Type 6291041500213 into the tool and it shows the check digit as correct. Type 6291041500214 and it tells you the last digit is 4 but should be 3.
Why the camera might not start
Browsers only give a website access to the camera with your permission, and, as MDN's documentation of the camera feature explains, only on a secure connection. If you pressed Block by accident, open your browser's site settings for this page and allow the camera. Other apps that are using the camera, such as a video call, can also stop it from starting. If it still won't work, take a photo with your camera app and use the Image option.
Getting a clean scan
- Use good, even light. Glare across a shiny label is the most common reason a scan fails.
- Keep the code flat. A code on a curved bottle reads better when it's near the center of the picture.
- Leave a margin. The blank space on either side of the stripes is part of the code, so don't crop it off.
- Move back a little. Phone cameras often can't focus when they're very close. If the picture looks soft, move away and let it refocus.
- Try a sharper picture. A blurry or very small screenshot may not hold enough detail to read.
What you can do with the result
A barcode holds very little by itself. A product barcode is a number, and it doesn't contain the price or the name of the item. Those live in the database of whoever scans it, such as a shop's till. So this tool shows you the number but can't tell you the product or its price. It's useful for checking that a printed code matches what it should be, for entering a number into a spreadsheet or stock list without typing errors, or for reading a label when the handheld scanner isn't to hand. Pair it with the inventory calculator when you're counting stock.
A QR code can hold a web address, so treat it with some care. The tool shows the text and doesn't open it, which gives you a chance to read where it goes first.
Common mistakes
- Typing the spaces as digits. Spaces and dashes are ignored here, so you can type a number the way it's printed.
- Checking a short UPC-E code by hand. UPC-E is a compressed number, so the GS1 sum above doesn't apply to it as printed.
- Expecting a product name. The code itself doesn't include one.
- Assuming a correct check digit means a real product. It only shows that the digits are consistent, not that anyone has registered that number.
What next
Use this often? Add Barcode Scan to your Home screen.
Frequently asked questions
Is this barcode scanner online free to use without an app?
Yes. It runs in your browser, so you don't need to install anything, and the camera view stays on your device.
Can it read a barcode from a picture?
Yes. Choose Image and pick a photo or screenshot that shows the whole code clearly.
Does it tell me the product name or price?
No. A product barcode only holds a number. The name and price are kept in the seller's own database.
Why won't the camera start?
You may have blocked camera access, or another app may be using the camera. Allow it in your browser's site settings or use the Image option.
How is a barcode check digit worked out?
GS1's method multiplies the digits by 3 and 1 in turn from the right, adds them, and subtracts the sum from the next multiple of ten.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.