tutorials

The WIFI: Payload Specification: Field Grammar, Backslash Escaping, and Why Enterprise EAP Networks Cannot Be Encoded

Let guests join your network with one scan. Step-by-step setup, the full WIFI: format with escaping rules, hidden networks, and security considerations.

Updated September 2026

A Wi-Fi QR code stores your network name, password, and security type in a standard format that modern phones recognise. When a guest scans it, their phone offers to join the network — no password to type.

  1. 1Open the Wi-Fi QR Code Generator.
  2. 2Enter your network name (SSID) exactly as it appears when you connect manually.
  3. 3Choose the security type — WPA for WPA2/WPA3 networks, WEP for old networks, or No password for open networks.
  4. 4Enter the password (skip this for open networks).
  5. 5Tick "Hidden network" only if your router broadcasts the SSID as hidden.
  6. 6Download the code and print it or display it on a screen.

The format behind it

The generator builds a string in the WIFI: standard defined by the Wi-Fi Alliance. T is the security type, S is the network name, P is the password, and H marks a hidden network. A typical result looks like this:

WIFI:T:WPA;S:MyNetwork;P:MyPassword;;

For a hidden network, the same string gains an H field:

WIFI:T:WPA;S:MyNetwork;P:MyPassword;H:true;;

Escaping: the detail that breaks codes

The characters ; , : " and \ have special meaning in the format, so they must be escaped with a backslash inside the SSID and password. If your password is pa:ss;word, the encoded string must carry it as pa\:ss\;word. A generator that skips this step produces a code that appears to work but joins the wrong network — or fails entirely — because the phone reads the password as ending at the first special character.

Real passwordEncoded in the WIFI: string
sunny-daysunny-day (nothing to escape)
pa:ss;wordpa\:ss\;word
say"hello"say\"hello\"
back\slashback\\slash

WPA, WPA2, WPA3, and the T field

The standard only defines T:WPA and T:WEP (plus nopass for open networks). Phones treat WPA as covering WPA2 and most WPA3 networks, so choose WPA for any modern router. If your network is WPA3-only in "sae" mode with no WPA2 fallback, some older phones will not join regardless of the code — that is a router setting, not a QR problem. Mixed WPA2/WPA3 mode is the guest-friendly choice.

Where to put the finished code

  • •A framed card in the guest room or on the coffee table — behind glass it also resists tampering.
  • •The back of the front door for rental apartments, next to check-in instructions.
  • •A cafe table tent, paired with a "Scan to join our Wi-Fi" caption so nobody has to guess.
  • •A digital display or tablet at reception, which you can update instantly if the password changes.

Security: treat the code like a printed password

A Wi-Fi QR code is a printed password. Anyone who scans it joins the network; anyone who photographs it and runs the image through a decoder reads the SSID and password in plain text. That is convenient for guests and exactly as risky as it sounds, so the rule is simple: never embed your main network password in a code. Create a dedicated guest network in your router — most modern routers expose this in a couple of taps — and put only that network's credentials in the code.

A guest network isolates visitors from your personal devices: they can reach the internet but not your printer, NAS, or smart-home hub. If you ever need to revoke access — after a guest leaves, after a code goes missing, after a staff turnover — change the guest password, print a fresh code, and the old one is instantly dead. Rotating a guest password costs one reprint; rotating your main password means re-pairing every device in the house.

Where guest networks help most

  • •Short-term rentals: a framed code on the fridge beats a texted password that guests lose or mistype.
  • •Cafés and waiting rooms: a code on the table removes the "what's the Wi-Fi?" question from staff's day.
  • •Co-working spaces: rotate the guest password monthly without disrupting resident members on a separate network.
  • •Home offices: keep IoT and guest traffic off the network where your work laptop lives.

When a Wi-Fi code will not work

A few router configurations defeat the standard. WPA3-only networks in pure SAE mode (with no WPA2 fallback) will not join from some older phones regardless of the code — that is a router setting, not a QR problem; switch the router to WPA2/WPA3 mixed mode for guest compatibility. Enterprise networks that require a username as well as a password (WPA-Enterprise / 802.1X) cannot be encoded in the WIFI: standard at all, because the format has no field for a per-user identity. Captive-portal networks — the kind that open a web page asking you to click "accept" — also defeat the code, because the join itself succeeds but the portal still blocks traffic until the guest interacts with the browser.

The full field grammar

The WIFI: format is a semicolon-delimited key-value string with a fixed set of keys. T is the security type (WPA, WEP, or nopass); S is the SSID; P is the password; H:true marks a hidden network; the string always terminates with a trailing semicolon pair. Fields may appear in any order, but every field value must be escaped where it contains a reserved character. The format has no field for a per-user identity, which is the structural reason WPA-Enterprise networks cannot be encoded.

FieldMeaningRequired?
T:Security type — WPA, WEP, or nopassYes
S:Network name (SSID)Yes
P:Password / pre-shared keyNo (open networks omit it)
H:trueMarks a hidden SSIDNo
(trailing ;;)Terminates the stringYes

Why WPA3-SAE and Enterprise defeat the format

The T:WPA value covers WPA2-PSK and WPA3 in transition mode, where the network still accepts a WPA2 handshake and the QR-supplied password works. A pure WPA3-SAE network that rejects WPA2 fallback cannot be joined from a code on some older handsets, because the join path the format triggers assumes a PSK exchange. WPA-Enterprise (802.1X) is structurally impossible: it requires a username and password pair plus an EAP method, and the format has no field for any of them. Captive-portal networks join successfully but the portal blocks traffic until the guest interacts in a browser — the code cannot complete that step.

The ZXing origin and parser quirks

The WIFI: format was introduced by the ZXing ("zebra crossing") barcode library and adopted informally across iOS and Android before any formal standardisation. Because adoption happened through implementation rather than specification, parsers disagree on edge cases: some accept unescaped special characters, some reject them, and a few treat a missing trailing semicolon as a fatal error. A generator that escapes strictly — backslash before every ; , : " and \ — produces a code that scans on the widest set of devices, because it satisfies the strictest parser in the field rather than the most lenient.

The password is embedded in the code. Anyone who scans it — or decodes the image with a decoder tool — can read it. Use a separate guest network, not your main one, and rotate the password if you ever need to.

Make a QR code