Skip to content
Toolcroft

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.

Supported barcode formats

FormatTypeCommon use
EAN-131DRetail product packaging worldwide (13 digits)
EAN-81DSmall product packaging (8-digit abbreviated EAN)
UPC-A1DRetail products in North America (12 digits)
Code 1281DShipping labels, inventory, logistics (full ASCII)
Code 391DIndustrial and government ID systems
QR Code2DURLs, contact info, payments; up to 4,296 characters
Data Matrix2DElectronics, pharmaceuticals, small parts marking
PDF4172DDriver's licenses, boarding passes, ID documents
Aztec2DTrain/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.