# Reading a QR code before you trust it: what the decoder shows and what it cannot

> How the decoder reads a QR code from an image, the camera or the clipboard, how it labels the content (link, Wi-Fi, contact and more), why some codes will not decode, and how to check a code before opening anything, following the SPF and CSA advice.

- Tool: [QR Code Decoder](https://toolsg.com/en/qr-code-decoder)
- Language: en (available: en, zh, ms, ta)
- Last verified against official sources: 2026-10-18
- Source site: ToolSG — a planning guide, not official or financial advice. Cite the agencies listed under Sources.

## Key figures at a glance

| Fact | Value | Source |
| --- | --- | --- |
| Ways to read a code | Upload an image, scan with the camera, or paste from the clipboard — Uploads can be up to 10 MB. |  |
| One code per image | A single result is shown — If an image holds several codes, only one is returned, so crop to the code you want. | [jsQR](https://github.com/cozmo/jsQR) |
| Inverted codes | Not read — The tool turns off the library's inverted-image attempt, so light-on-dark codes fail. | [jsQR](https://github.com/cozmo/jsQR) |
| Opening a link | Only after you confirm a warning — The page never opens a link by itself, and the new tab is opened without a referrer. |  |
| Camera access | Needs HTTPS and your permission — Browsers expose the camera only to secure pages. | [MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) |

## Checking a QR code before you open it

Police and the Cyber Security Agency warn that a QR code can lead to a phishing site, and that a pasted-on sticker can replace a real code.

1. **Look at where the code is** (Before scanning) — Does it look pasted over another code? Did it arrive in an unsolicited text or WhatsApp message? If so, do not scan it.
2. **Decode it here first** (At your desk or on your phone) — Upload a photo or screenshot, or use the camera tab. Read the full text before anything is opened.
3. **Read the address carefully** (Once decoded) — Check the domain after `https://`, up to the first `/`. Look for misspellings, extra characters and unfamiliar addresses.
4. **Check payment details separately** (For payment QR codes) — Payment codes decode as one long line of text, not as named fields. Confirm the amount and the recipient name in your banking app.
5. **Open it only if you are sure** (Last) — If unsure, do not open it. Ask the organisation that displayed the code.

## What a QR code can hide

A QR code is just a picture of a string. The SPF and CSA advisory notes that most codes store a URL, but they can also hold email addresses, phone numbers, calendar data and locations. You cannot tell which from the pattern. That is why it helps to read the text before your phone acts on it.

## How the decoder works

The tool draws your image onto a canvas and passes the pixels to the open-source jsQR library, which finds the three corner squares, reads the grid, applies the error correction and returns the text. All of this runs in your browser and the image is not uploaded.

- **Upload or drag and drop.** Any file your browser treats as an image, up to 10 MB. The page lists PNG, JPG and WebP.
- **Camera.** The rear camera is requested. Each video frame is checked in turn and the camera stops on the first successful read. If you decline the permission, or the page is not served over HTTPS, you see an error.
- **Clipboard.** Open the Paste tab and press Ctrl+V (Cmd+V on a Mac) with an image copied.

## How the content is labelled

After decoding, the text is classified by how it starts. Apart from `http(s)://`, the prefixes are case-sensitive:

| Starts with | Shown as | What you get |
| --- | --- | --- |
| `http://` or `https://` | Link | The text and an Open link button behind a warning |
| `WIFI:` | Wi-Fi network | Name, security and password (hidden until you reveal it) |
| `BEGIN:VCARD` | Contact | Name, phone, email, organisation, URL, address, note |
| `mailto:` | Email | Address, subject, body |
| `tel:` | Phone number | The number |
| `SMSTO:` | SMS | Number and message |
| `geo:` | Location | Latitude, longitude and a Google Maps link |
| Anything else | Plain text | The raw text |

Tested with sample strings: `WIFI:T:WPA;S:HomeNet;P:secret123;;` gives name HomeNet, security WPA and password secret123. A vCard line such as `TEL;TYPE=CELL:+65 9123 4567` is read as the phone number, and `SMSTO:+6591234567:Meet at 5:30` as number plus the whole message. `tel:+6561234567` gives the number, and `geo:1.3521,103.8198` gives a map link.

Things that fall through to plain text: `sms:` links (only `SMSTO:` is read), upper-case `MAILTO:` or `GEO:`, `WiFi:` in mixed case, and other schemes such as `otpauth://`. A bare domain is shown as a link only if it is optional `www.` plus one label plus a listed ending (`.com`, `.org`, `.net`, `.edu`, `.gov`, `.io`, `.co`, `.app`, `.dev`, `.tech`, `.info`, `.biz`, `.xyz`, `.me`, `.tv`). So `www.iras.gov.sg` is a link, but `example.sg` and `shop.example.com` are plain text. PayNow and other bank QR codes also decode as plain text. The tool does not split them into UEN, amount and reference. Only the first phone number and email in a vCard are shown, and the full text is always available under Raw Text.

## Why a code may not decode

- **Inverted colours.** Light modules on a dark background are skipped on purpose. In a quick test with a clean image, jsQR read the normal version and missed the inverted one. Invert the image in any editor and try again.
- **Low contrast.** Mid-grey on light grey did not read in the same test, even with the inversion setting changed.
- **Blur, glare or an angled photo.** Retake it straight on, in good light, close enough that the code fills a good part of the frame.
- **More than one code.** Only one result is shown, so crop to the code you want. The [image cropper](https://toolsg.com/en/image-cropper) can do it.
- **Not a QR code.** Barcodes, Data Matrix and similar formats are not supported.
- **Heavily damaged codes.** Error correction repairs a limited share of the code, from about 7% to 30% depending on the level chosen when it was made.

## What is saved in your browser

The tool keeps your last 20 decoded results in your browser's local storage so you can look them up again. That includes the full text of a Wi-Fi code, **password included**, although the history list shows only a lock label for Wi-Fi entries. It stays until you delete the entries or clear site data. Nothing is sent to a server. Clear the history on a shared computer.

> **Tip:** Even a safe-looking address can be a look-alike. Compare the domain letter by letter with the one you expect, and when in doubt type the organisation's address yourself.

## Common mistakes

- **Opening the link without reading the domain.**
- **Trusting a code because it is on a poster or sticker.** It may be pasted over the real one.
- **Treating a payment QR code as verified** because it decoded. Decoding shows text, not who the money goes to.
- **Scanning codes from unsolicited messages.** The advisory says to avoid them.
- **Expecting the tool to read several codes in one photo.**

## Related tools

- [QR code generator](https://toolsg.com/en/qr-code-generator) — make your own codes and see how level and size change them.
- [Image cropper](https://toolsg.com/en/image-cropper) — crop a photo down to the one code you want to read.
- [Image converter](https://toolsg.com/en/image-converter) — convert an unusual image format to PNG before decoding.

## Frequently asked questions

**How do I decode a QR code?**

Upload an image containing a QR code or use your camera to scan it. The tool instantly decodes and displays the content without requiring any app installation.

**Can I decode QR codes from screenshots?**

Yes, you can upload screenshots or photos containing QR codes. The decoder extracts the QR code data from the image automatically.

**Is my QR code data sent to any server?**

No, all QR code decoding happens entirely in your browser. Your images and decoded data never leave your device, ensuring complete privacy.

**Can I decode damaged or blurry QR codes?**

The decoder can handle some damage thanks to QR codes' built-in error correction. However, severely damaged or low-quality codes may not decode successfully.

**What types of QR code content can be decoded?**

The decoder reads the text stored in a QR code. It recognises and formats URLs, Wi-Fi details, vCard contacts, email addresses, phone numbers, SMS and geographic locations; anything else is shown as plain text.

**Do I need to install an app?**

No, this is a web-based tool that works directly in your browser. No app installation or registration required.

**Can I decode multiple QR codes at once?**

The tool decodes one QR code at a time. If an image contains several, it returns a single one, so crop the image to the code you want.

**Why should I decode QR codes before scanning?**

Decoding first lets you verify the destination before visiting a link. This helps avoid phishing sites, malware, or suspicious URLs hidden in QR codes.

**Can I use this to verify PayNow QR codes?**

Only as raw text. The decoder shows the text stored in a PayNow QR code without interpreting its fields (UEN, amount, reference), and it cannot confirm that the payee is genuine. Check the payee name your banking app shows before you pay.


## Sources

- [SPF and CSA — Joint advisory on protecting yourself from malicious QR codes (22 May 2023)](https://www.police.gov.sg/media-hub/news/2023/20230522_-joint_advisory_on_protecting_yourself_from_malicious_qr_codes) — What a QR code can hold, the risks, and the precautions quoted in this guide.
- [jsQR — pure JavaScript QR code reading library](https://github.com/cozmo/jsQR) — The decoding library; documents the inversionAttempts option.
- [MDN — MediaDevices.getUserMedia()](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)
- [ZXing wiki — Barcode Contents (Wi-Fi, geo, SMS and other formats)](https://github.com/zxing/zxing/wiki/Barcode-Contents)
