Camera, Mic & Media
Barcode Scanner - Scan 1D/2D Barcodes with Camera
Scan EAN-13, UPC-A, Code 128, Code 39, and other barcodes with your camera or from an uploaded image. All processing happens locally in your browser.
Camera active - point at a barcode
Size:Zoom:1.0x
Brightness:100%Contrast:100%
Supported barcode formats
| Format | Type | Common use |
|---|---|---|
| EAN-13 | 1D | Retail product packaging worldwide (13 digits) |
| EAN-8 | 1D | Small product packaging (8-digit abbreviated EAN) |
| UPC-A | 1D | Retail products in North America (12 digits) |
| Code 128 | 1D | Shipping labels, inventory, logistics (full ASCII) |
| Code 39 | 1D | Industrial and government ID systems |
| QR Code | 2D | URLs, contact info, payments; up to 4,296 characters |
| Data Matrix | 2D | Electronics, pharmaceuticals, small parts marking |
| PDF417 | 2D | Driver's licenses, boarding passes, ID documents |
| Aztec | 2D | Train/airline boarding passes |
Tips for better scanning
- Hold the camera steady with good lighting.
- Keep the barcode flat and free from glare or reflections.
- If scanning fails, try uploading a cropped image of the barcode.
Your camera feed never leaves your device
All barcode detection is performed locally using the browser's BarcodeDetector API. No video, images, or decoded data are ever transmitted to a server.
Browser compatibility note
The Web BarcodeDetector API is available in Chrome, Edge, and Samsung Internet but
is not supported in Firefox (as of 2025). This tool automatically falls back to
a JavaScript-based decoder (ZXing or jsQR) in unsupported browsers, though detection may be slower.
What information is in a barcode?
- 1D barcodes (EAN, UPC, Code 128, Code 39): Encode only a number or short text string. The barcode itself contains no product description — that information must be looked up in a database (e.g., a product catalog or inventory system) using the decoded number as a key.
- QR codes: Can encode up to 4,296 alphanumeric characters. Common payloads include URLs, vCard contact info, Wi-Fi credentials (SSID + password), Bitcoin payment addresses, and plain text.
- PDF417: Often found on driver's licenses and boarding passes. Encodes structured data including name, address, date of birth, and document number.
- Data Matrix: Common on electronics PCBs and pharmaceutical blister packs. Encodes serial numbers, part numbers, and traceability codes in a very small footprint.