QR Code & Barcode Scanner
Ask AI
Choose an AI assistant to explain this page using its public sources. Gemini opens gemini.google.com. Gemini, Copilot, DeepSeek, Meta AI and Qwen require pasting the prompt below; the other links include it in their address. Sign-in or a manual paste may still be required. Check the answer against the documentation.
Copy the plain-text prompt
Select the complete text, then paste it into your assistant.
Help me understand QR Code & Barcode Scanner browser example on GitHub Pages for QR Code & Barcode Scanner, the open-source scanner. Source documentation; publication is not implied. Provided README context (verify against the sources): Scan a QR code or a barcode from an image, in your browser. The image is decoded on this device by a WebAssembly module: it is never uploaded. Decoded links are shown as text and never opened. Read the public documentation below. Explain what this destination does, its documented installation or access steps, a minimal example if supported, prerequisites, limitations and license. Distinguish published packages from working source and preparation. Cite your sources; if a page is unavailable or a fact cannot be checked, say so. Do not invent installation commands, benchmark results or comparisons. Answer in my language. Public sources: https://qrcode-ai-com.github.io/qrcode-barcode-scanner-rust/ https://github.com/qrcode-ai-com/qrcode-barcode-scanner-rust/tree/main/examples/web-vite https://qrcode-ai.com/en-US/qr-code-scanner https://qrcode-ai.com/en-US/barcode-scanner https://qrcode-ai.com/en-US/qr-code-scanner/sdk https://qrcode-ai.com/en-US/barcode-scanner/sdk https://qrcode-ai.com/en-US/qr-code-generator https://qrcode-ai.com/en-US/barcode-generator
Scan a QR code or a barcode from an image, in your browser. The image is decoded on this device by a WebAssembly module: it is never uploaded. Decoded links are shown as text and never opened.
The QR code scanner and the barcode scanner are QR Code AI’s own scanning pages. To add this engine to your code, start with the QR code scanner SDK guide or the barcode scanner SDK guide, which cover every runtime. To make a test image with a known payload, use the QR code generator or the barcode generator, then compare the scan with the value you encoded.
How it works
The browser package works in three steps: install and initialize it, pass an image or a camera frame to the engine in the page, then read the report. This page does the same with the image you choose below: its worker loads the published WebAssembly package, scans the image and shows the report.
Choose an image
You can also drop an image file on this box.
full runs every stage and scores how well a QR code scans; fast skips the deep QR stages; frame only decodes, as for camera frames. Every scan here runs to its end, without a time budget.
Result
Loading the scanner…
Full report (JSON)
What runs here
- npm package
- Package version
- WASM SHA-256
- Engine version
- not loaded yet
The package name, its version and the SHA-256 of its WebAssembly module are read from the installed package. The engine version comes from the loaded module.
What it returns
The picture is a recorded scan of one image that holds a QR code and a Code 128 barcode, the image of the first sample button above. Both come back in the same report, each with its format and the place where the engine measured it.
What it reads
The browser package holds the engine, so it reads what the engine reads. Codes of different formats in the same image come back in one report.
| Family | Formats |
|---|---|
| QR | QR Code, Micro QR, rectangular Micro QR (rMQR) |
| Matrix and stacked | Data Matrix, Aztec, PDF417, MaxiCode |
| Retail | EAN-13, EAN-8, UPC-A, UPC-E |
| Other linear | Code 128, Code 39, Code 93, Codabar, ITF, GS1 DataBar, GS1 DataBar Expanded, Telepen |
The engine’s supported formats section states the known limits.
The same engine in other runtimes
| Runtime | Package | How it scans |
|---|---|---|
| Rust | qrcode-barcode-scanner on crates.io | In process |
| Node.js | @qrcode-ai-com/qrcode-barcode-scanner on npm | In process, native |
| Browser | @qrcode-ai-com/qrcode-barcode-scanner-wasm on npm | In the page, WebAssembly |
| Python | qrcode-barcode-scanner on PyPI | In process |
| Go | qrcode-barcode-scanner-go | Through the installed qrscan |
| PHP | qrcode-barcode-scanner-php | Through the installed qrscan |
| Command line | qrscan | One command, one JSON report |
The Rust, Node.js, browser and Python packages hold the engine. The Go and PHP packages hold
no decoder: each one starts qrscan and hands you its report.
Language and platform names belong to their owners. They identify a runtime and imply no endorsement.