How to create a Wi-Fi QR code guests can scan to connect

Make a QR code that joins your Wi-Fi in one scan. The exact format phones read, how to handle special characters, and fixes when it won't connect.

Reading a Wi-Fi password off a card and typing it on a phone is a small, daily frustration in cafés, offices, holiday rentals and living rooms. A Wi-Fi QR code removes it: guests point their camera at the code, tap the notification, and they’re online. This guide explains how these codes work, how to make one that connects first time, and what to check when a phone refuses to join.

What’s inside a Wi-Fi QR code

A Wi-Fi QR code is not a link to a website. It contains a short piece of text in a format that phone operating systems recognise as network settings. It looks like this:

WIFI:T:WPA;S:Corner Café Guest;P:espresso2026;;

Each part is a field, separated by semicolons:

  • T: is the security type: WPA (which also covers WPA2 and WPA3 networks on current phones), WEP for very old routers, or nopass for an open network.
  • S: is the network name (SSID), exactly as it appears in the Wi-Fi list, including capital letters and spaces.
  • P: is the password. It is left out for open networks.
  • H:true is added only when the network is hidden and doesn’t broadcast its name.
  • The code ends with two semicolons.

The camera apps on iPhone (iOS 11 and later) and on most Android phones (Android 10 and later, and earlier versions with Google Lens) read this format natively. No special app is needed.

Step by step: making the code

  1. Open the QR code generator and choose the Wi-Fi content type.
  2. Type the network name exactly as your devices show it. “CornerCafe” and “Cornercafe” are different networks to a phone.
  3. Enter the password and choose the security type. If your router settings mention WPA2 or WPA3, choose the “WPA / WPA2 / WPA3” option, or “None” for an open network.
  4. Switch on Hidden network only if the network really is hidden. Switching it on for a visible network can slow down or break joining on some phones.
  5. Style the code if you like. A frame with a call to action such as “Scan to join Wi-Fi” makes it obvious what the code is for.
  6. Download it as a PNG for a screen or SVG for printing, and test it with at least two different phones before you print copies.

Special characters: the most common reason codes fail

Because semicolons, colons and commas have special meanings in the format, they must be “escaped” with a backslash when they appear in a network name or password. A password of pass;word has to be written pass\;word inside the code, or the phone reads the password as just pass. The same applies to backslashes and double quotes.

Many quick online generators skip this step, which is why codes made for networks with symbols in the password fail mysteriously. The CraftIdea generator escapes these characters automatically. You can confirm it by opening the Payload view under the preview, which shows the exact text that will be encoded.

When a phone won’t connect

If the code scans but the phone doesn’t join, work through these checks in order:

  1. Check the network name. Look for a trailing space, a different capital letter or a look-alike character such as a zero instead of a capital O. Copying the name from your router’s admin page is the safest option.
  2. Check the security type. Choosing “None” for a password-protected network, or WEP for a WPA network, makes the phone try the wrong method.
  3. Switch off “Hidden network” unless the network is truly hidden.
  4. Check the router’s limits. MAC address filtering, a full guest network, or a device limit will reject new phones whatever the QR code says.
  5. Mind the frequency band. Some older or budget devices can only use 2.4 GHz. If your router broadcasts a 5 GHz-only network, those devices will never see it.
  6. Enterprise networks won’t work. Office networks that ask for a username as well as a password (WPA2-Enterprise or 802.1X) can’t be joined through this kind of QR code.

If the code doesn’t scan at all, the problem is printing or contrast rather than the network. Make it bigger, use dark dots on a light background, and see our QR code print checklist.

Security: who can see the password?

Anyone who scans the code can join your network, and on most phones they can also view the password afterwards in their Wi-Fi settings. A Wi-Fi QR code is a convenient way to share the password, not a way to hide it. A few sensible precautions:

  • Use a guest network. Most home and business routers can create a separate guest network that gives internet access but keeps visitors away from your computers, printers and smart devices.
  • Use a strong password anyway. Because nobody types it, there’s no reason to keep it short. A long random password from our password generator costs your guests nothing.
  • Change it periodically, then print a new code. In a café or shop, a monthly or quarterly change is common practice.
  • Don’t post the code publicly online if the network is private. A photo of your living-room fridge on social media can include it.

Where to put your Wi-Fi code

Place the code where people naturally look when they arrive: on the table tent in a café, beside the reception desk, on the welcome folder in a holiday rental, or on the fridge at home. At eye level, a code 3–4 cm wide is plenty for scanning at arm’s length. On a wall poster read from a couple of metres away, it needs to be 20 cm or more. Add the network name in plain text underneath as a fallback for laptops, which usually can’t scan QR codes, and for anyone whose camera won’t cooperate.

A Wi-Fi QR code takes two minutes to make and saves every visitor the hassle of typing a password. Get the network name and security type right, let the generator handle the special characters, test it on a couple of phones, and it will keep working until you change the password.