Skip to content
artqode
Switch light or dark themeCreate
Open menu

Menu

Static codes are free forever. No sign-up to make one. They never expire. Scanners never see an ad.

Guide · Wi-Fi

Wi-Fi QR codes: how they work and how to get them right

A Wi-Fi QR code holds three things: the network name, the security type and the password. A phone camera reads them and offers to join, with no typing. It is one of the simplest QR codes there is, and nearly every failure comes down to a special character, a changed password or the wrong security setting.

By the Artqode team · Updated · 5 min read

What is written in a Wi-Fi QR code

There is a widely used text format for Wi-Fi codes that phone cameras understand. It looks like this:

The Wi-Fi format
WIFI:T:WPA;S:Cafe Guest;P:flat-white-2026;;
The fields
FieldMeaningValues
TSecurity typeWPA for WPA, WPA2 and usually WPA3; WEP for very old routers; nopass for an open network
SNetwork name (SSID)Exactly as the router broadcasts it, capitals included
PPasswordLeft out for an open network
HHidden networktrue if the network does not broadcast its name

The fields can come in any order, and the text ends with two semicolons. A generator writes all this for you. It helps to know the format when something goes wrong.

The special-character trap

Semicolons, colons and commas have a meaning in that format. If your password contains one, it must be escaped with a backslash, or the phone will cut the password short and fail to join.

Character in name or passwordWritten in the code as
;;
:\:
,\,
"\"
\\\

So the password p;ss:word is stored as p;ss\:word. A proper generator does this automatically. Codes typed by hand, or made with a plain-text QR tool, are where this usually goes wrong.

Making one, step by step

  1. Find the exact network name

    Copy it from your router's settings page or the label on the router. A name with a trailing space or different capitals is a different network as far as a phone is concerned.

  2. Pick the security type

    Almost every home and cafe router today uses WPA2 or WPA3, and both use the WPA setting in the code. Choose "none" only if the network truly has no password.

  3. Enter the password and generate

    Use the Wi-Fi QR code generator. The code is assembled in your browser.

  4. Test with a phone that has never joined

    A phone that already knows the network proves nothing. Borrow one that does not, or tell yours to forget the network first.

Is a Wi-Fi QR code safe?

It is exactly as safe as writing the password on a card, because that is what it is. The password sits in the code as readable text. Anyone who can scan the code can read the password, and a photo of the code is as good as the code.

  • Use a guest network. Most routers can run a second network that reaches the internet but not your own devices. Put that one in the code.
  • Keep it indoors. A code in the window shares your Wi-Fi with the whole street.
  • Change the password now and then, and reprint. The old code stops working the moment you do.
  • Do not post it online. A code in a photo on social media can be scanned from the photo.

WPA2, WPA3 and older routers

For WPA2, the format above is well established. For WPA3 the picture is less tidy: sources do not fully agree on how a WPA3-only network should be written, and phones differ. The common advice is to keep WPA as the type, and that works on many set-ups.

If your router is set to WPA3 only and the code will not join, switch the router to its mixed WPA2/WPA3 mode if it has one, and test again. Older phones can then join as well.

Office networks that give each person a username and password use a different system (often called enterprise Wi-Fi). A simple shared-password code is not designed for those.

When the code will not connect

What happensLikely causeFix
Phone says the password is wrongPassword changed, or a special character was not escapedRemake the code with the current password
Phone cannot find the networkName typed differently, or a hidden network without the hidden flagCopy the name exactly; tick hidden if it applies
Phone shows text and no Join buttonThe code was made as plain textRemake it as a Wi-Fi code
Nothing happens at allCode too small, glare, or low contrastPrint larger on matte paper; see the size guide
Joins, then no internetThe router or the connection, not the codeRestart the router or check with your provider

Size and contrast problems are covered in why a QR code won't scan. For a cafe or shop, QR codes for restaurants and shops shows where the Wi-Fi card fits beside the menu and payment codes.

Questions people ask

How do I connect to Wi-Fi with a QR code?

Open the camera on your phone, point it at the code, and tap the prompt that offers to join the network. On current iPhones and Android phones the built-in camera handles it.

Can someone get my Wi-Fi password from the QR code?

Yes. The password is stored in the code as plain text, and many scanner apps display it. Share a Wi-Fi code only with people you would give the password to.

Does a Wi-Fi QR code stop working?

Only when the details inside it change. If you rename the network or change the password, the old code no longer matches and you need a new one.

Can I make a Wi-Fi QR code without an app?

Yes. A browser-based generator is enough. Many phones can also show a QR code for the network they are connected to, from the Wi-Fi settings screen.

Do Wi-Fi QR codes work for hidden networks?

Yes, if the code includes the hidden flag. Without it, a phone may look for a broadcast name, fail to find one and give up.

Make yours. It takes about a minute.

Static codes are free forever. No sign-up to make one. They never expire. Scanners never see an ad.

Make a Wi-Fi code

Built in your browser. No password is sent to us to make it.