📱

QR & Barcode Decoder

Decode QR codes and barcodes from a URL — returns all detected symbols with type, payload, and position

GET 1 credit /v1/qr/decode
curl "https://barcode.toolkitapi.io/v1/qr/decode?url=https%3A%2F%2Ftoolkitapi.io%2Fqr-code.png"
import httpx

resp = httpx.get(
    "https://barcode.toolkitapi.io/v1/qr/decode?url=https%3A%2F%2Ftoolkitapi.io%2Fqr-code.png",
)
print(resp.json())
const resp = await fetch("https://barcode.toolkitapi.io/v1/qr/decode?url=https%3A%2F%2Ftoolkitapi.io%2Fqr-code.png", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "found": 1,
  "results": [
    {
      "data": "https://toolkitapi.io",
      "type": "QRCODE",
      "quality": "high",
      "position": {
        "top_left": [50, 50],
        "top_right": [350, 50],
        "bottom_left": [50, 350],
        "bottom_right": [350, 350]
      }
    }
  ]
}

Try It Live

Live Demo

Description

Decode QR codes and barcodes from a URL — returns all detected symbols with type, payload, and position

How to Use

1

1. Make a GET request with `url` pointing to a publicly accessible image containing one or more QR codes or barcodes.

2

2. The API scans the entire image for QR codes and barcodes, returning all detected symbols.

3

3. Each result includes the decoded `data`, the symbol `type` (e.g. `QRCODE`, `CODE128`, `EAN13`), a `quality` indicator, and the bounding `position` polygon.

About This Tool

Use the QR & Barcode Decoder to detect and extract data from QR codes and barcodes in any image. Provide a publicly accessible URL and the API returns every detected code along with its type, decoded payload, quality indicator, and bounding position.

The decoder supports QR codes as well as common 1D barcode symbologies (Code 128, EAN-13, etc.), making it a universal reader for mixed-format images such as scanned documents, product photos, or screenshots.

Why Use This Tool

Frequently Asked Questions

What image formats are supported?
The decoder accepts PNG, JPEG, GIF, BMP, and WebP images at the provided URL.
Can it detect multiple codes in one image?
Yes. The API scans the entire image and returns all detected QR codes and barcodes. Check the `found` field for the total count.
Does it only decode QR codes?
No — the decoder recognises QR codes and common 1D barcodes including Code 128, EAN-13, EAN-8, UPC-A, and others. The `type` field in each result tells you which symbology was detected.
What does the quality field mean?
The quality indicator reflects the confidence and clarity of the decode. Values like `high` indicate a clean scan, while lower quality may result from blurry or partially obscured codes.

Start using QR & Barcode Decoder now

Get your free API key and make your first request in under a minute.