Scan a saved image
Pass encoded image bytes from a file upload, screenshot or photo into scan_image. Pick the full profile when working with artistic or styled QR codes.
QR + barcodes
3
10
MIT
A single open-source MIT Rust engine decodes QR images and live camera frames into one consistent scan report carrying detections, parsed payloads and optional QR quality diagnostics, while decoding barcodes in the same image.
Drop it into upload flows, live camera scanners or pre-print QA checks for standard or artistic QR codes. Just need one scan right away? Try the online QR Code Scanner.
Supports both image files and live camera frames with three profiles: full (deepest preprocessing plus score), fast (lighter score) and frame (decode only).
Pass encoded image bytes from a file upload, screenshot or photo into scan_image. Pick the full profile when working with artistic or styled QR codes.
Feed RGBA pixels to scan_frame or mount the browser /camera controller. Camera permissions and stream lifecycle stay fully under your app’s control.
Consume detections and structured payloads in app code. Full and fast include optional quality diagnostics, while frame omits scoring.
Select from 10 published SDK packages backed by the same core engine and report schema, from browser JS/TS to Android Kotlin/Java.
Packages and registries checked on 27 November 2026. Cross-language references live in the GitBook documentation and the scanner repository, while a live browser demo runs on GitHub Pages. Go and PHP wrap the local qrscan executable; see the command-line scanner guide.
Set up file input, WASM loading and result display cleanly. Expand the snippet below for exact code and package manager commands.
Your app owns the file picker or camera interface, spinner states and result buttons. Initialise WASM once, provide a retry path if loading fails and offload synchronous scan calls into a Web Worker.
Separate valid empty scans from runtime exceptions, clear outdated results on each new run and let the user decide what action to take next. With Vite or Nuxt, follow the browser API notes on import.meta.url and serving the .wasm file.
Continue to the JavaScript QR code scanner guide for a full browser walkthrough; other runtimes have dedicated guides too.
Use your preferred package manager; all three fetch the exact same MIT-licensed WebAssembly package from npm.
Before shipping the library, inspect the licensing guide. To test scanning without local setup, open the Vite example in StackBlitz, which installs this package and decodes locally in your browser.
npm install @qrcode-ai-com/qrcode-barcode-scanner-wasm
Initialise the WebAssembly module once, then pass a browser File into this helper. It resolves to an array of decoded strings for standard QR code detections, returning an empty array whenever no matching QR code is present.
import init, { scan_image } from "@qrcode-ai-com/qrcode-barcode-scanner-wasm";
await init();
export async function readQrImage(file) {
const bytes = new Uint8Array(await file.arrayBuffer());
const report = scan_image(bytes, "frame", undefined, undefined, 1000);
return report.detections
.filter((detection) => detection.symbology === "qr_code")
.map((detection) => detection.content.text);
}
The frame profile decodes without computing a scannability score. Pass "full" or "fast" instead of "frame" whenever you also want the QR score and diagnostic hints.
Leaving both dimension arguments undefined applies the engine defaults used by the official browser demo: 10,000 px per side and 64,000,000 total pixels, comfortably covering standard mobile photos up to 48 megapixels. Oversized images are rejected with QRS-002 or QRS-003 rather than downscaled. For public server uploads, pass stricter caps such as the documented 4,096 px and 16,000,000 pixels.
The 1,000 ms budget caps decoding work rather than end-to-end wall time, since image parsing runs before the budget timer starts.
Given a QR code encoding the URL below, the helper returns:
["https://qrcode-ai.com/"]
Inspect the API, scan report contract and licensing notes, or explore every runtime in the GitBook documentation.
A link, a WiFi payload and an artistic QR design illustrate the exact report data and when to enable the full profile.

A URL QR code places https://qrcode-ai.com/ inside content.text. Switch to the full profile for stylised or artistic QR artwork.

