Sample QR Codes for Testing: 15 Free Test Codes

Author

QRScannerAI

Fifteen sample QR codes, free to copy, each one built to prove something about a reader: that it handles a basic URL, that it joins a WiFi network, that it saves a contact cleanly, that it survives dense data. Encode any payload below in a generator, scan it with the phone or app you are evaluating, and compare what happens against what the code says it checks. These are the starter codes for the developer and marketer testing suite — each format family here has its own deep-dive page, linked from its section below.

Scanning a sample QR code with a browser-based scanner

How to Use This Library

Every code below is a payload — the exact text to feed a generator. Paste it in, generate at a comfortable size (3 cm or larger on screen or paper), and scan. Decoding itself is standardized by ISO/IEC 18004, so any standards-respecting reader gets the same bytes; what varies between readers is what they do next — open, join, save, or choke. That next step is what you are testing, so write down what each device does. One pass through all fifteen takes about twenty minutes and tells you more about your reader than a month of casual scanning.

The 15 Codes at a Glance

#FamilyWhat it checks
1URLBaseline https decode and open
2URLA realistic business destination (menu page)
3URLOne tracking parameter survives the trip
4WiFiWPA guest network join flow
5WiFiOpen network with no password
6WiFiLong password — pattern density handling
7vCardMinimal 3.0 contact saves cleanly
8vCardFull card: org, title, email, URL
9Plain textRaw text display without assumptions
10Emailmailto: opens the mail app prefilled
11SMSsms: opens the messages app prefilled
12Locationgeo: opens a map at the coordinate
13StressLong path — smaller modules, tighter margin
14StressAccented characters arrive uncorrupted
15StressJSON payload survives byte-for-byte

URL Codes (1–3)

The starter family. Each URL is safe to scan — example.com exists specifically for this — and each checks one layer of the open-a-link flow.

https://example.com/hello

Code 1 — the baseline. If this does not open, stop diagnosing the URL and check the reader: camera permission, the QR toggle, or the reader itself. Everything else on this page assumes this code works.

https://example.com/menu

Code 2 — the realistic destination. A plain page name, the shape most restaurant and retail codes actually use. It checks that the reader opens ordinary pages without demanding an app handoff or mangling the path.

https://example.com/thanks?src=table-tent

Code 3 — the tracked link. One parameter, src=table-tent, that must survive into the address bar. If it disappears, your analytics will silently misattribute every scan from that placement — a campaign-killer that never looks like one.

When the basics pass and you are ready for the hostile URL variants — ports, fragments, punycode domains, custom app schemes — the URL test codes page runs ten of them with expected results for each.

WiFi Codes (4–6)

WiFi payloads use the WIFI: text convention. Encode exactly as written — semicolons and all — and scan with the phone that is supposed to join.

WIFI:T:WPA;S:Guest-WiFi;P:welcome2026;;

Code 4 — the guest network. A WPA network named Guest-WiFi with password welcome2026. The reader should offer to join; confirm the SSID on the join prompt matches what you encoded before tapping.

WIFI:T:nopass;S:Open-Lounge;;

Code 5 — the open network. No password, no security type. Some readers handle this differently — instant join, or a confirmation first. Both are fine; silently joining without any prompt is the behavior to notice.

WIFI:T:WPA;S:Long-Password-Test;P:this-passphrase-is-deliberately-long-1234;;

Code 6 — the dense one. A deliberately long password makes the pattern noticeably denser. If this code scans, your generator and print size have headroom; if it struggles, the fix is a shorter passphrase or a bigger print — not a better scanner.

The escaping edge cases — SSIDs with semicolons, colons, commas, quotes — are where real WiFi codes break, and the WiFi test codes page probes each character with its own payload.

vCard Codes (7–8)

Contact codes fail quietly — the name saves but the phone number vanishes — so the test is not "did it open" but "did every field land."

BEGIN:VCARD
VERSION:3.0
N:Chen;Alex;;;
FN:Alex Chen
TEL:+1 555 010 0177
END:VCARD

Code 7 — the minimal card. Name and one phone number. Save it, open the contact, verify both fields. This is the floor: a reader that mishandles this will mishandle everything richer.

BEGIN:VCARD
VERSION:3.0
N:Chen;Alex;;;
FN:Alex Chen
ORG:Northwind Traders
TITLE:Field Engineer
TEL;TYPE=CELL:+1 555 010 0177
EMAIL:alex@example.com
URL:https://example.com
END:VCARD

