Hidden Network WiFi QR Code: How It Works
You hid your WiFi name so neighbours can't see it, and now nobody can join, including your guests, your new phone and, some days, your own laptop. A QR code with the hidden flag can fix the joining part. Whether hiding helps at all is another story.
H:true to the standard format, for example WIFI:T:WPA;S:AtticNet;P:Secret-Pass-88;H:true;;. This tells the phone to actively search for the network name instead of waiting to see it in the list. Android supports it well; iPhones are less consistent, so add the network manually under Settings > Wi-Fi > Other if the code fails. Hiding the SSID adds very little real security.In this guide
- What a hidden network really is
- How the QR code handles it
- How different devices behave
- Creating a hidden network QR code
- Does hiding your SSID improve security?
- When hiding might still make sense
- Common problems with hidden network codes
- A better alternative for most homes
- How to unhide your network safely
- Privacy tip for your phone
- FAQ
What a hidden network really is
Every WiFi router periodically sends out "beacons" announcing its network name (SSID). When you hide the SSID, the router sends beacons with the name left blank. Devices that already know the network have to call out for it by name ("is AtticNet here?") using probe requests, and the router answers.
Two consequences follow:
- The network doesn't appear by name in casual WiFi lists on phones and laptops.
- The name still travels over the air whenever a known device connects, and simple, free WiFi analysis tools can reveal it within minutes.
How the QR code handles it
The WiFi QR format includes an optional hidden field:
WIFI:T:WPA;S:AtticNet;P:Secret-Pass-88;H:true;;
When a scanner sees H:true, it saves the network as hidden and sends direct probe requests for that exact name. Without that flag, some phones only look for networks they can see in the beacon list, and a hidden network will simply never show up, so the phone gives up or reports "network not found".
Full details of every field are in WiFi QR Code Format Explained.
How different devices behave
- Android 10 and later: handles
H:truewell when scanning from WiFi settings or the camera. Android also lets you add a hidden network manually: Settings > Network & internet > Internet > Add network, type the name, open Advanced options and set Hidden network to Yes. - Samsung: same idea; when adding manually, tap View more and enable Hidden network.
- iPhone: the Camera app recognises WiFi codes, but support for hidden networks from a QR code has historically been less reliable. If it fails, go to Settings > Wi-Fi > Other..., type the exact name, choose the security (usually WPA2/WPA3) and enter the password.
- Windows: Settings > Network & internet > Wi-Fi > Manage known networks > Add network, type the name and tick Connect even if this network is not broadcasting.
- macOS: WiFi menu > Other Network... (or Join Other Network), then enter the details.
Creating a hidden network QR code
- Note the exact SSID. With hidden networks there's no list to copy from, so check the router settings. Capitals and spaces matter.
- Note the security type and password.
- In your generator, enter the details and tick Hidden (some call it "Hidden SSID" or "Network is hidden").
- Generate the code and test it on Android and iPhone, each with the network forgotten first.
On Android, Wifi QR Connect creates WiFi QR codes from an SSID, security type and password, and scans existing codes so you can check what they contain. It also offers hotspot QR sharing, a download/upload speed test and current connection info, with scan history stored locally on your device. If your generator has no hidden option, you can create a text QR code containing the full string with H:true and it will work the same way.
Does hiding your SSID improve security?
Mostly no, and security professionals generally don't recommend it. Here's why:
- The name is not secret. It's sent in clear text whenever devices connect, so anyone with a basic WiFi scanner can learn it.
- Your devices broadcast it everywhere. Phones and laptops set to auto-join a hidden network may send probe requests with its name in cafés, airports and offices, which can reveal the network name and sometimes help attackers set up a fake "evil twin" network with the same name.
- Connection problems increase. Smart TVs, printers and older devices are often unreliable on hidden networks.
- Real protection comes from elsewhere: WPA2/WPA3 encryption, a strong password, updated firmware and a guest network.
Apple's own WiFi recommendations for routers advise against hidden networks for privacy reasons, and iPhones may show a privacy warning for them.
When hiding might still make sense
There are a few practical reasons people keep a network hidden:
- A workshop, studio or lab network that only a couple of fixed devices use.
- Reducing clutter in a crowded apartment building's WiFi list.
- A secondary network for specific equipment you don't want people casually trying to join.
In these cases, treat hiding as tidiness, not security, and keep strong encryption.
Common problems with hidden network codes
- Code scans but never connects: the
H:trueflag may be missing. Regenerate with the hidden option. - Typo in the SSID: with no visible network to compare against, a single capital letter difference breaks it.
- iPhone fails: add the network via Settings > Wi-Fi > Other.
- Smart device can't stay connected: unhide the SSID or move the device to a visible WPA2 network.
- Band issues: some routers hide only one band. Check both 2.4 GHz and 5 GHz settings.
More fixes in WiFi QR Code Not Working? 9 Fixes That Work.
A better alternative for most homes
If your goal is to keep neighbours and guests away from your devices, these steps work much better than hiding:
- Use WPA2/WPA3 mixed mode or WPA3; see WPA2 vs WPA3.
- Use a long password (12+ characters).
- Create a guest network for visitors: How to Set Up a Guest WiFi Network.
- Turn off WPS.
- Change the router admin password and keep firmware updated.
- Choose a neutral network name that doesn't reveal your name, flat number or router model.
Then share the guest network with a normal visible-network QR code, which works reliably on every phone.
How to unhide your network safely
If you decide hiding isn't worth the trouble, unhiding takes a minute. Open your router's app or admin page, go to the wireless settings for each band, and turn on Broadcast SSID (or turn off Hide SSID). Keep the same name and password. Your devices will continue to connect, and you can switch your QR code to a normal one without the hidden flag. Leaving H:true in an old code usually doesn't stop it working on a visible network, but a fresh, clean code avoids surprises on older phones.
Privacy tip for your phone
If you've joined hidden networks in the past, remove the ones you no longer use. On Android, go to Saved networks and tap Forget. On iPhone, tap the (i) next to a known network and choose Forget This Network, or manage known networks on iOS 16 and later from the Edit button in Wi-Fi settings. This reduces how often your phone calls out for those names in public.
FAQ
What does H:true mean in a WiFi QR code?
It tells the scanning device that the network is hidden, so it should search for the network name directly instead of waiting for it to appear in the WiFi list.
Can an iPhone join a hidden network from a QR code?
Sometimes, but support is less consistent than on Android. If the code doesn't work, add the network manually under Settings > Wi-Fi > Other with the exact name and password.
Is a hidden WiFi network more secure?
Not really. The network name can still be detected with simple tools. Strong WPA2 or WPA3 encryption and a long password provide the actual protection.
Why won't my devices stay connected to my hidden network?
Some devices handle hidden SSIDs poorly. Making the network visible usually fixes it, without meaningfully reducing security.
Do I need the exact network name for a hidden network QR code?
Yes. Since the phone searches for that exact name, any difference in spelling, capitals or spaces prevents the connection.