TechBuzzPro

How to Share WiFi Password from PC to Phone

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can share your Windows PC's saved Wi-Fi password to a phone by viewing the existing network key in the Network and Sharing Center or by generating a QR code via Command Prompt. This allows you to connect the phone without manually typing the complex string of characters, reducing errors and saving time.

What You'll Need

  • A Windows 10 or Windows 11 PC currently connected to the target Wi-Fi network
  • The smartphone (Android or iOS) you wish to connect
  • Access to the Command Prompt or PowerShell on the PC

Step-by-Step

  1. Verify Connection: Ensure your Windows PC is actively connected to the Wi-Fi network whose password you want to share. The method only works for networks the PC has previously joined and saved.
  2. Open Command Prompt: Press the Windows Key + R on your keyboard to open the Run dialog. Type cmd and press Enter. Alternatively, click Start, type "cmd," right-click Command Prompt, and select "Run as administrator" if you encounter permission errors later.
  3. Identify the Network Profile Name: In the black Command Prompt window, type the following command exactly as shown, replacing "YourNetworkName" with the actual name of your Wi-Fi (SSID):
    wifi show profile name="YourNetworkName" key=clear
    Press Enter. If you are unsure of the exact SSID spelling, you can first list all saved profiles by typing wifi show profiles.
  4. Locate the Password: After running the previous command, look at the output. Find the line labeled Key Content. The string of characters next to it is your Wi-Fi password. Note this down or keep the window open.
  5. Generate a QR Code (Alternative Method): For a more visual approach that works well with Android phones, use this command instead:
    wifi show profile name="YourNetworkName" key=clear | findstr Key Content
    This isolates the password line. To create a scannable QR code directly, you can use an online generator. Copy the text format: WIFI:T:WPA;S:YourNetworkName;P:YourPassword;; and paste it into a free QR code generator website. Display the resulting QR code on your PC screen.
  6. Connect the Phone:
    • For Android: Open Settings > Network & Internet > Wi-Fi. Tap the network name. If a QR code option appears, scan the code displayed on your PC. If not, manually enter the password found in Step 4.
    • For iPhone: iPhones do not natively scan Wi-Fi QR codes from the camera app in older iOS versions. On iOS 11+, point the Camera app at the QR code generated in Step 5. A notification will appear to join the network. Tap it to connect automatically.

Common Mistakes

A frequent error occurs when users copy the wrong text from the Command Prompt output. Ensure you only copy the characters listed under "Key Content." Do not include any surrounding spaces or quotes. Another common mistake is attempting to view the password for a network the PC has never connected to; Windows only stores credentials for networks it has joined previously. Additionally, some corporate or school networks encrypt passwords differently or require additional authentication certificates, meaning the standard command may return blank or restricted data.

Tips

If you frequently share Wi-Fi access, consider setting up a guest network on your router. This provides a separate password for visitors, keeping your main device network secure. When using the Command Prompt method, ensure no other windows are obscuring the output so you can read the password clearly. For Android users, enabling "Scan QR Codes" in the camera settings ensures seamless connectivity without needing third-party apps.

Troubleshooting

If the Command Prompt returns "Unable to display" or shows no key content, the network profile might be corrupted or secured with enterprise-level authentication (like WPA2-Enterprise). In this case, check the password in the Network and Sharing Center instead. Go to Control Panel > Network and Internet > Network and Sharing Center. Click on the Wi-Fi name next to "Connections." Select "Wireless Properties," go to the Security tab, and check "Show characters" to reveal the password. If the QR code does not scan, ensure your phone's camera is focused properly and the screen brightness is high enough. If manual entry fails, double-check for confusing characters like '0' (zero) vs 'O' (letter), or '1' (one) vs 'l' (lowercase L).

Frequently Asked Questions

Can I share my mobile hotspot password from my PC?

No, this guide applies to receiving a password from a PC to a phone. To share a phone's hotspot password, use the QR code feature within the phone's Hotspot settings.

Why does my Command Prompt say "Unable to display key"?

This usually means the network uses enterprise security (common in offices/schools) which requires username/password login rather than a shared key, or the profile is corrupted. Try checking the Wireless Properties in Control Panel instead.

Does this work on Windows 7?

The Command Prompt method described here is specific to Windows 10 and 11. On Windows 7, you must use the Network and Sharing Center path: View network status > Wireless Properties > Security tab > Show characters.

Is it safe to share my Wi-Fi password via QR code?

Yes, QR codes for Wi-Fi are encrypted strings containing only the SSID and password. They are safe to display publicly, but remember that anyone who scans it can join your network.

What if I forget the network name (SSID)?

Type wifi show profiles in the Command Prompt to list all saved Wi-Fi names on your PC. Then use the correct name in the subsequent command.

Can I change the password using this method?

No, this method only retrieves the current password. To change it, you must log into your router's admin page or use the router manufacturer's dedicated app.