QR code decode
Decode a QR code image in the browser: pixels go through grayscale and adaptive thresholding before jsQR runs, and the payload is classified as URL, Wi-Fi, vCard, phone and more.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Choose a QR image
The image is decoded locally in the browser and never uploaded.
PNG / JPEG / WebP — aim for at least 200 px per side.
Pipeline: Canvas pixels → grayscale → adaptive threshold → jsQR; huge images are shrunk to 1600 px on the longest side (nearest neighbour).
Result
Pick an image, then press Decode.
What this tool does
- A friend sends a QR screenshot — see exactly what link is inside before you scan it.
- Read the SSID and password straight out of a Wi-Fi QR code without bouncing around your phone settings.
- Triage QR images: URLs, contacts, phone numbers and SMS payloads are labelled by type at a glance.
- Debug QR codes you generate: paste a screenshot back in and confirm the payload and version.
Example
Input
A 148 × 148 PNG whose QR code contains https://unikit.cc/tools/qrcode_decode
Output
Content type: URL; Content: https://unikit.cc/tools/qrcode_decode; Payload size: 40 chars · 40 bytes · 1 line; Strategy: decoded as-is; the preview draws a red box around the code
The type is inferred from the payload prefix only (http(s):// means URL) and nothing is opened automatically — you have to click "Open link" yourself.
Frequently asked questions
Is my image uploaded?
No. The browser reads the file into a bitmap, draws it on a Canvas to get the pixels, and hands them to jsQR running locally. There are no network requests, and everything is gone when you close the tab.
Why does it fail on some QR codes?
The usual suspects: a blurry or tiny image (aim for at least 200 px per side), no quiet zone, glare or a steep viewing angle, or a cropped code. The tool tries three strategies in order — as-is, inverted, adaptive threshold — and only gives up when all three fail.
How is the Wi-Fi password extracted?
Wi-Fi QR codes use the ZXing `WIFI:T:WPA;S:ssid;P:password;H:hidden;;` syntax. The tool splits on semicolons, handles `\;` `\,` `\:` escapes, and lists SSID, password and security separately so you can copy them straight out.
What happens with very large images?
Anything longer than 1600 px on its longest side is shrunk first with nearest-neighbour sampling. jsQR scans every pixel, so shrinking speeds things up a lot, and nearest neighbour keeps black/white edges crisp instead of smearing them into grey like bilinear interpolation would.
How is this different from the QR code reader tool?
Same decoder, but this one also reports which strategy succeeded. The same image may fail as-is and decode only after inversion or adaptive thresholding — other tools just say "not found", while here you can see which step saved it.
Keywords:qrcode decodeqr decoderjsqr