Barcode Reader
Read barcodes from an image.
About this tool
Press Use camera and hold a barcode in view, or upload a picture and press Scan file. The decoded value appears in the Result box.
How to use
How it works
The scanner reads common one-dimensional barcodes as well as QR codes. Only the decoded value is shown; the tool does not look up the product. Camera mode uses the rear camera when available and stops after the first read.
Worked example
A product barcode photo
- Input
- A photo of a barcode on a package
- Output
- The number encoded in the barcode
- Walkthrough
- The image is scanned locally and the decoded number is shown.
Limitations
- Does not identify the product from the number.
- Photos must be sharp, well lit and mostly straight-on.
- One code at a time.
- Camera mode needs permission and an HTTPS page.
Questions
How do I scan a barcode online?
Does it look up the product?
Is the image uploaded?
Features
- Camera or image upload
- Shows decoded value
- Private, in-browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
How Do QR Codes Work?
History of Simple Things
Explains encoding payload into a scannable matrix.
Watch on YouTubeReduce image size with srcset
Chrome for Developers
QR codes often sit on posters—keep companion images light.
Watch on YouTube
- GS1 barcodes
GS1
Retail barcode standards next to 1D barcode generators.
- Building a QR code generator
web.dev
Engineering notes when you care how generators work under the hood.