Wi-Fi QR Code Generator

ToolGenerators · updated 17 September 2026

What to encode
Colours

Building your own code needs JavaScript. The example below is ready to scan.

The Wi-Fi code encodes three things: the network name, the password, and which kind of security the network uses. A phone reading it offers to join, and the person holding the phone never sees or types the password.

That is worth doing for a guest network in a cafe, a meeting room, a rented flat — anywhere the password is long, shared often, and mistyped constantly.

Pick the security type from the network itself, not from memory. WPA and WPA2 both use the WPA setting here. WEP is old and only present because some equipment still runs it. An open network takes no password at all, and the field disappears when you choose it.

The format is not an ISO standard — it is a convention that came out of the ZXing project and that every major phone now follows. That matters in one practical way: the escaping rules are easy to get wrong, and a code built without them fails in a way that looks like a broken scanner rather than a broken code. Semicolons, colons, commas, quotes and backslashes in a password are all escaped here before the code is built.

Print it at a size where the modules stay separate at arm’s length, and keep the white margin around the symbol.

Questions

Which phones can scan it?
Stock camera apps on both iPhone and Android read it with no extra app. On an older phone a QR reader app does the same job. The phone shows the network name and asks before joining — it never connects silently.
Is printing the code as risky as writing the password down?
It is exactly as risky. The password sits in the code in plain text; anyone who scans the sticker gets it. For a cafe or an office that is the point. For a home network, treat the printout the way you would treat the password on a sticky note.
My password has a semicolon in it. Does that break the code?
Not here. Semicolons and colons separate the fields of the Wi-Fi format, so a password containing one has to be escaped or the phone reads it as the end of the field. This page escapes them for you — it is the single most common way these codes silently fail elsewhere.
What about a hidden network?
Tick the box. A network that does not broadcast its name needs a flag in the code, otherwise the phone searches for a name it cannot see and gives up. For a visible network leave the box empty.

Sources and date checked