Barcode Scanner
A premium barcode scanner that works entirely in your browser. Scan barcodes using your webcam or mobile camera with live continuous scanning, upload an image file, drag and drop an image, or paste from clipboard. Automatically detects CODE128, CODE39, CODE93, Codabar, EAN-13, EAN-8, UPC-A, UPC-E, ITF, MSI, and Pharmacode barcodes. All processing happens locally using ZBar WebAssembly — your images never leave your device.
No Uploads
Everything stays in your browser
Powered by ZBar
WASM-based scanning library
Zero Tracking
No analytics, no cookies, no data collection
Works Offline
No internet needed after first load
Supported Barcode Formats
All barcode symbologies that the scanner can automatically detect and decode
CODE128
High-density alphanumeric — shipping & logistics
CODE39
Variable-length alphanumeric — government & military
CODE93
Compact alphanumeric — enhanced CODE39
Codabar
Numeric with start/stop — libraries & blood banks
EAN-13
13-digit retail — global standard (except US/CA)
EAN-8
8-digit retail — small product packages
UPC-A
12-digit retail — US & Canada
UPC-E
6-digit compressed — small retail packages
ITF-14
14-digit shipping — outer cartons & pallets
MSI
Variable numeric — warehouse inventory
Pharmacode
Variable numeric — pharmaceutical tracking
How Barcode Scanning Works
Barcode scanning uses image processing algorithms to detect and decode the pattern of parallel bars and spaces in a barcode image.
Image Acquisition
The scanner captures an image from your camera, an uploaded file, a dragged image, or a clipboard paste. The image is rendered to an HTML canvas element for pixel-level access.
Grayscale & Edge Detection
The color image is converted to grayscale and enhanced to make the bar edges more distinct. Edge detection algorithms identify transitions between dark bars and light spaces.
Barcode Localization
The ZBar library scans the image looking for patterns characteristic of barcodes — alternating dark and light parallel lines with specific width ratios. The orientation and location of the barcode are determined.
Symbol Decoding
Once the barcode is located, the pattern of bar and space widths is measured and decoded according to the specific symbology (e.g., CODE128, EAN-13). Each symbology has unique encoding rules for representing characters.
Check Digit Verification
Many barcode formats include a check digit that is mathematically calculated from the preceding digits. The scanner verifies the check digit to ensure the barcode was read correctly and the data is valid.
Result Display
The decoded value is displayed along with the detected barcode type, format details, and scan timestamp. Action buttons allow you to copy, download, or share the result — all without leaving your browser.
Barcode Scanner Use Cases
Practical ways to use barcode scanning in your daily workflow
Retail Product Lookup
Scan EAN-13 or UPC-A barcodes on retail products to identify items, check prices, or verify product information during inventory.
Warehouse Management
Scan CODE128 and ITF-14 barcodes on shipping cartons and pallets for receiving, putaway, picking, and shipping operations.
Inventory Tracking
Use MSI and CODE39 barcodes to track inventory items, assets, and equipment across multiple locations with quick scan-and-verify.
Shipping & Logistics
Scan shipping labels with CODE128 barcodes to track packages, verify addresses, and update delivery status in real time.
Verify Barcode Security
Scan unknown barcodes to preview their content before using them — useful for supply chain security and anti-counterfeiting.
Quick Data Capture
Upload or paste barcode images from screenshots, photos, or emails to instantly extract encoded data without manual typing.
Barcode Types Explained
Understanding different barcode symbologies and where they are used
Retail Barcodes (EAN/UPC)
EAN-13, EAN-8, UPC-A, and UPC-E are the standard barcodes found on retail products worldwide. They encode a product's GTIN (Global Trade Item Number) and are scanned at checkout. These barcodes use fixed-length numeric encoding with check digit verification for reliable scanning.
Logistics Barcodes (CODE128, ITF)
CODE128 and ITF are used in shipping and warehousing. CODE128 is the most versatile barcode standard — it supports the full ASCII character set and offers the highest data density. ITF is specifically designed for outer carton packaging with built-in bearer bars for industrial scanners.
Specialty Barcodes (Pharmacode, MSI, Codabar)
Pharmacode is used for pharmaceutical tracking and tamper-evident packaging, MSI for warehouse inventory control, and Codabar for libraries and blood banks. Each was designed for specific industry requirements and regulatory compliance.
Common Barcode Scanning Problems
Troubleshooting tips for better scan results
- Blurry or out-of-focus images — the barcode bars must be sharp and distinct for reliable decoding
- Insufficient lighting — dark or shadowed barcodes are harder for the scanner to distinguish
- Extreme angles — barcodes scanned at steep angles may appear distorted to the decoding algorithm
- Partial barcode — if the barcode is cut off or partially obscured, the full pattern cannot be read
- Low contrast — light-colored bars on a white background or low-contrast color combinations reduce readability
- Reflection or glare — glossy surfaces can create reflections that obscure the barcode pattern
- Damaged or worn barcodes — scratches, smudges, or fading can make barcodes unreadable
Frequently Asked Questions
Everything you need to know about scanning barcodes with ForgePlug
Is my image or camera feed sent to a server?
What barcode formats can the scanner read?
Can I scan barcodes using my camera?
What image formats are supported for upload?
Can I paste an image from my clipboard?
Why didn't my barcode scan?
Is my scan history saved?
What browsers are supported?
Can I scan multiple barcodes at once?
Can I use this offline?
Frequently Asked Questions
Everything you need to know about scanning barcodes
Is my image or camera feed sent to a server?
What barcode formats can the scanner read?
Can I scan barcodes using my camera?
What image formats are supported for upload?
Can I paste an image from my clipboard?
Why didn't my barcode scan?
Is my scan history saved?
What browsers are supported?
Can I scan multiple barcodes at once?
Can I use this offline?
Share this tool