The WiFi sample outputs WIFI:T:WPA;S:Guest-Network;P:Demo-Only-2026;; in content.text together with parsed network fields.
Install the right package, send an image or camera frame and surface the structured output inside your UI.
Add the package matching your web, backend or mobile runtime. In browser apps, load the WASM binary once on the client before decoding.
Invoke scan_image with encoded bytes or scan_frame with RGBA pixels off the main thread, specifying a profile and time budget.
Branch cleanly on detections, empty results and input errors, leaving actions like copying or visiting URLs to explicit user input.
Extract the exact fields your app needs without conflating them: decoded text, parsed payload semantics and quality scores answer distinct questions.
Every field and null rule is documented in the report specification. All 10 packages share this identical JSON contract.
See how QR Code AI compares against popular browser decoders on full/fast QR scoring with hints, mixed barcode support and built-in camera helpers.
| Capability | qr-scanner | ZXing Browser | ||
|---|---|---|---|---|
QR decoding | QR codesQR Code AI supports standard QR codes alongside Micro QR and rMQR. | QR codesjsQR is documented specifically as a QR code decoding library. | QR codesqr-scanner is documented specifically as a browser QR reader. | QR codesBoth BrowserQRCodeReader and the multi-format reader handle QR decoding. |
Barcodes | 1D + 2DThe exact same package decodes 1D and 2D barcodes (Code 128, EAN/UPC, Data Matrix, PDF417, Aztec and more), giving an advantage on mixed inputs compared with QR-only libraries. The QR snippet above filters barcodes out. | QR onlyThe referenced jsQR API focuses purely on QR decoding; external barcode packages or integrations are outside this comparison. | QR onlyThe referenced QrScanner API focuses purely on QR decoding; external libraries or plugins fall outside this comparison. | 1D + 2DBrowserMultiFormatReader handles mixed 1D and 2D symbols, an advantage over QR-only packages when workflows mix QR codes and barcodes. Note that BrowserQRCodeReader itself reads QR codes only. |
Image input | Bytes + RGBAQR Code AI provides scan_image for encoded bytes (PNG, JPEG, WebP, GIF) and scan_frame for RGBA pixel buffers with dimensions, alongside /scan for named options. Your app supplies the file or frame. | RGBA pixelsjsQR expects a Uint8ClampedArray of RGBA pixels plus width and height, so your app handles image decoding or canvas pixel extraction. | Image sourcesQrScanner.scanImage handles image, video and canvas elements, ImageBitmap, File/Blob and supported URLs (subject to CORS for cross-origin URLs). | Image sourcesThe browser API exposes image-element, image-URL and canvas decoders; pair the QR or multi-format reader to your input needs. |
Camera controls | Controller + overlayThe /camera and /camera-overlay entrypoints provide a capture controller, position tracker and interactive readout overlay. Decoding stays inside your module Worker while camera permission remains user-granted. | App-managedThe jsQR README leaves camera capture entirely to the host app; its webcam sample grabs ImageData manually before calling the decoder. | Start / stopFor live camera flows, QrScanner supplies start(), stop() and destroy() around a video element, reducing boilerplate compared with decoder-only APIs; user permission is still required. | Capture / stopFor live camera flows, decodeFromVideoDevice and decodeFromConstraints include capture helpers and controls.stop(), cutting boilerplate over decoder-only APIs; user permission is still required. |
QR diagnostics | full / fastThe full and fast profiles compute a 0 to 100 QR scannability score with practical hints when workflows need quality insight beyond raw text. Frame skips scoring, null means unscored, and diagnostics never certify printed labels. | Not describedjsQR returns data, binaryData, chunks, version and location; its documentation describes no QR scannability score or hints. | Not describedqr-scanner’s detailed result exposes data and cornerPoints; its documentation describes no QR scannability score or hints. | Not describedZXing Browser docs describe no QR scannability score or hints; format metadata and error-correction fields serve a different purpose. |
Returned data | Text + payloadThe scan report exposes symbology, decoded string, raw bytes, recognised structured payloads (such as URLs or WiFi configs) and trace fields, without automatically opening links or joining networks. | Text + bytesIts documented output carries data, binaryData, chunks, version and corner points, covering decoded content and geometry rather than a scannability grade. | Text + cornersWith detailed results enabled, output provides data and cornerPoints; the legacy string-only return remains a compatibility option in the cited revision. | Text + metadataDecoded results include text, format, locator points and format-specific metadata; fields such as error-correction level are not a scannability grade. |
Green checks highlight documented advantages for the listed criterion; plain text is neutral. “Not described” indicates the cited docs do not document that feature. Select underlined labels to inspect details. This matrix is not a speed or accuracy benchmark, and diagnostics do not certify printed labels.
Sources: QR Code AI browser API, report specification, jsQR, Nimiq qr-scanner and ZXing Browser
Language packages, camera capture, report payloads, local execution and licensing.
A QR code scanner SDK is a software library embedded directly inside your own app to decode QR images or live camera frames. QR Code AI’s open-source MIT SDK delivers a structured scan report with decoded payloads and optional quality diagnostics. The SDK runs the decoding engine, while your app controls input capture, UI and user actions. For a ready-to-use browser utility, open the online QR Code Scanner.
The SDK spans 10 published languages and runtimes: browser JavaScript/TypeScript, Node.js, Rust, Python, Flutter/Dart, Kotlin/Java for Android, Swift for iOS, .NET/C#, Go and PHP. JavaScript and TypeScript share the browser WASM package, while the CLI ships as a standalone command. Check your runtime’s dedicated guide and the scanner repository for complete instructions.
Yes. The browser build provides scan_image for encoded file bytes and scan_frame for raw RGBA pixel buffers with dimensions. Its /camera and /camera-overlay entrypoints add a capture controller and live overlay. Your application stays responsible for requesting camera access, loading states and stopping the video stream.
A QR code can encode a URL, plain text or structured formats like WiFi credentials, vCard contacts or calendar entries. Many everyday use cases, including social links, PDFs, menus and app downloads, simply store a web URL. The engine extracts the exact text and a parsed payload whenever recognised, leaving presentation and actions to your app; decoding never adds contacts, joins WiFi or authorises payments automatically.
Every call returns a versioned scan report holding detections, decoded content, parsed payloads and execution trace details. Standard QR entries expose symbology and content.text, while full and fast also attach a quality score and actionable hints. A null score indicates unscored rather than zero, and a decoded URL is plain data rather than an instruction to navigate.
Yes. Once loaded, the browser WebAssembly package decodes purely on the client device without a QR Code AI account or hosted API calls. Similarly, the Rust, Node.js, Python, .NET, Android, iOS and Flutter bindings run inside your own process. Because your host app still governs uploads, logging, persistence and outgoing links, local decoding alone is not a blanket privacy or offline guarantee.
Yes. Current releases of the core engine and every language binding ship under the open-source MIT licence, allowing commercial and proprietary usage, customisation and redistribution provided copyright and permission notices remain intact. Check the licensing guide for retained third-party notices and earlier release terms.
No. Local SDK decoding needs neither a QR Code AI generation API key nor creation credits, as SDK licensing is completely separate from the managed creation service. On the creation platform, free creation limits and Premium apply to affected creation features, with a seven-day Premium trial starting when you create your first dynamic QR code or Smart Link. Directly encoded data never expires after that trial, though a managed destination may stop resolving, and local decoding cannot restore an inactive managed link.
Treat an empty detections list as a normal valid scan result. In the browser quick start, images containing only non-QR codes like barcodes also yield an empty list after filtering. Prompt users for a crisper image or camera frame showing the full symbol and its quiet zone. Catch invalid inputs (unreadable or oversized files) and initialisation exceptions separately, and clear stale output so earlier results never appear under a failed scan.
Yes. The exact same packages decode 16 barcode symbologies: Code 128, Code 39, Code 93, Codabar, ITF, GS1 DataBar, GS1 DataBar Expanded, Telepen, EAN-13, EAN-8, UPC-A, UPC-E, Data Matrix, Aztec, PDF417 and MaxiCode, even when mixed with a QR code in one image. The snippets here filter for standard QR codes; check the Barcode Scanner SDK for barcode-focused guides. Keep in mind a retail barcode number is an identifier, so product titles, prices and stock belong in a separate catalogue database.