WiFi QR codes are a massive UX improvement — guests scan and connect without typing a password. But many generators produce codes that silently fail on certain devices. The phone reads the code, shows a prompt, but the connection never establishes.
This guide walks through the WiFi QR code format, common pitfalls, and how to create a code that works reliably on every device — iPhone, Android, tablets, and everything in between.
WiFi QR codes work natively on both iPhone (iOS 11+) and Android — no app needed. The camera app recognizes the WiFi format and offers to connect automatically.
The WiFi QR code format
WiFi QR codes encode a special string: WIFI:T:WPA;S:NetworkName;P:Password;; — The T field specifies encryption type, S is the network name, and P is the password. Getting any of these wrong causes silent failures.
Field breakdown
- T (Type): Encryption type — WPA for WPA2/WPA3, WEP for older networks, nopass for open networks
- S (SSID): Network name — must match exactly, including case and spaces
- P (Password): WiFi password — special characters must be escaped with backslashes
- H (Hidden): Optional — set to true if the network is hidden (SSID broadcast disabled)
The most common mistake is using T:SAE for WPA3 networks. Most devices do not recognize SAE and silently fail. Always use T:WPA for both WPA2 and WPA3 networks.
Common compatibility issues
Even with the correct format, some devices may fail to connect. Here are the most common compatibility issues and how to avoid them:
- Use T:WPA for both WPA2 and WPA3 networks (not T:SAE)
- Match the SSID exactly — case-sensitive, including spaces
- Escape special characters with backslashes (semicolons, colons, backslashes, commas)
- Add H:true if your network is hidden
- Test on both iPhone and Android before printing
- Avoid passwords with semicolons or colons if possible — they require escaping
How to escape special characters
If your WiFi password or SSID contains special characters, they must be escaped with backslashes in the QR code string. Without escaping, the phone misinterprets the character as a field delimiter.
Characters that need escaping
- Semicolons (;) — escape as \;
- Colons (:) — escape as \:
- Backslashes (\) — escape as \\
- Commas (,) — escape as \,
Testing your WiFi QR code
Before printing or deploying your WiFi QR code, test it on multiple devices to ensure it works:
- Test on an iPhone with iOS 11 or later using the Camera app
- Test on an Android phone using the native camera or Google Lens
- Test on a tablet (iPad or Android tablet)
- Verify the connection establishes automatically after scanning
- Check that the correct network name and password are pre-filled
- Test from different distances and angles
A WiFi QR code that works on your phone but not your guests' phones is worse than no QR code at all — it creates a false expectation of convenience.
QRKit's WiFi QR Code Generator uses the correct T:WPA format with proper backslash escaping — compatible with both iOS and Android. Try it now.