How to make a Wi-Fi QR code

A Wi-Fi QR code joins a phone to your network without anyone typing the password: point the camera, tap, connected. Cafés, offices, rental flats and guest rooms put one by the door so the password stops being asked for.

Updated · from 3 official sources · DRISH LABS

What the code contains

A QR code is text. For this kind, the text has to follow this exact pattern:

WIFI:T:<WPA|WEP|nopass>;S:<network name>;P:<password>;H:<true if hidden>;;

Filled in, it looks like this:

WIFI:T:WPA;S:Cafe Guest;P:beans\;and\,toast;;

What happens when someone scans it

On an iPhone (iOS 11 and later, per ZXing’s reference) the Camera shows a link at the bottom of the screen, and tapping it usually offers to join the network. On a Pixel the Camera shows a bubble to tap, and Google says a QR code can connect you to a Wi-Fi network; other Android cameras usually do the same, and the Quick Settings scanner works where the camera does not.

Make one free

  1. Open the QR Code Generator and choose Wi-Fi under “What the code holds”.
  2. Type the network name exactly as it appears in the Wi-Fi list — it is case-sensitive.
  3. Pick the security (WPA/WPA2/WPA3, WEP or Open) and type the password. Special characters are escaped for you.
  4. Tick “Hidden network” only if your router does not broadcast the name.
  5. Download PNG for screen or SVG for print, and test it with a phone that is not already on the network.

Open the free QR code generator — it runs in your browser and uploads nothing.

So it works when it is printed

  • Characters `\ ; , " :` inside the name or password must be escaped with a backslash, or the code stops at the first semicolon. The generator does this; a hand-typed string must too.
  • T is WPA for WPA and WPA2 networks. ZXing’s reference does not list WPA3, so test a WPA3-only network with a phone before printing.
  • Changing the password breaks every printed code. A separate guest network keeps that from costing you your main password.
  • Scan the finished code with two different phones before you print a batch — it is the only test that counts.
  • Keep dark modules on a light background with strong contrast. Light-on-dark and pale colours are where plenty of scanners give up.

Questions

Do Wi-Fi QR codes work on iPhone?
Yes, from iOS 11 onwards the Camera app reads them and offers to join the network. ZXing’s reference, which phone scanners follow, lists Android and iOS 11+ for this format.
Is the password hidden in a Wi-Fi QR code?
No. The password is stored as plain text in the code, and any QR reader app will show it. Treat the printed code like the password itself — a guest network is the safer thing to share.
Why does my Wi-Fi QR code not connect?
Usually a mismatch: the network name differs in case or spacing, the security type is wrong, or a special character in the password was not escaped. Check each against the router, then test again.
Does the code still work if I change the password?
No. The password is inside the code, so a new password needs a new code.

Sources

Requirements change without notice. Check the official source before you rely on a figure here.

QR Craft iconThe faster way

QR Craft

A QR code generator for Mac that adds your logo and checks it scans.

Not today? Get an email when QR Craft gets better
QR Craft on macOS