# QR and barcode reader

> Read QR codes and barcodes from a photo, a paste, or the camera.

Free QR and barcode reader. Drop an image, paste one, or scan with the camera. Several codes in one picture are listed with their format. Decoding runs in this browser, so the photo stays on the device.

- Page: https://benchline.fabwaseem.com/t/qr-code-reader
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: An image, a pasted picture, or a camera frame.
- Output: The text and format of each code found in the image.
- Keywords: qr code scanner online, scan qr code from image, barcode reader
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Add a picture.** Drop an image, paste one, or start the camera.
2. **Read the codes.** Each code is listed with its format. Copy the text you need.

## Use it from an AI agent

MCP tool name: `read_barcode`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/qr-code-reader with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Read QR codes and barcodes from an image. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns each code's text and format. An image with no code returns an empty list.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "file": {
      "type": "object",
      "properties": {
        "url": {
          "description": "Public http or https URL. Private and local addresses are refused.",
          "type": "string"
        },
        "data": {
          "description": "Base64 bytes or a data URI. Decoded size is capped at 10 MB.",
          "type": "string"
        },
        "mimeType": {
          "description": "MIME type when you know it.",
          "type": "string"
        },
        "filename": {
          "description": "File name, including the extension when you have one.",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "description": "The image. Provide url or data."
    }
  },
  "required": [
    "file"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_barcode",
    "arguments": {
      "file": {
        "url": "https://example.com/file"
      }
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Does the photo get uploaded?

No. The decoder runs in this browser. A picture you drop or paste is not sent to a server.

### Which codes are recognized?

QR, Aztec, Data Matrix, PDF417, and common retail barcodes such as EAN, UPC, and Code 128.

### Can it read more than one code?

Yes. Up to eight codes in the same image are listed, each with its text and format.

### Can I use the camera?

Yes. Start the camera and hold the code in frame. The page asks for camera access and keeps the frames on the device.

## Related tools

- [QR code generator](https://benchline.fabwaseem.com/t/qr-code-generator): Make a static QR code for text, a URL, Wi-Fi, or a vCard. Set the colors and error correction, then download SVG or PNG.
- [Image format converter](https://benchline.fabwaseem.com/t/image-convert): Convert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.
- [Image to text](https://benchline.fabwaseem.com/t/ocr-image-to-text): Read the words in a picture. The OCR model downloads once and runs in this browser.
- [Image cropper](https://benchline.fabwaseem.com/t/image-crop): Crop with a free box or an aspect preset, including a circle.
