# QR Code & Barcode Scanner

> Read QR codes, barcodes (EAN, Code 128 …) and Data Matrix with the camera or from images. Handheld USB scanners work too.

- Open in browser: https://pockettoolbox.org/en/barcode-scanner
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Reads 1D barcodes and 2D codes from your camera, from images or from a connected handheld scanner.

In camera mode you point your phone or webcam at the code and detected codes go straight into the list. In image mode you drop a screenshot or photo into the box, several codes in one image are found as well. Handheld scanner mode takes the input of a USB or Bluetooth scanner, counts repeated scans and exports the list as CSV. Links are recognized but never opened automatically.

Decoding uses zxing-cpp compiled to WebAssembly (zxing-wasm), the WASM file is served by pockettoolbox.org itself. Supports QR, Micro QR, rMQR, Data Matrix, Aztec, PDF417, MaxiCode, EAN/UPC, Code 128/39/93, ITF, Codabar and GS1 DataBar. Camera frames come from getUserMedia and are analyzed in memory one by one, nothing is recorded. Handheld scanners act as a keyboard: the tool collects the characters until the scanner finishes with Enter or Tab.

## FAQ

### Which codes can it read?

QR codes, Data Matrix (for example on medicine packs and electronic parts), Aztec (on train and plane tickets), PDF417, supermarket barcodes (EAN-13, EAN-8, UPC) and the usual industrial barcodes such as Code 128, Code 39 and ITF.

### How do I use a USB barcode scanner with it?

Plug in the scanner, open the "Handheld scanner" tab and start scanning. Almost every device types the code like a keyboard and sends Enter afterwards. The tool counts items scanned more than once, and you can save the list as CSV for Excel.

### Is it safe to scan unknown QR codes?

Links are only shown here and never opened on their own. That way you see the address before you decide to visit it. Especially on parking meters and stickers, check that the domain really belongs to the provider.

## Popular tasks

- [Scan a QR Code](https://pockettoolbox.org/en/scan-qr-code)
- [Scan a Barcode](https://pockettoolbox.org/en/scan-barcode)

---
PocketToolbox (https://pockettoolbox.org/en)
