# Scan a Barcode

> Read barcodes and 2D codes with a camera, a photo or a USB handheld scanner. Repeated items are counted and the list exports to Excel as CSV.

EAN-13 from a package, Code 128 from a shipping label or Data Matrix from a component: the scanner reads the common 1D and 2D formats. With a handheld scanner on a USB port it turns into a small inventory list without installing any software.

- Open in browser: https://pockettoolbox.org/en/scan-barcode
- Tool: [QR Code & Barcode Scanner](https://pockettoolbox.org/en/barcode-scanner)
- Runs entirely in your browser; files and input are never uploaded.

## How it works

1. Start the camera or drop a photo of the barcode into the “Image” tab.
2. For a handheld scanner, open the “Handheld scanner” tab and start scanning.
3. Copy the list or save it as CSV. Identical codes share one row with a count.

## FAQ

### Does my USB barcode scanner work in the browser?

Almost always. Most scanners register as a keyboard and send Enter after the code. If yours sends Tab instead, change that next to the input field.

### Can I use it for stocktaking?

For small inventories, yes. Keep “Count identical codes together” on, scan each item once per piece and save the CSV at the end. Excel opens it with code, count and time.

### Does it show which product it is?

No, only the number itself. An EAN does not contain a product name, that would need an online database, which is exactly what this tool does not query.

### Which 2D codes are supported?

QR, Micro QR, Data Matrix, Aztec, PDF417 and MaxiCode. Data Matrix is common on medicine and electronics, Aztec on train tickets, PDF417 on boarding passes and some ID cards.

## Popular tasks

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

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