Developer

QR Code for WiFi: Share Your Network Without Typing a Password

HR
Hassaan Rasheed
· August 18, 2026 10 min read

Smartphone in portrait orientation with its camera pointing at a printed WiFi QR code on a white card against a dark wooden desk, the phone screen showing a banner notification reading Join HomeNetwork, with a small inset diagram in the upper right corner showing the WIFI text encoding format broken into labeled fields on a dark card

A guest arrives and asks for the WiFi password. You show them the back of the router. They squint at a 20-character string, misread a lowercase L as a 1, and type it wrong twice before asking you to just type it yourself. A WiFi QR code eliminates this entirely: they scan it, the phone shows a join notification, and they tap once to connect.

The QR code generator at ToolCenterHub creates WiFi QR codes entirely in the browser. The password you enter never leaves your device. This guide covers how WiFi QR codes work, the format specification behind them, how iPhone and Android handle scanning differently, why the QR breaks when your password changes, and where to display the code once it is generated.

How a WiFi QR Code Works

A QR code is a way to encode any text string in a 2D image pattern. Most people associate QR codes with URLs, but the format supports arbitrary text. When a phone camera scans a QR code, it reads whatever text is encoded inside.

WiFi QR codes work because iOS and Android both recognize a specific text format as network credentials:

WIFI:T:WPA;S:YourNetworkName;P:YourPassword;;

Each component has a specific meaning:

FieldExample ValueMeaning
T:WPAT:WPAWPA2 or WPA3 authentication (use for all modern routers)
T:WEPT:WEPOlder WEP authentication (avoid for new setups)
T:nopassT:nopassOpen network with no password required
S:S:HomeNetworkExact SSID as shown in router settings
P:P:MyPassword123Current network password
H:H:trueHidden network flag (optional)

The double semicolon ;; terminates the record. Special characters in the SSID or password, including semicolons, backslashes, colons, and quotation marks, must be escaped with a backslash. A QR generator handles this automatically.

When a phone camera reads this string, the operating system parses the fields and passes them to the WiFi connection manager, which attempts to join the network. No URL is loaded. No internet connection is required during the scan. The entire exchange is local to the device.

How to Create a WiFi QR Code

Open the QR code generator and select the WiFi option. Enter your network name exactly as it appears in your router's admin settings, including any spaces and exact capitalization. Enter the current password. Select WPA as the authentication type for any modern WPA2 or WPA3 router.

The generator creates the QR code image in your browser. Your password is encoded locally and never transmitted to any server or stored anywhere outside your device. Download the generated image and print or display it where guests will need to connect.

Test the code before printing. Scan it with your own phone to confirm the join notification appears and the connection succeeds. If it fails, double-check that the SSID and password match exactly what is in your router's admin panel, not what you remember typing when the router was first set up.

For home routers installed by an ISP technician, the default SSID and password are usually on a sticker on the router itself. Use the sticker values rather than any remembered values when generating the code.

iPhone vs Android: How Scanning Differs

Android and iPhone both support WiFi QR codes but with different behavior depending on the operating system version.

Android: The Camera app recognizes WiFi QR codes from Android 10 (released 2019) onward. When the camera detects the code, a pop-up notification appears immediately offering to join the network. For WPA3 networks specifically, Android 10 or later is required. Older Android versions may not have native WiFi QR support and require a third-party QR scanner app that passes the credentials to the WiFi manager.

iPhone: The Camera app supports WiFi QR codes from iOS 11 onward. A notification banner appears at the top of the screen. Tap it to connect. WPA3 support via QR requires iOS 14 or later. If you are generating a QR for a WPA3-only network, anyone running iOS 13 or earlier will need to enter the password manually.

WEP networks: Both platforms can scan WEP credentials from a QR code, but WEP is a deprecated authentication standard with known security weaknesses. If your router still uses WEP, switching to WPA2 is worth the configuration change. The QR approach works far more reliably with WPA2 than WEP on modern phones.

