Developer Tools

How do I create a WiFi QR code for easy network sharing?

Learn how to generate WiFi QR codes that allow guests to instantly connect to your network without typing passwords or network names.

By Inventive HQ Team

Creating WiFi QR Codes for Seamless Network Access

To create a WiFi QR code, encode a single plain-text string in the format WIFI:S:<network-name>;T:WPA;P:<password>;; into any QR generator, then print or display it — modern iPhones (iOS 11+) and Android phones (10+) read it with the native camera and offer a one-tap "Join Network" prompt, no app or typing required. The S field carries your SSID, T the security type (WPA, WEP, or nopass), and P the password; the closing double semicolon ends the payload. That is the whole mechanism, and it is why the same code works across restaurants, hotels, and homes without any per-device configuration.

That is the summary an AI Overview will give you. What it can't give you is the part that actually decides whether your code works: the exact field syntax, how to escape a password that contains a semicolon or colon, why the code exposes your password in plain text, and how to build one against a live generator on this page. The rest of this guide covers those.

Want to make one right now? Use the embedded generator below, or open our free QR Code Generator to create a WiFi QR code instantly — enter your network name and password, and download it ready to print.

Loading interactive tool...

How a WiFi QR code turns three fields into a one-tap join

WiFi QR code step flow Three steps: enter the SSID, password and security type; generate the QR code from a WIFI colon string; scan it with a phone camera to join the network. 1 · Enter details S: MyNetwork P: hunter2pass T: WPA 2 · Generate WIFI:S:MyNetwork; T:WPA;P:hunter2pass;; 3 · Scan to join Connected ✓

The entire "magic" is that both major phone platforms recognize the WIFI: URI scheme and translate those three fields directly into a system join request. There is no server, no account, and no tracking in the code itself — it is a static string.

Understanding WiFi QR Code Format

The WiFi String Format

WiFi QR codes encode a single plain-text string in a specific format that both iOS and Android understand. A typical string looks like this:

WIFI:S:MyNetwork;T:WPA;P:MyPassword;;

Field order is not significant — WIFI:T:WPA;S:MyNetwork;P:MyPassword;; is equally valid — but every value is case-sensitive and must match your router exactly. Here is what each field means:

FieldMeaningAccepted valuesRequired?Notes
SSSID (network name)Any string, up to 32 charactersYesCase-sensitive; escape reserved characters
TSecurity typeWPA (covers WPA/WPA2/WPA3), WEP, nopassYesUse WPA for all modern networks; nopass for open networks
PPasswordAny string, up to 63 charactersYes (omit for nopass)Case-sensitive; stored in plain text
HHidden networktrue or falseNoAdd H:true; only for non-broadcast SSIDs

The payload always starts with WIFI: and ends with a double semicolon (;;) that signals the end of the data. The single semicolons between fields are delimiters — which is exactly why a semicolon inside your password has to be escaped (see below).

Special Character Handling

Certain characters require escaping with backslashes:

Characters needing escape:

  • ; (semicolon) → \;
  • : (colon) → \:
  • , (comma) → \,
  • " (quote) → \"
  • \ (backslash) → \\

Example with special characters:

WIFI:T:WPA;S:Coffee Shop;P:P@ss\:word;;

Advanced Options

Some generators support additional parameters:

Hidden SSID (non-broadcast networks):

WIFI:S:MyNetwork;T:WPA;P:MyPassword;H:true;;

WEP Network (legacy):

WIFI:S:MyNetwork;T:WEP;P:MyPassword;;

Methods for Creating WiFi QR Codes

Method 1: Online Generators

QR Code Generator (qr-code-generator.com):

  1. Visit the website
  2. Select "WiFi" from content types
  3. Enter network SSID
  4. Select authentication type (WPA, WEP, or open)
  5. Enter password
  6. Generate and download

WiFi QR Code Generator:

  1. Visit qifi.org
  2. Enter SSID and password
  3. Select encryption type
  4. Generate code
  5. Download or print

Advantages:

  • No installation required
  • Immediate results
  • Multiple download formats

Method 2: Mobile Apps

Android: Multiple QR code apps support WiFi code generation (search "WiFi QR" in Play Store)

iOS: Starting with iOS 11, the native Camera app can generate WiFi QR codes. From Settings > WiFi, long-press on your connected network to open the share menu, which includes "Share WiFi" that generates a QR code.

