QR code to connect to a WiFi Follow

Avatar
Laura Vela

BarTender Content Team


Question

How can I create a QR code to connect to a WiFi?

Answer

Although the ability to correctly interpret the encoded information depends on the device / application reading the code, in order to be able to trigger actions on the scanner device (like connecting to a WiFi, opening a URL or saving a contact information), the text encoded into the QR needs to follow some standards.

For the WiFi connection in this case, the data in the QR should follow the following schemas:

ssid is 'abc'

password is '1234'

 

For WEP encryption, the string of data should be:

WIFI:S:abc;T:WEP;P:1234;;

mceclip0.png

 

For WPA/WPA2:

WIFI:S:abc;T:WPA;P:1234;;

mceclip1.png

 

Without encryption:

WIFI:S:abc;T:nopass;P:1234;;

mceclip2.png

 

Additionally, in these cases it might be interesting to hide the human readable part of the code, this can be done via the Human Readable > Visibility option within the barcode properties:

mceclip3.png

More Information

Further examples on how to format the content within a QR code for different purposes can be found here: https://github.com/zxing/zxing/wiki/Barcode-Contents

 

Do you have feedback or questions on this article? We encourage you to post them on our Community Forums