PlatformMinimum Version for WiFi QRWPA3 Support via QR
AndroidAndroid 10Android 10+
iPhoneiOS 11iOS 14+
Windows (Camera app)Not supported nativelyN/A
macOS (Camera app)Not supported nativelyN/A

Windows and macOS laptops cannot join a network from a QR scan through any native camera interface. A laptop user at a business or event will still need the password typed manually or a third-party QR reader application that can pass the credentials to the system's WiFi manager.

Technical diagram on a dark background showing the WiFi QR code text format broken into four color-coded segments, WIFI: in white, T:WPA in teal labeled Security Type, S:NetworkName in blue labeled Network Name, and P:Password in orange labeled Password, with arrows pointing from each segment to the corresponding part of a QR code image below, and a small smartphone icon at the bottom showing a join network notification screen

What Happens When You Change Your WiFi Password

A WiFi QR code encodes your password as a static text string at the moment of generation. The QR image contains the literal password characters. When you change your router's password, the string inside the QR no longer matches the network, and any phone that scans it will fail to connect immediately.

There is no dynamic WiFi QR standard that automatically updates. Creating a truly dynamic version would require a redirect server that stores your network credentials and serves updated credentials when the QR is scanned. This means your password would live on an external server, which removes the primary security advantage of browser-local generation.

The practical workflow for password changes: regenerate the QR code immediately after changing the router password and replace all displayed copies before guests try to use the old one. If you laminate your QR code displays, factor in reprinting time when planning a password rotation.

If your network uses a long, complex password, the QR method becomes more valuable precisely because manual entry is error-prone. Choosing a strong WiFi password that benefits from QR delivery rather than being simple enough to type is the right tradeoff. The guide to creating strong passwords covers what length and character mix makes a password genuinely resistant to guessing while still being manageable.

Where to Display a WiFi QR Code

The QR code is most useful where connection requests are frequent and typing friction is highest.

Home: A laminated card near the router is the most common placement. Lamination extends the print life significantly in higher-humidity rooms like kitchens. Include the network name alongside the QR so guests know which network the code connects to, since phones show the SSID in the join notification and a mismatch between the label and the notification causes confusion.

Rental property: Frame the QR code alongside check-in instructions. Include the typed SSID and password as a fallback for older phones that do not support QR-based WiFi connection. Update both the QR and the typed version when you change credentials between guest stays.

Business or office: Table tent cards in conference rooms reduce IT support requests for guest WiFi passwords. A framed QR at the reception desk handles visitor onboarding without involving staff. For cafe or restaurant use, the QR codes in print guide covers paper type, lamination, and minimum size requirements for public-facing placement.

Events: An on-screen display cycling through the QR code between presentation slides allows attendees to connect during setup. A printed handout with the QR eliminates the "can you spell that again" problem at registration tables.

Print Size and Scanning Reliability

WiFi QR codes encode more text than a typical URL QR code because the WIFI format string is longer than most web addresses. More encoded data requires a denser pattern, which requires a larger minimum print size for reliable scanning.

For a typical home network with a moderate-length SSID and password, the minimum reliable print size is approximately 3 to 4 centimeters square. At this size, modern phone cameras scan reliably in good indoor lighting. For placement at a distance, such as a wall mount across a lobby or a screen at the front of a conference room, scale up proportionally to the expected scanning distance.

Higher error correction matters for printed codes in high-traffic areas that may get scratched or partially obscured. A code generated with high error correction can still be read when up to 30% of the image is damaged. Test scan the code in the actual lighting conditions where it will be displayed, not just at a desk in ideal light.

Hidden Networks and Special Characters

Hidden WiFi networks: If your router is configured not to broadcast its SSID, add the hidden flag to the format: WIFI:T:WPA;S:NetworkName;P:Password;H:true;;. Android handles hidden-network QR codes reliably from Android 10 onward. iPhone behavior with hidden SSIDs via QR code is inconsistent and may require the user to manually confirm the network name in iOS Settings after scanning.

