WiFi QR code generator

Generate a QR code that connects guests to your WiFi automatically when scanned, no password typing.

Your password stays on this device. The code is drawn in your browser and nothing is sent to us or anyone else.

Tick this only if your router does not show the network name to nearby devices.

By QRotto · Updated · 6 min read

What a WiFi QR code actually does

A WiFi QR code stores three pieces of information in a single scannable image: your network name (SSID), your password, and the security type your router uses. When a guest points their phone camera at it, the phone reads those three values and offers to join the network, no typing, no spelling out a password with capital letters and symbols, no handing over your phone.

This matters more than it sounds. Modern WiFi passwords are long and case sensitive by design. Reading one aloud to a guest, or writing it on a sticky note, is where most of the friction (and most of the failed attempts) come from. The QR code removes that step entirely.

The WiFi QR code generator filled in with a guest network name and password, showing the generated QR code and download button.
The generator in use. We decoded this code back and it returned exactly the network name and password that were entered.

How to create your WiFi QR code

  1. Enter your network name exactly as it appears. The SSID is case sensitive. “HomeWiFi” and “homewifi” are two different networks as far as your phone is concerned.
  2. Type the password carefully. Watch for the characters people commonly confuse: capital I, lowercase l, and the digit 1; capital O and zero.
  3. Pick the right security type. Almost every router made in the last decade uses WPA/WPA2, that is the correct choice unless you know otherwise. Pick “None” only for a genuinely open network with no password.
  4. Generate and test before you print. Scan it with a phone that is not already connected to the network. A phone that is already on the WiFi will appear to work even if the code is wrong.

The one test that matters: turn WiFi off on a second phone, forget the network, then scan. If it joins, your code is correct. Testing on an already connected device tells you nothing.

Which security type should you choose?

Security typeWhen to use itHow common
WPA / WPA2 / WPA3Standard home and business routers with a passwordAlmost all networks
WEPVery old routers only, WEP is insecure and long deprecatedRare
None (open)Public networks with no password at allCafés, some lobbies

If your router settings mention WPA3, still choose WPA here, the QR format treats WPA, WPA2 and WPA3 the same way, and phones handle the handshake themselves.

Who uses WiFi QR codes, and how

Airbnb and short term rental hosts

This is the single most common use. Guests arrive tired, often late, and the first thing they want is internet. A framed WiFi QR code on the kitchen counter or inside the welcome book removes a support message you would otherwise get at 11pm. Many hosts also add the code to the digital guidebook they send before check in, so guests can connect the moment they walk in.

If you host multiple properties, generate a separate code for each one and label the printed card with the property name, mixing them up is a surprisingly easy mistake.

Cafés, restaurants and bars

A small card on each table, or a sticker near the till, stops staff from repeating the password fifty times a shift. Keep the printed code at least 3cm across if it sits on a table, since customers will scan it from a seated distance with the phone at an angle.

Offices and coworking spaces

Guest networks in offices are usually separate from the internal network, and visitors need them for exactly one meeting. A code in the reception area or the meeting room saves the receptionist from being the password desk.

Home use

Even at home, a small printed code inside a kitchen cupboard means visiting family never has to ask. It also means you can use a genuinely strong password instead of a short one chosen because it is easy to dictate.

Common problems and how to fix them

The code scans but the phone will not join

The usual cause is a password typo or the wrong security type. Regenerate the code, checking each character. Also confirm the network is on 2.4GHz or 5GHz in a band the phone supports, some older devices cannot see 5GHz-only networks.

The camera does not recognise the code at all

Check the print. Codes printed too small, in light grey, or on a glossy surface that reflects light are the usual culprits. Keep a clear white margin (the “quiet zone”) around the code, roughly the width of four modules, and never print the code smaller than about 2cm per side.

It works on Android but not iPhone (or the reverse)

Both platforms read the same format natively, so a code that works on one and not the other almost always points to a camera or scanning permission setting rather than the code itself. On iPhone, check Settings → Camera → Scan QR Codes is enabled.

I changed my WiFi password and the code stopped working

That is expected. The password is baked into the image itself, so a new password means a new code. Generate a replacement and swap the printed card. This is also why you should not laminate a code you expect to change.

Is it safe to share your WiFi this way?

A WiFi QR code contains your password in plain text, anyone who can photograph the code can extract the password. That is fine for a code inside your home or in a private guest room, but think twice before putting one in a street facing window.

For businesses, the right answer is a separate guest network. Most modern routers can broadcast a guest SSID that has internet access but cannot see the devices on your main network. Put the QR code on the guest network only, and your main network stays private regardless of who scans what.

On our side, nothing you type here is transmitted anywhere. The code is built in your browser using JavaScript, so your password never reaches a server, see our privacy policy for the specifics.

Printing tips that actually change the scan rate

What is inside a WiFi QR code

What is actually inside

A WiFi QR code holds one line of plain text in a small agreed format. That is the entire mechanism. Here is a real one, and what a scanner reads back from it:

A WiFi QR code beside the text it contains. The code is 29 by 29 modules and needs 14.8 mm. The text reads WIFI colon T colon WPA semicolon, which is the security type, then S colon CafeGuest semicolon, which is the network name, then P colon sunflower2026 semicolon semicolon, which is the password in plain text.
The code on the left contains exactly the text on the right. The password is not encrypted, hashed or hidden. It is simply written down.

