A QR code that scans perfectly at your desk can still fail on a glossy poster, a curved bottle, or a three-year-old phone. The 25 test cases below close those gaps: 8 format cases, 8 edge-data cases, 6 camera cases, and 3 security cases. Each one gives you the exact payload to encode and the result a correct reader should produce. A full pass takes under an hour on two devices.
This suite is built for QA teams signing off on an app update, print buyers approving a campaign, and developers who just changed their scanner pipeline. Encode each payload exactly as written — several cases deliberately include characters that break careless generators and readers.
How to Use This Test Suite
The suite only means something if you run it on a matrix, not on one phone. A single pass/fail tells you about that one device; a matrix tells you about your audience. Set yours up like this:
- Pick 2–3 devices. One current iPhone, one current Android, and one older or budget model if you can get one. The old device finds more failures than the two new ones combined.
- Pick 2–3 readers. The native camera app, one third-party scanner, and a browser-based scanner where you paste an image. Native cameras are conservative; third-party readers are where weird behavior shows up.
- Encode payloads verbatim. Type them exactly as printed here. If a case contains an escaped character, that escape is the test.
- Record one row per case per device. Pass, fail, or "opened but wrong" — the third outcome is the most common and the easiest to miss.
- Re-run failed cases after every fix. A fix that solves case 14 can break case 3; the matrix catches that.
For a broader pre-launch checklist that wraps around these cases — print proofs, destination checks, sign-off flow — use the 10-point QR code test scanner checklist alongside this suite.
Format Coverage Cases (1–8)
These eight cases prove your reader recognizes every payload type you will actually ship. Results should match the behavior described in the ISO/IEC 18004 symbology specification and each platform's handling of the decoded string.
| # | Payload to encode | Expected result | What it proves |
|---|---|---|---|
| 1 | https://example.com | Opens the page; domain in the address bar matches | Baseline decode and open |
| 2 | Hello QA 123 | Text is displayed verbatim; nothing auto-opens | Plain text stays text |
| 3 | WIFI:T:WPA;S:QANetwork;P:test1234pass;; | Join prompt shows SSID and password exactly as encoded | WiFi parsing |
| 4 | vCard — use the block below the table | Contact-save offer shows name, phone, and email | vCard parsing |
| 5 | mailto:qa@example.com?subject=Scan%20Test | Compose screen opens with recipient and subject prefilled | mailto handling |
| 6 | smsto:+15551230000:Hi from the test suite | SMS app opens with number and body prefilled | SMS handling |
| 7 | tel:+15551230000 | Dialer offers the number; it does not auto-call | tel handling without action |
| 8 | Calendar event — use the block below the table | Calendar offer shows the correct date, time, and title | VEVENT parsing and time zones |
Two of the payloads are multi-line. Encode them exactly, including the line breaks:
Case 4 — vCard:
BEGIN:VCARD VERSION:3.0 N:Tester;Alex;;; FN:Alex Tester TEL:+15551230000 EMAIL:alex@example.com END:VCARD
Case 8 — calendar event:
BEGIN:VEVENT SUMMARY:QR Test Meeting DTSTART:20260315T140000 DTEND:20260315T143000 END:VEVENT
Judgment calls to watch for: case 7 should offer the call, never place it. Case 8 is a timezone trap — if the calendar shows a different hour than you encoded, the reader or the generator mangled the timestamp, and the same bug will hit every event code you print.
Edge-Data Cases (9–16)
Format cases prove a reader works; edge-data cases prove it works correctly. Every case here has caused a real production failure for someone — truncated campaign parameters and mangled Unicode are the two most common.
| # | Payload to encode | Expected result | What it proves |
|---|---|---|---|
| 9 | https://example.com/store/category/outdoor?page=2&sort=price_asc&ref=qr_poster&campaign=summer2026&placement=entrance | Full URL opens; every parameter survives in the address bar | Long URLs are not truncated; the code is visibly denser |
| 10 | https://example.com/landing?utm_source=qr&utm_medium=print&utm_campaign=test | All three UTM parameters reach the analytics report | Tracking survives the scan |
| 11 | https://example.com/docs/setup#step-3 | Page opens and the address bar still contains #step-3 | Fragment handling |
| 12 | https://example.com/Products/Overview | Server returns the page, not a 404 | Reader does not lowercase the path |
| 13 | Café ☕ ünïcode test | Displayed text matches the payload character for character | UTF-8 round-trip |
| 14 | WIFI:T:WPA;S:Net\;1;P:pass1234;; | Phone tries to join an SSID literally named Net;1 | Escaped semicolons parse correctly |
| 15 | vCard with FN:Björn Müller | Saved contact shows Björn Müller, not Bj??rn M??ller | Accented characters in contacts |
| 16 | 01234567890123456789 | Scans; the code is the smallest and least dense of your batch | Numeric mode efficiency |
Case 16 deserves a note: digits encode far more efficiently than letters, so a numeric-only payload produces the smallest possible code for its length. That is why pure-number codes (serials, ticket IDs) scan from farther away — and why you should not "test" distance with a URL code if your production code is numeric.
Camera and Environment Cases (17–22)
These six cases stress the capture side: optics, lighting, and surfaces. Run them with the same payload (a mid-length URL is fine) so only the environment changes between cases.
| # | Setup | Expected result | What it proves |
|---|---|---|---|
| 17 | Print a 2 cm code; scan from ~20 cm | Decodes reliably within a second or two | Minimum size for close-range use |
| 18 | Dim the room until you would hesitate to read a label | Reader either compensates (exposure, torch prompt) or fails clearly | Low-light behavior you can plan around |
| 19 | Laminate or glass over the code, angled toward a light source | Scan succeeds while tilting the phone to kill the glare | Glare training and laminate decisions |
| 20 | Inverted code: light modules on a dark background | Record whether your readers accept it — many still do not | Whether inverted designs are safe for your audience |
| 21 | Code wrapped around a bottle or can | Scans when curvature stays gentle and the code is large enough | Curved-surface limits before you commit to packaging |
| 22 | Code shown on a second screen; scan that screen | Decodes despite moiré bands; pasting a screenshot also works | Screen-to-camera and paste-image paths |
Case 20 is the one that saves redesigns: inverted color schemes pass design review and then fail in the field. If your readers choke on case 20, the fix is to print dark modules on a light background — or to accept a smaller usable audience. Damage interacts with all of this, by the way: a code that barely passes case 17 has no margin left for scratches, which is exactly what the damaged QR code limits guide covers.
Security Cases (23–25)
The last three cases check whether a reader helps the user make a safe decision. A scanner is a link-opener; these cases verify it behaves like one that shows its work.
| # | Payload to encode | Expected result | What it proves |
|---|---|---|---|
| 23 | http://example.com | Preview and address bar clearly show http://, not a padlocked https | No silent protocol masking |
| 24 | https://xn--pple-43d.de | Reader displays the true domain (punycode or the Unicode form), never a plain lookalike | Homograph domains stay visible |
| 25 | myapp://settings | Reader warns or asks before launching an unknown scheme; nothing auto-runs | Unknown schemes are not auto-executed |
Case 24 needs a word of explanation. Internationalized domains like äpple.de are encoded on the wire as punycode — the xn-- string above. A reader that quietly converts that into a friendly-looking Latin string can make a lookalike domain read as the real thing. You want the ugly truth displayed, not a helpful disguise.
Frequently Asked Questions
Why should I test QR codes on multiple devices?
Because decoding is implemented separately by Apple, Google, and every third-party app, and they disagree at the edges — inverted codes, exotic WiFi payloads, punycode display. A matrix of 2–3 devices and 2–3 readers catches most of those disagreements in under an hour. One device proves that your code scans somewhere; a matrix proves it scans for your audience.
What sample QR codes should every QA toolkit include?
At minimum: one URL, one WiFi, one vCard, one plain-text payload, plus the edge-data cases above — a long URL, escaped characters, and an accented contact. Our sample QR codes for testing library groups ready-made codes by exactly what each one stresses.
Can I use the same QA checklist for every project?
The core 25 cases transfer between projects unchanged. What changes is emphasis: packaging projects should extend cases 19 and 21 with real substrate samples, while app projects should run every case against each app release, because a scanner-library update can change behavior overnight.
Which devices should be included in compatibility testing?
A recent iPhone, a recent Android, and — this is the one teams skip — an older or budget device. If you must choose only two, take the newest and the oldest hardware you can find. Also include the desktop path if your audience will ever paste a screenshot into a browser scanner.
How often should QR codes be re-tested?
Before every print run, after any change to the destination URL, and on a schedule for long-lived assets — a code on industrial equipment or a museum wall deserves a quarterly scan check. Dynamic codes add one more trigger: re-test after changing where the short URL points.
What downloadable resources are most useful for QA teams?
A shared spreadsheet that mirrors these 25 cases — one row per case, one column per device, pass/fail plus a note. It turns the suite into a sign-off artifact your print vendor or app reviewer can read without explanation. Pair it with the URL-specific URL test codes when campaigns lean heavily on tracked links.
Wrap-Up
Twenty-five cases, four groups, one matrix: format coverage proves every payload type decodes, edge-data proves it decodes correctly, camera cases prove it decodes in the real world, and the security cases prove your reader shows users the truth before they tap. Run the suite before each print run and each app release, keep the spreadsheet as your sign-off record, and you will catch the failures that one-off desk scans always miss.