Special characters in SSID or password: Network names or passwords containing semicolons, backslashes, colons, or quotation marks must be escaped with a backslash in the raw format string. The QR generator handles this automatically. The issue only appears if you are manually constructing the WIFI string rather than using a generator.

Emoji in SSID: Network names containing emoji are technically valid but may cause compatibility issues with some older QR scanner apps. The generator encodes emoji correctly using UTF-8, but if scanning fails on a specific device with an emoji SSID, the most reliable fix is removing the emoji from the network name in router settings.

For other QR code use cases, the QR code business card guide covers contact information QR codes, and the QR codes in print guide covers resolution and size requirements for all professional printing contexts. All tools in this guide are available from the developer tools hub without an account.

Frequently Asked Questions

A WiFi QR code encodes a text string in a specific format that iOS and Android recognize as network credentials. The format is WIFI:T:WPA;S:NetworkName;P:Password;; where T is the authentication type, S is the SSID, and P is the password. When a phone camera reads this string, the OS parses it and offers to join the network automatically. No URL is involved. The QR code is a self-contained credential delivery mechanism that works without any internet connection during scanning.

A WiFi QR code encodes your password as plain text within the QR pattern. Anyone who scans it with a QR reader that shows raw content can read the encoded password. The safety question is about physical access: who can scan your code? For home use and guest networks, a QR code is no less secure than writing the password on a card. For business use, position the code where only intended guests can reach it. Generating the QR in a browser-based tool means the password is never transmitted to a server.

Yes. The iPhone Camera app supports WiFi QR codes from iOS 11 onward. When the camera detects a WiFi QR code, a notification appears at the top of the screen offering to join the network. Tap the notification to connect. For WPA3 networks specifically, iOS 14 or later is required for QR-based connection. The QR type must be set to WPA, not WEP, for modern routers. If the Camera app does not respond to the code, try increasing the print size or scanning in better lighting.

The QR code stops working immediately. WiFi QR codes encode the password as a static string at the moment of generation. When the password on your router changes, the encoded string in the QR no longer matches, and phones that scan it will fail to connect. You must generate a new QR code with the updated password and replace all printed or displayed copies. There is no dynamic WiFi QR standard that updates automatically, because that would require an external server storing your network credentials.

The format is WIFI:T:WPA;S:NetworkName;P:Password;; where T is the security type (WPA for WPA2 or WPA3, WEP for older networks, nopass for open networks), S is the exact SSID as it appears in your router settings, and P is the current network password. The double semicolon terminates the record. SSID and password values containing semicolons, backslashes, colons, or quotation marks must be escaped with a backslash. A QR generator handles this escaping automatically.

Yes. The WiFi QR format includes an optional hidden flag: WIFI:T:WPA;S:NetworkName;P:Password;H:true;; where H:true indicates the network does not broadcast its SSID. Android handles hidden-network QR codes reliably from Android 10 onward. iPhone behavior with hidden SSIDs via QR code is less consistent and may still require the user to manually confirm the network name in iOS Settings. For most home setups, switching to a broadcast SSID makes the QR method more reliable across all devices.

A WiFi QR code lasts as long as the credentials it encodes remain valid. If your SSID and password stay the same indefinitely, the QR code works indefinitely. The QR pattern itself does not expire or degrade digitally. Printed QR codes last as long as the physical print medium, though lamination significantly extends the life of a code in high-touch locations like restaurant tables or guest rooms. Generate a new QR code any time your router credentials change, and replace all displayed copies at the same time.

HR

Written by

Hassaan Rasheed

Builder of ToolCenterHub. Passionate about creating fast, privacy-first tools that anyone can use without friction, accounts, or paywalls. Writing about design, development, and the web.

Connect on LinkedIn