โ† Back to Blog

How to Create a QR Code for Wi-Fi

2026-04-04 ยท 5 min read

How a Wi-Fi QR Code Works

A Wi-Fi QR code uses the WIFI: format string, encoding the network name (SSID), encryption type, and password together. When an Android or iOS device scans it, the operating system recognizes the format and shows a "Join this network" prompt. The user taps to confirm and connects instantly โ€” no password typing required.

The Standard Format

The content format for a Wi-Fi QR code looks like this:

WIFI:T:WPA;S:MyNetworkName;P:MySecretPassword;;

Field breakdown: T is the encryption type (WPA, WEP, or blank for open networks), S is the SSID (network name), P is the password, and the trailing ;; is a required terminator. If your SSID contains special characters, escape them with a backslash.

Step-by-Step Creation

  1. Open the YiteAI QR code generator and select the "Wi-Fi" content type
  2. Enter your Wi-Fi network name (SSID) exactly as it appears โ€” case matters
  3. Select encryption type: most modern routers use WPA/WPA2; older devices may use WEP; fully open networks select "None"
  4. Enter the Wi-Fi password
  5. Generate and download the PNG or SVG for printing or display

Device Compatibility

Android 9 and later natively supports Wi-Fi QR scanning through the system camera app. iOS 11 and later also supports this via the system camera. Note that iPhones require tapping the notification banner to confirm joining โ€” they do not connect automatically. Older devices may need a third-party QR scanner app.

Printing and Display Tips

Print the Wi-Fi QR code on a card at least 5 cm ร— 5 cm and add a text label like "Scan to join Wi-Fi." Adding a Wi-Fi icon makes the purpose immediately obvious. For restaurants and hotels, use waterproof lamination and place the card prominently on tables or at the front desk.

Security Considerations

Wi-Fi QR codes encode the password in plain text (Base64 or direct text, not truly encrypted). Anyone who can scan the code can extract the password. Therefore, do not use your main Wi-Fi network password in a publicly displayed QR code. Best practice: set up a separate guest Wi-Fi network, generate the QR code using the guest network credentials, and periodically rotate the guest password (then regenerate the code).

What to Do When You Change the Wi-Fi Password

Static Wi-Fi QR codes embed the password in the pattern. Once the password changes, the old code stops working and you must regenerate and reprint. This is another strong reason to use a guest network and manage password rotation carefully. If you need frequent password changes, consider a dynamic QR system โ€” though this typically requires a paid service.

Practical Use Case Examples

Try the free tool now

Use Free Tool โ†’