qrhue

How a Wi-Fi QR code works

The code carries the network name and password in a fixed format. Phones made since 2017 read it and offer to join. The password is readable by anyone who scans, so put the code where only guests see it.

4 min read · updated 8 November 2026

What is inside the code

A Wi-Fi code is plain text in a format that camera apps agreed on years ago: WIFI:T:WPA;S:Cafe Guest;P:latte2026;; where T is the security type, S the network name and P the password. A hidden network adds H:true; and an open network uses T:nopass; with no P. That is all. There is no server involved and nothing to expire: a Wi-Fi code works as long as the network keeps that name and password.

Because it is text, anyone who scans it can also read the password. Treat the printed code like a card with the password written on it.

What phones do

The code is the fast path, not the only one: print the network name and password in small text next to it for laptops and older phones.

PhoneWhat happens on scanSince
iPhone, built-in Camera appbanner "Join Network"; one tap connects and saves the networkiOS 11, 2017
Android, Camera or Google Lensoffers to connect; on most phones one tap joinswidely since Android 10, 2019; earlier phones need a scanner app
Android, Settings → Wi-Fican also show a QR code for a saved network to share itAndroid 10
Laptopsno built-in support; the person types the password shown next to the code

Security type: pick WPA

Almost every home and small business router uses WPA2 or WPA3 with a shared password; both are encoded as T:WPA. Phones work out the exact variant from the router. WEP exists in the format but no router made this decade uses it. Networks that ask for a username and password (WPA2-Enterprise, eduroam, many offices) cannot be joined from a QR code on current phones; the format has no field for the username.

Hidden networks

If the router does not broadcast the network name, set the hidden option so the code carries H:true;. iPhones join hidden networks from a code; some Android phones do, some ask the person to find the network manually. Hiding a network adds little security and costs you this reliability, so for a guest network it is usually better to leave it visible.

Passwords with special characters

Semicolons, commas, colons, quotes and backslashes have meaning inside the format and must be escaped with a backslash. Our Wi-Fi generator does that for you; if you build the text by hand in another tool and the phone shows a password that stops at a semicolon, that is why. Spaces are fine. Emoji and non-Latin letters in the network name work on recent phones but not on older Android, so for a guest network a plain Latin name saves support calls.

Where to put it

  • Inside: on tables, at reception, in a guest room folder, by the till. Anyone there is already a guest.
  • Not in the window and not on the outside wall; the password then belongs to the street.
  • Use a guest network separate from the one your till, cameras and office computers use. Most routers offer one in two taps.
  • Change the guest password once or twice a year and reprint; the codes are free, the reprint is the only cost. There is no editable Wi-Fi code: the password is in the ink.
  • Print at 3 cm or more for a table card and keep a clear margin. Sizes are in the print size guide.

A code that does not connect

Check the password by typing it in once. Check the security type: an open network encoded as WPA, or the reverse, is the usual cause. Check that the network name in the code matches the router exactly, including case and spaces. If the code reads on one phone and not another, print bigger; the content of a Wi-Fi code is short, so density is rarely the problem, but tiny prints on glossy menus are. The general checklist is in why a QR code will not scan.