Code 8 — the full card. Organization, title, typed mobile number, email, and a URL. Compare the saved contact field by field against this block — that comparison is the test. The vCard test codes page adds version 2.1 and 4.0 variants plus five fields that break readers.

Everyday Payload Codes (9–12)

Four payload families most people meet weekly, rarely tested on purpose.

This is plain text from the 15-code sample library

Code 9 — plain text. The reader should display the sentence as text, not try to open it as a link. Readers that "helpfully" URL-ify arbitrary text are guessing; notice the guess.

mailto:hello@example.com?subject=Sample%20test

Code 10 — email. Should open the mail app with the address and subject prefilled. The %20 should arrive as a space between the two words.

smsto:+15550100:Testing one two three

Code 11 — SMS. Should open the messages app addressed to the number with the text drafted — not sent. Nothing transmits until you press send, which is exactly what makes this a safe test.

geo:40.7128,-74.0060

Code 12 — location. Should open a map application centered on the coordinate. Useful for testing how the reader routes non-web payloads it does not recognize natively.

Stress Codes (13–15)

Three payloads that push pattern density and encoding, in ascending order of awkwardness.

https://example.com/a/very/long/path/for/pattern/density/stress/testing

Code 13 — the long path. More data means more modules, smaller dots, and a tighter scan margin at the same print size. Print it at the same 3 cm as the baseline and see whether distance and focus still cope.

Café naïve résumé façade Straße

Code 14 — the accented text. Five words that exercise UTF-8: cedillas, diaereses, accents, and the German sharp s. If any arrive mangled — the classic Café mojibake — the reader's byte decoding is the culprit.

{"test":"qr-sample","id":15,"ok":true}

Code 15 — the JSON payload. Machine-readable text that must arrive byte-for-byte. Developers wiring codes into apps can use it as a round-trip check before trusting real payloads; the QA test-case page turns checks like this into a full numbered suite with pass criteria.

Frequently Asked Questions

How many devices should I test QR codes on before deployment?

At minimum one iPhone and one Android, since their handling layers differ most; add the oldest device your audience plausibly uses. Two devices catch the common failures, and a third catches the platform quirks that only show up outside your own pocket.

What's the difference between testing static and dynamic QR codes?

Static codes carry the final payload, so you test once and the result is permanent. Dynamic codes carry a redirect the provider can repoint, so you also test the redirect: that it resolves, that it keeps parameters, and that it still resolves after the provider changes something.

Can I test QR codes without printing them?

Yes — display the code on a screen and scan it with a phone, or upload the image to a browser scanner. Screen testing covers decode and handling; printing adds its own variables (size, contrast, substrate), so print a test only for codes that will actually ship on paper.

Why does my QR code work on iPhone but fail on Android?

Because handling is platform-specific. Decoding is standardized, but each system routes payloads through its own camera, browser, contacts, and WiFi-join flows — and a code at the edge of one platform's comfort zone lands outside it. Retest the failing device alone, changing one variable at a time.

How often should I retest existing QR codes?

Retest after anything that touches the destination: a website migration, a network password change, a provider update, or a reprint. Codes pointing at stable destinations deserve a spot check each quarter; campaign codes deserve a test every time the campaign changes.

What causes QR codes to fail in certain lighting conditions?

Glare and exposure. A glossy surface bounces your light source straight into the lens and blanks out whole rows of modules; dim light drags the exposure long enough that hand shake blurs the pattern. Both are physics, not reader bugs — tilt the code or add light.

Should I test QR codes on desktop computers?

Only if desktop is part of your audience's journey — upload decoding works there, and a webcam path exists through browsers. Print codes are overwhelmingly scanned by phones, so treat desktop as a secondary check rather than a gate.

What's the minimum QR code size for reliable scanning?

It scales with scan distance and data density — a common working rule is one tenth of the distance, so about 2.5 cm at arm's length, more for dense payloads. The practical test is this library itself: dense codes, printed at your real size, scanned at your real distance.

Wrap-Up

Fifteen codes, twenty minutes, and you know what a reader does with links, networks, contacts, and awkward data — and, just as valuable, which code in the set it handles worst. Keep the results next to the generator you use, re-run the pass whenever a payload or a print run changes, and when a code passes everywhere but a reader still misbehaves in the field, the 10-point scanner test isolates the reader's weak spots. Let the cluster pages above take each format as deep as your deployment needs.