The WIFI: Payload Format and Escaping
AnyTool WiFi QR Code Generator encodes network credentials as the MeCard-style WIFI: string that phone cameras recognise: WIFI:T:<type>;S:<ssid>;P:<password>;H:<true if hidden>;;, always terminated with the required double semicolon. The type field accepts three values only — WPA (which covers WPA, WPA2 and WPA3, since the device negotiates the actual protocol with the router), WEP for legacy networks, and nopass for open networks where the password field is omitted. Because the format treats backslash, semicolon, comma, colon and double-quote as delimiters, the generator backslash-escapes each of those characters inside the SSID and password so a network name or password containing them still produces a valid code that joins on the first scan. Hidden networks set H:true so the phone searches for a non-broadcast SSID.
- Format: WIFI:T:WPA;S:ssid;P:password;H:true;; — terminated with ;;
- Type is one of WPA (= WPA/WPA2/WPA3), WEP, or nopass (open)
- Special characters \ ; , : and " are backslash-escaped in SSID and password
- Open networks omit the password; hidden networks set H:true
- Scanning prompts iOS 11+ / Android 10+ to join with no typing
