GenerateRandomSearch

Wi-Fi QR Code Generator

A Wi-Fi QR code is a short string in a particular shape, and it fails in one particular way: a semicolon in the password ends the field early, so the phone tries to join with half a password. The string still looks perfectly fine, which is why it is worth checking rather than eyeballing. The password here is escaped and then read back to confirm it survived, character for character.

What this generator does

Builds the Wi-Fi string in the shape phones expect, escaping the characters that would otherwise end a field early, and draws it as a QR code with the text shown underneath.

How to use this tool

  1. Enter the network name exactly as it appears, capitals and all.
  2. Choose the security type and enter the password.
  3. Tick the box if the network does not broadcast its name.
  4. Draw the code and print it where guests will see it.

Understanding the controls

Network name
The name exactly as broadcast. Capitals matter, and so do spaces.
Security
WPA or WPA2 for almost every modern network, WEP for very old ones, or open for a network with no password.
Password
Semicolons, commas, colons, quotes and backslashes are all escaped, so a password containing them still works.
Hidden network
Tick this if the network does not broadcast its name, or the phone will not find it after scanning.

Common use cases

  • A guest network code for a cafe, a holiday let or a waiting room
  • Saving visitors from typing a long password on a phone keyboard
  • A code by the door for tradespeople and cleaners
  • Sharing your home network without reading the password aloud
  • A code for a network whose password contains awkward punctuation

How this generator works

The string is built with its escaping and then parsed back, and every field must match what went in exactly. That is the only check that catches an escaping mistake, because an escaping mistake always produces a perfectly well-formed string. The QR code itself is then read back off its own modules, the way a scanner reads it.

Randomness and fairness

Nothing is random. The same network details always draw the same code.

For how randomness is produced across the whole site, see how Generate Random works.

Limitations and good to know

  • It puts your network password into a printed code. Anybody who can photograph the code can join the network.
  • Android and iOS both read this format, but a few older phones do not.
  • Enterprise networks that need a username as well as a password are a different format and are not covered.
  • The code is black and white with no logo, since a logo eats into the error correction.

Privacy and your data

The code is built entirely in your browser. Your network name and password are never transmitted or stored.