How to Make a WiFi QR Code (and How It Works)
By the CirculateQR team · Updated · 7 min read
Short answer
A WiFi QR code stores your network name, password and security type in a short text string, WIFI:T:WPA;S:<network>;P:<password>;;, which most phone cameras recognize. Scanning it makes the phone offer to join the network without typing anything. To make one, enter the exact network name and password in a WiFi QR generator, choose WPA for WPA2 and most WPA3 networks, and test the printed code on both an iPhone and an Android phone. WiFi codes are static, so a new password needs a new code.
On this page
- What is inside a WiFi QR code?
- Which characters in a network name or password need escaping?
- Which security type should you choose?
- How do you make a WiFi QR code step by step?
- What does a finished WiFi QR code look like?
- Is it safe to put your WiFi password in a QR code?
- Where should you put a WiFi QR code?
- Frequently asked questions
Key facts
- The format is WIFI:T:WPA;S:<network>;P:<password>;; with fields in any order and two semicolons at the end.
- T is WPA, WEP or nopass. WPA2 and WPA3 password networks normally use T:WPA; Android can also write T:SAE for WPA3.
- A backslash, semicolon, comma, colon or double quote inside the name or password should be escaped with a backslash.
- The sample “Cafe Guest” / “espresso-2026” code is 41 characters and fits a version 3 code, 29 × 29 modules, at error correction level M.
- WiFi codes are always static: they can’t be tracked or edited, and a new password means a new code.
- Anyone who can photograph the code has the password, so put guests on a separate guest network.
What is inside a WiFi QR code?
A WiFi QR code is an ordinary QR code that holds one line of text in this shape:
WIFI:T:WPA;S:<network>;P:<password>;H:true;;| Field | Meaning | Values |
|---|---|---|
| T | Security type | WPA, WEP or nopass for an open network |
| S | Network name (SSID) | Required. Exactly as broadcast; capitals and spaces count. |
| P | Password | Left out when T is nopass |
| H | Hidden network | Optional. true if the network doesn’t broadcast its name. |
Fields can appear in any order. Each ends with a semicolon, and the whole string ends with one more, which is why it finishes with ;;. These rules come from the ZXing project’s Barcode Contents wiki (checked October 2026). ZXing, the open-source barcode library, proposed the format there, modeling it on the MECARD contact format.
It has since been formalized. The IANA registration of the wifi URI scheme (provisional, registered August 2020) points to section 7 of the Wi-Fi Alliance’s WPA3 specification as the format’s formal definition.
When a phone’s camera recognizes the WIFI: prefix, it offers to join the network. No web page or server is involved, which makes a WiFi code static by nature.
Which characters in a network name or password need escaping?
The format uses semicolons to separate fields and a colon after each field letter, so those characters inside a name or password would confuse the reader. The ZXing wiki says to put a backslash in front of each of these:
| Character | Write it as |
|---|---|
\ backslash | \\ |
; semicolon | \; |
, comma | \, |
: colon | \: |
" double quote | \" |
For example, the password pa;ss:word goes into the code as:
WIFI:T:WPA;S:Cafe Guest;P:pa\;ss\:word;;The same wiki adds one oddity: a network name made only of hexadecimal characters, such as CAFE or 1234, could be read as hex, and it suggests wrapping such a name in double quotes.
Which security type should you choose?
Match the setting on your router:
- WPA2 or WPA3 with a password (“Personal”): use
T:WPA. Router menus may say WPA2-PSK, WPA2/WPA3 or WPA3-Personal; the code normally says WPA for all of them. Some phones writeT:SAEfor WPA3-only networks instead: Android’s own share-network feature defines that value in its open-source Settings code (checked October 2026). Either way, test with both an iPhone and an Android phone. - WEP: use
T:WEP. WEP is an old, broken standard; if your router still offers it, switch to WPA2 or WPA3. - Open network: use
T:nopassand leave out the password. - Enterprise (802.1X/EAP), where each person signs in with their own username: the ZXing wiki describes extra fields for this, but phone support varies, so test carefully. Printing personal credentials is rarely wise anyway; a guest network is usually the better answer.
How do you make a WiFi QR code step by step?
- Set up a guest network. Give it its own password, separate from the network your payment terminal, cameras and computers use.
- Write down the exact name and password. Both are case-sensitive, and spaces count.
- Enter them in a WiFi QR generator. Pick the security type and tick “hidden” only if the network doesn’t broadcast its name.
- Download a print format. SVG stays sharp at any size; PNG is fine for screens and small prints.
- Test before printing. Forget the network on an iPhone and an Android phone, then scan from where guests will stand.
- Print and place it. Add the network name and password in text beside the code.
For step 3 you can use the free WiFi QR code generator. In CirculateQR, WiFi codes are always static and included on the free plan, which has unlimited static codes, and they never expire. Exports come as PNG, SVG or PDF. Because the code never touches a server, there are no scan counts. Details are on the pricing page.
What does a finished WiFi QR code look like?
A café runs a WPA2 guest network called “Cafe Guest” with the password “espresso-2026”. The code holds:
WIFI:T:WPA;S:Cafe Guest;P:espresso-2026;;That is 41 characters, which fits a version 3 code, 29 × 29 modules, at error correction level M. Adding H:true for a hidden network makes it 48 characters and version 4, 33 × 33, so only add it when the network really is hidden.
For size, a common rule of thumb is a code width of one tenth of the scanning distance. A card on the counter, scanned from about 30 cm, needs a code about 3 cm (1.2 in) wide. Each module is then about 1 mm, and with the 4-module quiet zone the code needs a clear square of about 3.8 cm. A wall sign read from 1.5 m needs a code about 15 cm wide. CirculateQR draws plain codes at level H, so the same text becomes version 5, 37 × 37; at 3 cm each module is about 0.8 mm, still comfortable. The size guide and error correction guide explain the trade-off.
Is it safe to put your WiFi password in a QR code?
It is exactly as safe as writing the password on a sign, because that is what it is. A QR reader app can show the full contents, password included, and anyone who photographs the code can join later from the parking lot.
- Use a guest network. It keeps visitors off the network your payment terminal, cameras and office computers use.
- Change the guest password only as often as you can reprint. Every change means new codes, so use cheap cards or stickers rather than a window decal.
- Keep codes out of view from the street if you don’t want passers-by on your connection.
- Check your codes now and then. A sticker with a different WiFi code could send guests to someone else’s hotspot. See QR code security.
Where should you put a WiFi QR code?
Put it where people sit down and reach for their phone:
- Café and restaurant tables, on a table tent or the menu card
- The counter or reception desk, at eye level, away from glare
- Hotel rooms and vacation rentals, on the desk card or in the welcome book
- Waiting rooms, meeting rooms and coworking desks
Always print the network name and password as text next to the code. Laptops can’t easily scan it, and a guest whose phone won’t read it can still type. A short label such as “Scan to join our WiFi” tells people what the code does before they point a camera at it.
Frequently asked questions
Do WiFi QR codes work on iPhone and Android?
Yes. The camera apps on current iPhones and most current Android phones recognize the WIFI: format and offer to join the network. Older phones may need a QR reader app. Test your printed code on at least one iPhone and one Android phone, because WPA3 networks and special characters are not handled identically everywhere.
Can I track how many people scan my WiFi QR code?
No. A WiFi code is static: the phone reads the network details straight from the pattern and never contacts a server, so nobody can count scans. Your router’s admin page may show how many devices joined the guest network, which is a rough substitute.
What happens to my WiFi QR code if I change the password?
It stops working, because the old password is part of the printed pattern. Make a new code with the new password and replace every printed copy. That is the main reason to use a separate guest network: you can change its password on your own schedule without touching the network your business runs on.
Does a WiFi QR code expire?
The code itself never expires; it works for as long as the network name and password inside it are valid. In CirculateQR, WiFi codes are always static, so they are not affected by the 14-day limit that applies to dynamic codes on the free plan.
Can a WiFi QR code connect to a hidden network?
Yes. Add H:true so the phone knows to look for a network that doesn’t broadcast its name; most generators have a “hidden network” option that does this. It adds a few characters and can make the code slightly denser, so leave it out for networks that are visible.
Last updated . Written by the CirculateQR team. Spotted something wrong or out of date? Email support@circulateqr.com.
Make a WiFi code for your guests
WiFi codes are static, free and never expire. Create one, download it as SVG or PDF, and test it before you print.
Related guides
- Dynamic vs Static QR Codes: What Is the Difference?What is a dynamic QR code, and how is it different from a static one?
- QR Code Size Guide for Print: Minimum Size and DistanceWhat size should a printed QR code be?
- QR Code Security: Quishing and How to Scan SafelyAre QR codes safe, and what is QR code phishing?
- How to Make a vCard QR Code for Business CardsHow do I put my contact details in a QR code?