Advantages:

  • Share codes directly with guests
  • Immediate access without downloading files
  • Works directly from your device
Advertisement

Method 3: Programmatic Generation

Python with qrcode library:

import qrcode

wifi_string = "WIFI:T:WPA;S:MyNetwork;P:MyPassword;;"
qr = qrcode.QRCode(version=1, box_size=10, border=4)
qr.add_data(wifi_string)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("wifi_qr.png")

Node.js with qrcode library:

const QRCode = require('qrcode');

const wifiString = 'WIFI:T:WPA;S:MyNetwork;P:MyPassword;;';
QRCode.toFile('wifi_qr.png', wifiString, (err) => {
  if (err) throw err;
  console.log('WiFi QR code created');
});

Method 4: Desktop Tools

Tools like ZXing command-line decoder, qrtool, or custom scripts can generate WiFi QR codes from the command line.

Step-by-Step WiFi QR Code Creation Guide

Step 1: Gather Network Information

  • Network Name (SSID): Exactly as it appears in your network settings
  • Password: Your current WiFi password
  • Authentication Type: Usually WPA2 for modern networks

Step 2: Choose Generation Method

Select based on your needs:

  • One-time use: Online generator is fastest
  • Frequent need: Save as image from online generator or use mobile app
  • Multiple networks: Programmatic generation for bulk creation
  • Custom branding: Use online generator with color customization options

Step 3: Configure Settings

Network Settings:

  • Confirm SSID is spelled correctly (case-sensitive)
  • Verify password is current and accurate
  • Select correct authentication type

QR Code Settings:

  • Size: 5-8cm typical for physical locations (3-5cm minimum)
  • Error Correction: Level M is fine for indoor WiFi codes, Level Q for outdoor
  • Format: PNG for printing, SVG for scaling

Step 4: Generate and Test

  1. Generate the QR code
  2. Save it in appropriate format
  3. Test with your own device before sharing
  4. Test that it's scannable from typical distances

Step 5: Deploy and Share

For Physical Locations:

  • Print at appropriate size for location
  • Frame if needed
  • Position near entrance or prominently
  • Include text like "Scan for WiFi" to guide guests

For Digital Sharing:

  • Send via email or messaging
  • Display on website or social media
  • Include in digital invitations
  • Store in shared document folders

Best Practices for WiFi QR Codes

Security Considerations

Password Security:

  • Don't use overly simple passwords (the QR code contains the actual password)
  • Change passwords periodically
  • Consider separate guest WiFi with different password than primary network

QR Code Visibility:

  • Display the code where needed but not in locations compromising security
  • Be cautious about broadcasting codes on public WiFi lists
  • Remove codes from special events after the event ends

Network Security:

  • Use WPA2 or WPA3 encryption (not WEP)
  • Disable WPS (WiFi Protected Setup) on your router
  • Enable firewall on your router
  • Hide SSID if additional security is desired (though QR code must still specify it)

Deployment Best Practices

Physical Signage:

  • Print at minimum 5cm × 5cm for reliable scanning
  • Use white background with dark code for maximum contrast
  • Include explanatory text like "Guest WiFi - Scan here"
  • Ensure adequate lighting around code
  • Position at eye level for visibility

Digital Display:

  • Display at minimum 150-200 pixels for scanning from mobile devices
  • Include text link alternative for users without QR scanner
  • Test scanning from typical device viewing distances
  • Include brief instructions for unfamiliar users

Multiple Networks:

  • Create separate codes for:
    • Main network (higher security)
    • Guest network (easier access)
    • Business network (restricted access)
  • Label clearly which code is which

Common Issues and Solutions

Code Won't Scan:

  • Verify SSID and password are entered exactly (case-sensitive)
  • Check for special characters that need escaping
  • Regenerate with correct information
  • Ensure minimum code size (at least 2cm × 2cm)

Connection Fails After Scanning:

  • Verify password is current (changes to WiFi password invalidate old codes)
  • Check authentication type matches your router
  • Confirm network is actually accessible at code location
  • Test with another device to isolate the problem

Network Name Issues:

  • Some special characters in SSID cause scanning issues
  • If possible, use simple alphanumeric SSIDs
  • Avoid spaces or special characters in network names
  • Use hyphens or underscores instead of spaces

Device Compatibility:

  • Most modern iOS and Android devices support WiFi QR codes natively
  • Very old devices may need dedicated QR scanning app
  • Test with target user demographic