Three fields, in a fixed order:

FieldMeansTypical values
T:Security typeWPA, WEP, or nopass for an open network
S:Network name, the SSIDExactly as it appears in your WiFi list
P:PasswordIn the clear, as typed

One more field turns up sometimes, H:true, which tells the phone the network is hidden and will not appear in its list. We come back to that below.

That is the whole format. It is why every WiFi QR code generator produces the same code for the same network, and why a code made on one site scans identically to one made on another. There is nothing proprietary to get right.

Who can read your password

Anyone who can see the code.

Scan a WiFi QR code with a normal QR scanner rather than the camera's WiFi prompt, and the password appears as text on screen. Our own QR scanner will do it, and so will any other. No tools, no skill, no trick. The information was never protected; it was printed.

A photo is enough. Someone does not need to be near your network to read the password. A picture of the card taken across the room, or a photo of your printed sign posted in a review, carries the password with it. Treat a WiFi QR code exactly as you would treat the password written out in large letters, because that is what it is.

This is not a flaw in the format, and it is not something a better generator could fix. The phone has to learn the actual password in order to join the network, so the actual password has to be in the code.

What we measured: password length and code size

Because the password sits inside the code, a longer password makes a denser code that has to be printed larger. We measured this at error correction level M, with the network name CafeGuest, and the print size is the smallest usable width from the 0.4 mm per module floor plus the quiet zone. These are technical minimums for each grid. In print, never go below about 2 cm, the floor our sizing guide sets for any code.

PasswordWhole lineGridSmallest usable print
4 characters31 chars29 x 2914.8 mm
8 characters35 chars29 x 2914.8 mm
13 characters40 chars29 x 2914.8 mm
15 characters42 chars29 x 2914.8 mm
28 characters55 chars33 x 3316.4 mm
40 characters67 chars37 x 3718.0 mm
63 characters, the WPA maximum90 chars41 x 4119.6 mm

The useful part is the top four rows. Anything up to about 15 characters produces the same code. QR codes grow in fixed steps rather than character by character, so a 15 character password costs exactly as much printed space as a 4 character one.

There is no reason to shorten a guest password for the sake of the code. A strong one is free until you cross a step boundary, and even the longest password the standard allows only takes the code from 14.8 mm to 19.6 mm.

Error correction moves it more than the password does. The same 13 character password gives 29 x 29 at level L or M, 33 x 33 at Q, and 37 x 37 at H. Level M is the sensible default for a card or a sign. Level H is worth it if you are putting a logo in the middle, which our customiser handles.

The character that breaks it silently

Look at the format again and you will see that ; separates the fields. So what happens when the password itself contains a semicolon?

We tested it. A password of pa;ss written straight into the line produces WIFI:T:WPA;S:CafeGuest;P:pa;ss;;, and a phone reading that sees the field ending at the semicolon. It reads the password as pa.

Your passwordWritten straight inWritten correctly
pa;ssPhone reads paPhone reads pa;ss
pa\ssPhone reads passPhone reads pa\ss
My;Cafe,2026Phone reads MyPhone reads My;Cafe,2026

The fix is to put a backslash in front of those characters, which tells the reader they are part of the text rather than the structure. The characters that need it are ; , : \ and ".

What makes this worth a section of its own is how it fails. The code generates without complaint. It scans without complaint. The phone offers to join the network, and then the connection fails, because it is trying a password that is missing everything after the semicolon. Nothing anywhere tells you why. This is high on the list of reasons behind a WiFi QR code that will not connect.

We tested our own tool on this. Passwords containing ;, , and \, plus network names containing ;, plus an accented SSID. Six cases, generated on the live site, decoded back, and each field compared against what was typed. All six came back correct. We would rather check than assume, and we would rather you did not have to.

Frequently asked questions

Do I need an app to scan a WiFi QR code?

No. iOS and Android both read WiFi QR codes from the built in camera app. Open the camera, point it at the code, and tap the banner that appears.

Does the WiFi QR code expire?

No. The data lives inside the image, not on a server, so the code keeps working for as long as the network name and password stay the same.

Can I add a logo to the code?

Logos reduce the scannable area and increase failure rates, especially at small print sizes. For a functional code that guests must be able to scan first time, plain is better.

Can I use this for a hidden network?

Yes. Tick Hidden network and the code includes the H:true flag that tells a phone to look for a name it cannot see. Even so, joining a hidden network by QR is inconsistently supported across phones. If you rely on QR access, it is more reliable to leave the guest network visible.

Other QR codes you might need

If you are setting up a rental or a café, the WiFi code is usually not the only one worth printing. A URL QR code can point guests to your house manual, digital menu or review page. A vCard QR code shares your contact details in one scan. And a text QR code handles short instructions like bin day or checkout times. All of them are listed on our services page.

For background on the underlying standard, the QR code specification covers error correction levels and version sizing in detail.

QRotto

QRotto builds free browser based QR code generators and writes the guides that go with them. Every generator is verified by decoding the codes it produces and confirming the output matches the input exactly. See our editorial standards.