Updated:

Scan a Wi-Fi QR Code and Get the Password

A Wi-Fi QR code carries the network name, the security type, and the password as separate pieces of data. Your iPhone can join the network from it — and, when you need the password itself, show you the text.

Short answer

Point the camera at the code and iOS offers to join the network. If you need the password as text — to type into a laptop, a TV, or a console — scan the code in a QR scanner instead, which shows the network name, security type, and password as separate fields you can copy one at a time.

Download on the App Store

What is inside a Wi-Fi QR code

It looks like any other QR code, but the text encoded in it follows a small standard format. Decoded, it reads roughly like this: WIFI: S:NetworkName; T:WPA; P:thepassword; H:false;

Four pieces, and each one matters:

Network name (SSID)

Which network to join. Case-sensitive, and often not the same as the café's name on the door.

Security type

WPA, WEP, or none. This tells the phone how to connect; get it wrong manually and the connection fails even with the right password.

Password

The actual key, in plain text inside the code. Anyone who scans the code has it — which is worth remembering before you print one for a guest network.

Hidden flag

Whether the network broadcasts its name. Hidden networks do not appear in the Wi-Fi list, so this tells the device to look for it specifically.

Join the network by scanning the code

The quickest route needs no app at all. Open the Camera, point it at the code, and tap the notification that appears — iOS reads the credentials and joins the network. On a router sticker or a printed guest card, this takes a couple of seconds.

Scanning the same code in ScanLens gives you the same connection with the details visible first: choose the QR mode, point at the code, and the result screen shows the network, the security type, and the password before you tap to join. Handy when you want to know what you are connecting to, or when the code is one of several on a page.

See and copy the Wi-Fi password itself

Joining is only half of what people want from these codes. The other half is the password as text — because the laptop, the smart TV, the games console, or the guest standing next to you all need it typed in, and none of them can scan the sticker on the back of the router.

  1. Open ScanLens and switch the scanner to QR Code.
  2. Point at the code. It reads immediately; there is nothing to tap.
  3. Read the decoded fields. Network, Security, Password, and whether the network is hidden, each on its own line.
  4. Copy just the field you need. The password copies on its own, without the surrounding code text — so pasting it into a login box gives you the password and nothing else.

That last detail is the one that matters in practice. Copying a whole QR payload gives you WIFI: S:Name; T:WPA; P:secret;, which is useless in a password box. Copying the field gives you secret.

Getting the network onto a laptop or TV

Once the password is on your clipboard, the rest is straightforward, and there are a few routes depending on the device:

A laptop in the same room

Read the password off the phone and type it in, or paste it into a note that syncs across your devices and copy it there.

An Apple device signed into your account

Bring it near your iPhone while the Wi-Fi list is open — iOS offers to share the network without anyone reading a password aloud.

A TV or console

These are the ones where a visible password saves real time: no camera, an on-screen keyboard, and one character at a time.

A guest

Show them the code rather than the password. Their phone joins the network without the password ever being spoken or written down.

When the code does not work

Wi-Fi QR codes fail in a small number of predictable ways:

The code is not a Wi-Fi code. Plenty of stickers on routers encode a support URL or a serial number rather than credentials. If the scanner shows a link instead of a network name, that is what happened — the credentials are usually printed as text beside it.

The password was changed. A printed code is a snapshot. Change the network password and every card and sticker showing the old one is silently wrong.

The network is on a newer security standard. Some codes generated for WPA3 networks do not carry across cleanly to every device. If joining fails but the password looks right, connect manually from Wi-Fi settings and type it.

The sticker is damaged or curved. A code wrapped around a router's edge, scratched, or behind glare may not resolve. Flatten the surface, add light, and move the phone slightly further away rather than closer.

Sharing your own Wi-Fi safely

Generating a QR code for your network is genuinely convenient for guests, and worth doing with a couple of things in mind. The password is in the code in plain text — a photograph of the card on your kitchen wall is your Wi-Fi password, forever, for whoever took it.

If your router supports a separate guest network, put the code on that one instead. Guests get internet, your printer and your network drive stay out of reach, and changing the guest password later does not disconnect every device you own.

The same caution applies in reverse. A Wi-Fi code taped up in a public place can be replaced by anyone with a printer, pointing at a network they control. If a café's code sits somewhere anyone could have swapped it, ask a member of staff rather than assuming.

Frequently asked questions

How do I get the Wi-Fi password from a QR code?

Scan the code with a QR scanner rather than the Camera app. The Camera joins the network but never shows you the password; a scanner decodes the code into fields — network name, security type, password — and lets you copy the password on its own.

Can an iPhone scan a Wi-Fi QR code?

Yes. Point the Camera at the code and iOS offers to join the network directly, with no app needed. Use a QR scanner when you also want to see the credentials rather than just connect.

How do I connect my laptop using a Wi-Fi QR code?

Most laptops cannot scan the code, so read the password off the code with your phone and type it in. Copying the password as a separate field avoids pasting the whole code payload into the password box.

Why does copying the QR code give me WIFI:S:...?

That is the raw text encoded in the code, which includes the network name, security type, and password as one string. Copying the individual password field gives you just the password, ready to paste.

Is it safe to scan a Wi-Fi QR code in a public place?

The code itself cannot harm your phone — it only contains credentials. The risk is a code that has been swapped for one pointing at a network somebody else controls. In a café or hotel, a code you were handed is safer than one taped to a wall.

Can I make a QR code for my own Wi-Fi?

Yes, and it is a good way to onboard guests without reading a password aloud. Use your router's guest network if it has one: the password sits in the code in plain text, so anyone who photographs the card keeps it.

Scan the sticker, copy the password, get on with it

ScanLens is a free app for iPhone. Scan a Wi-Fi code to see the network, the security type, and the password as separate fields you can copy one at a time.

Download on the App Store