WiFi QR code generator
Make a QR code that joins a WiFi network when scanned, with the network name and password escaped correctly.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/qr-wifi \
-H 'Content-Type: application/json' \
-d '{"input":{"ssid":"Cafe Guest","password":"latte;art"}}'
import json, urllib.request
body = {'input': {'ssid': 'Cafe Guest', 'password': 'latte;art'}}
request = urllib.request.Request("https://setget.net/v1/tools/qr-wifi", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/qr-wifi", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"ssid":"Cafe Guest","password":"latte;art"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "qr-wifi",
"input": {
"ssid": "Cafe Guest",
"password": "latte;art"
}
}
{
"input": {
"ssid": "Cafe Guest",
"password": "latte;art"
}
}
Endpoint: POST /v1/tools/qr-wifi. Over MCP: run_tool with slug: "qr-wifi".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
ssid |
string | yes | The network name, exactly as it appears (capitals matter). |
password |
string | no | The network password. Leave empty for an open network. |
security |
string | no | Network security. WPA covers WPA2 and WPA3. Use nopass for an open network. One of: WPA, WEP, nopass. Default: "WPA". |
hidden |
boolean | no | The network does not broadcast its name. Default: false. |
error_correction |
string | no | How much damage the code survives: L about 7%, M 15%, Q 25%, H 30%. Higher levels hold less. One of: L, M, Q, H. Default: "M". |
module_size |
integer | no | Width of one small square (module) in pixels. Default: 8. From 1 to 40. |
margin |
integer | no | Blank quiet zone around the code, in modules. Scanners expect at least 4. Default: 4. From 0 to 20. |
foreground |
string | no | Colour of the dark squares: hex such as #000000, or a basic colour name. Default: "#000000". |
background |
string | no | Colour behind the code: hex, a basic colour name, or "transparent". Default: "#ffffff". |
Examples
A WPA network
Input
{
"ssid": "Cafe Guest",
"password": "latte;art"
}Result
Different every time. Press the example button above to see one.
An open, hidden network
Input
{
"ssid": "Open Net",
"security": "nopass",
"hidden": true
}Result
Different every time. Press the example button above to see one.
Questions
- Is my password sent anywhere else?
- It is only used to draw the code. Anyone who can see the code can read the password, so display it only where guests should have it.
- Which phones can scan it?
- The cameras of current iPhone and Android phones read this format and offer to join the network.
Related tools
- QR code generatorMake a scannable QR code as SVG from any text or link, with a choice of size, colours and error correction.
qr-generate - Contact (vCard) QR code generatorMake a QR code that adds a contact to a phone when scanned: name, phone, email, organisation and website.
qr-vcard - .gitignore generatorBuild a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
gitignore-generate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table - Background pattern generatorMake seamless SVG background patterns (dots, grid, stripes, checker or waves) with your colours and scale.
pattern-image