qrcodo
← All guides

QR codes for Wi-Fi: the WIFI: string format

· qrcodo team

Reading a 16-character password off a fridge magnet is nobody’s favourite part of visiting. Modern phones can join Wi-Fi straight from a QR code — the iPhone camera since iOS 11 and most Android phones since Android 10. The code just contains a short piece of text in a specific format.

The format

WIFI:T:WPA;S:Cafe Guest;P:espresso42;;

It starts with WIFI:, then a list of key:value; fields, and ends with an extra ;. Order doesn’t matter, but this is the order most apps write.

FieldMeaningValues
TSecurity typeWPA (also covers WPA2/WPA3 on most phones), WEP, or nopass for open Wi-Fi
SWi-Fi nameExactly as it appears in your phone’s Wi-Fi list
PPasswordLeave out the field entirely when T:nopass
HHidden Wi-Fitrue if the name isn’t broadcast; omit otherwise

Escaping special characters

Because ; and : are used as separators, they need a backslash in front of them when they appear inside a name or password. The same goes for \, , and ".

Wi-Fi name:    Joe's Diner; Back Room
Password:      p@ss:word;2025

WIFI:T:WPA;S:Joe's Diner\; Back Room;P:p@ss\:word\;2025;;

Forgetting an escape is the most common reason a Wi-Fi code “scans but won’t connect”. Spaces, apostrophes and emoji are fine as they are.

Making one with qrcodo

On the generator, tap the Wi-Fi template, replace My Wi-Fi and password with your own details, and download. Since everything happens in your browser, your password is never sent to us or anyone else.

Tips from the café counter

  • Use a guest Wi-Fi. Most home and small-business routers can offer one. A printed code is a printed password.
  • Error correction Q is a good choice for laminated table cards that will get splashed.
  • Print the name and password underneath as well, for laptops and older phones.
  • Change the password? Reprint the code. The password is inside the pattern; there’s nothing to update remotely.

Make a QR code →