Integrating into Your Location

Restaurant/Café

Optimal Placement:

  • Table talent or card
  • Entry area signage
  • Menu (digital or printed)
  • Website and social media

Suggested Text:

  • "Scan for Free WiFi"
  • "Guest WiFi Network"
  • "Connect to [Network Name]"

Hotel/Accommodation

Optimal Placement:

  • Room check-in packet
  • Welcome card on bedside table
  • Entry hallway signage
  • Digital display in lobby

Suggested Text:

  • "WiFi Credentials"
  • "Free WiFi - Scan to Connect"
  • "Hotel Network: [Name]"

Home/Small Business

Optimal Placement:

  • Front door area
  • Guest welcome packet
  • Email to expected guests
  • Website or social media

Suggested Text:

  • "Guest WiFi"
  • "Scan to Connect"
  • Simply the network name

Events and Conferences

Optimal Placement:

  • Registration tables
  • Event apps or websites
  • Printed materials
  • Signage in common areas

Important Note: Generate new codes for different events or change password between events to maintain security.

Maintenance and Updates

When to Regenerate Codes:

  • After changing WiFi password (old codes won't work)
  • After changing network name/SSID
  • When updating security settings
  • Periodically for security review

Tracking Usage:

  • While QR codes don't inherently track scans, you can use branded URLs with tracking if desired
  • Some premium QR code services offer analytics

Archival:

  • Save high-quality versions of codes for reprinting
  • Document which codes are in use and where
  • Remove obsolete codes from public access

Conclusion

Creating WiFi QR codes is straightforward and provides significant user experience benefits by eliminating the friction of manual network credential entry. Using online generators for one-time needs or mobile apps for frequent sharing makes the process accessible to non-technical users. Proper placement, appropriate sizing, and clear signage ensure that guests understand and successfully use your WiFi QR codes. By following security best practices and maintaining updated codes as your network evolves, WiFi QR codes become an elegant solution for guest network access across homes, businesses, and public venues.

Frequently Asked Questions

What is the WiFi QR code format?

WiFi QR codes encode a single plain-text string in the form WIFI:S:<ssid>;T:WPA;P:<password>;;. The S field is the network name, T is the security type (WPA, WEP, or nopass), and P is the password. The double semicolon marks the end of the payload. Field order does not matter, but every field is case-sensitive and must match your router exactly.

Do WiFi QR codes work on both iPhone and Android?

Yes. WiFi QR code scanning is built into the native camera on iOS 11+ and on Android 10+ (and via Google Lens on older Android). No third-party app is required on modern phones — point the camera at the code and tap the join prompt that appears.

Does a WiFi QR code contain my actual password?

Yes. The password is stored as readable plain text inside the QR code, not encrypted or hashed. Anyone who can scan or photograph the code can read the password with a free decoder, so treat a printed WiFi QR code as equivalent to writing the password on the wall.

Is it safe to share my WiFi password with a QR code?

It is safe enough for guest and hospitality use if you follow two rules: point the code at a separate guest network rather than your primary/admin network, and rotate the password periodically. Because the code exposes the password in plain text, never post it publicly for a network that reaches sensitive devices.

How do I handle special characters in the SSID or password?

Escape the reserved characters with a backslash inside the S and P fields: backslash (\ becomes \), semicolon (; becomes ;), comma (, becomes ,), colon (: becomes :), and double quote (" becomes "). Most reputable generators do this automatically, but hand-built strings must escape them or the code will fail to parse.

Why won't my WiFi QR code scan or connect?

The most common causes are a mistyped or outdated password, the wrong security type (WPA vs WEP vs nopass), unescaped special characters, or a code printed too small (under about 2 cm). Changing your WiFi password invalidates every previously generated code, so regenerate after any credential change.

Can I make a QR code for a hidden network?

Yes. Add the H field set to true, for example WIFI:S:MyNetwork;T:WPA;P:MyPassword;H:true;;. This tells the device the SSID is not broadcast so it should probe for it directly. Omit H (or set it false) for normal visible networks.

What security type should I choose — WPA, WPA2, or WPA3?

Use T:WPA in the QR string for any WPA2 or WPA3 network — the WiFi QR standard uses the single token "WPA" to cover all Wi-Fi Protected Access variants. Only use WEP for genuinely legacy hardware, and nopass for open networks with no password.

QR codesWiFinetwork setupguest access