QR Code Free Forever QR Code Free Forever Create QR codes. 100% free. Forever. Make a QR code

Home · Guides

How to Create a WiFi QR Code

A WiFi QR code is not magic and not a login link. It is a short, strictly formatted string that tells the phone's operating system to add a network — and getting the punctuation wrong is the reason most of them fail.

The format, exactly

The string a WiFi QR code contains looks like this:

WIFI:T:WPA;S:CafeCentral;P:flatwhite2026;H:false;;

Field by field:

FieldMeaningValues
TSecurity typeWPA, WEP, nopass
SNetwork name (SSID)Exactly as broadcast, case sensitive
PPasswordOmit entirely for an open network
HHidden networktrue or omit

Three details trip people up. The prefix is WIFI: in capitals. Every field ends with a semicolon. And the whole string ends with two semicolons — one closing the last field, one closing the record. A string ending in a single semicolon is rejected by some scanners and accepted by others, which produces the worst kind of bug.

An open network with no password:

WIFI:T:nopass;S:LibraryGuest;;

The characters you must escape

Since semicolons and colons are structural, any of them inside your SSID or password have to be escaped with a backslash. The full set that needs escaping is:

\   ;   ,   :   "

So a password of flat;white:2026 is written:

WIFI:T:WPA;S:CafeCentral;P:flat\;white\:2026;H:false;;
This is the single most common cause of a WiFi code that "just does not work". Passwords generated by routers are full of punctuation, and an unescaped semicolon silently truncates the password at that point — so the phone tries to join with a wrong password and reports a generic failure.

Two further edge cases:

Our generator handles all of this for you; the reason to know it is that it lets you check a code someone else produced by decoding it and reading the string.

Security types, including WPA3

The T field only really distinguishes three cases. WPA covers WPA, WPA2 and, in practice, WPA3 as well — the phone negotiates the actual protocol with the access point, and the field is only telling it that a passphrase is required.

Hidden networks

If the network does not broadcast its SSID, H:true is mandatory. Without it, the phone scans for a network with that name, does not see one, and gives up — even though the credentials are perfect.

WIFI:T:WPA;S:BackOffice;P:correcthorse;H:true;;

What each phone does

iPhone. The native camera recognises the string and offers a "Join network" banner. Tapping it joins immediately; the network is saved. iOS has handled this since iOS 11, so any phone that receives updates will manage it.

Android. Handled by the camera or Google Lens on most modern devices, with a confirmation prompt. On older or heavily customised builds the native camera may not recognise the format, and the user needs a QR reader app. This is the main reason to print the network name and password in small type underneath.

Neither will join a network the phone cannot currently see, and neither will work for a captive portal — a code cannot fill in a hotel's web login page.

Practical advice for a guest network

You can make one on the WiFi tab of the generator. It runs in your browser, so the password is never sent anywhere — which for this particular payload is not a small detail.

Written by Manuel Llovet, who builds and maintains QR Code Free Forever. Published 2026-08-31, last checked 2026-09-08. Figures and measurements on this page were produced for this site; the method is described in each caption.

Make this code now

Free, no sign-up, and it never expires. Everything runs in your browser.

Open the generator

Keep reading