Wi-Fi and contact QR codes: the exact text format and escaping
A QR code for Wi-Fi is plain text with a fixed shape. We generated codes with the Apps24 encoder for Wi-Fi, a hidden network, a name and password with special characters, and a contact card, then decoded each image with ZXing-C++ 3.1.1.
Input and result
WIFI:T:WPA;S:Cafe Guest;P:sunny-2026;; | 38 | 29 × 29 |
WIFI:T:WPA;S:Office;P:sunny-2026;H:true;; | 41 | 29 × 29 |
WIFI:T:WPA;S:Cafe\;Guest;P:pa\:ss\\word;; | 41 | 29 × 29 |
BEGIN:VCARD … END:VCARD | 100 | 41 × 41 |
What the result means
Every sample decoded back to exactly the text we entered, including WIFI:T:WPA;S:Cafe\;Guest;P:pa\:ss\\word;;, where each of \ ; , : and " inside the name or password carries a backslash. A 38-character Wi-Fi text produced a 29 × 29 module code and a 100-character text 41 × 41. The generator accepted up to 2,331 ASCII characters or 777 Korean syllables.
What to do next
1. Write the text as WIFI:T:WPA;S:name;P:password;; (T:nopass for open networks, H:true for hidden ones). 2. Escape special characters with a backslash. 3. Download the PNG and scan it with the phone that will be used. 4. Keep the text short so the modules stay large when printed.
Use the toolLimits and test conditions
Decoding was done on digital images with software only. We did not scan printed codes or test specific phone models, and what a phone does after reading a code depends on its camera app. The sample passwords are not real networks.
qr-format-results.jsonReferences
Apps24 checks examples against the implementation and regression tests. Browser experiments state their conditions; they do not certify every device. Report an error with the page URL, input, expected result and browser. Never send passwords, private documents or personal data.