How to find a saved Wi-Fi password on Windows, Mac, iPhone, Android and Linux

Your laptop joined the network months ago and now a visitor needs the password. Every major system keeps it and will show it to you, as long as you can unlock the device as its owner or an administrator.

Windows 10 and 11

netsh wlan show profiles
netsh wlan show profile name="NetworkName" key=clear

The first command lists every network Windows remembers; the second shows one of them. Look for Key Content under Security settings. Put the name in quotes if it has spaces. If Key Content is missing, open the terminal as administrator and run it again. On recent Windows 11 builds you can also open Settings → Network & internet → Wi-Fi → your network's properties and press View next to the Wi-Fi security key.

In PowerShell the same command works; if you see a different error, see PowerShell gotchas.

Mac

iPhone and iPad

iOS 16 and later: Settings → Wi-Fi → tap the (i) next to the network → tap Password and unlock with Face ID, Touch ID or the passcode. Newer versions also list known networks in the Passwords app. Nearby Apple devices signed in to someone in your contacts can also receive the password with a pop-up when they try to join.

Android

Android 10 and later: Settings → Network & internet (or Connections) → Wi-Fi → tap the gear next to the network → Share. You confirm with your screen lock and get a QR code; on many phones the password is printed under it. The other phone can simply scan the code with its camera.

Linux (NetworkManager)

nmcli device wifi show-password
# or, for any saved network:
sudo grep -r '^psk=' /etc/NetworkManager/system-connections/

Still nothing?

Share it without reading it out

Instead of spelling a long password letter by letter, make a Wi-Fi QR code; it is drawn in your browser so the password never leaves your device. The format guide explains what is inside it. For sending a password to someone far away, a one-time self-destructing note such as Fusenote beats a chat message that stays forever.

Related

How to log in to your router (192.168.1.1) · Wi-Fi QR code format · 2.4 GHz vs 5 GHz · Connected but no internet · Wi-Fi QR code generator

Questions

How do I see my Wi-Fi password on Windows?

Run netsh wlan show profile name="NetworkName" key=clear in a terminal and read Key Content.

How do I see a Wi-Fi password on a Mac?

In Keychain Access, search the network name, open it and tick Show password; or in System Settings → Wi-Fi use Copy Password.

Can I see a saved Wi-Fi password on an iPhone?

Yes, on iOS 16 and later: Settings → Wi-Fi → (i) next to the network → Password.

How do I share Wi-Fi from Android?

Wi-Fi settings → the network → Share. It shows a QR code the other phone can scan.

Do I need admin rights?

You need to unlock the device as its owner. On Windows, if Key Content does not appear, run the terminal as administrator; on a Mac you enter your login password.

Published · updated .

Try it

Related guides

Newest guides