QR & Barcode Decoder
Decode QR codes and barcodes from a URL — returns all detected symbols with type, payload, and position
/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
{
"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
Description
How to Use
1. Make a GET request with `url` pointing to a publicly accessible image containing one or more QR codes or barcodes.
2. The API scans the entire image for QR codes and barcodes, returning all detected symbols.
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
- Receipt processing — Extract barcodes from scanned receipts for expense tracking or inventory reconciliation
- Ticket validation — Decode QR codes from event tickets or boarding passes to verify authenticity
- Document digitisation — Read barcodes embedded in scanned forms, invoices, or shipping labels
- Quality assurance — Verify that printed QR codes are scannable and contain the correct data
- Reverse lookup — Decode a QR code image to inspect the encoded URL or payload before visiting it
- Multi-code extraction — Detect multiple barcodes in a single image (e.g. a shelf photo with several products)
Frequently Asked Questions
What image formats are supported?
Can it detect multiple codes in one image?
Does it only decode QR codes?
What does the quality field mean?
Start using QR & Barcode Decoder now
Get your free API key and make your first request in under a minute.