Setup and Configuration

How to Get Wifi Password When Connected? On Current Device

Introduction You are sitting at your laptop, phone, or tablet, already connected to a Wi-Fi network, but you need the password for another device. Maybe a friend is visiting, you bought a new smart TV, or you are setting up a second laptop. The problem is that

HowToFixWiFi

Introduction

You are sitting at your laptop, phone, or tablet, already connected to a Wi-Fi network, but you need the password for another device. Maybe a friend is visiting, you bought a new smart TV, or you are setting up a second laptop. The problem is that you cannot remember the Wi-Fi password, and the router is either out of reach or locked away in a closet. In this situation, you may wonder How to Get Wifi Password When Connected?

The good news is that most modern operating systems store Wi-Fi credentials locally after you connect to a network. Because your device remembers the password, it is often possible to reveal it again without resetting the router or guessing blindly. The exact method depends on whether you are using Windows, macOS, Android, iOS, iPadOS, or Linux.

This guide walks you through every major platform and explains how to retrieve saved Wi-Fi passwords from a device that is currently connected. It also covers the universal router admin method, legal and ethical considerations, security warnings, and answers to frequently asked questions. By the end of this article, you will know exactly how to recover your Wi-Fi password safely and responsibly.

Table of Contents

Is It Legal and Ethical to Retrieve a Wi-Fi Password?

Before you attempt any of the methods in this guide, it is important to understand the legal and ethical boundaries. Retrieving a Wi-Fi password from your own device is generally fine when the network belongs to you, your employer, or you have explicit permission from the network owner.

However, accessing a network without authorization can violate computer crime laws in many countries. In the United States, for example, the Computer Fraud and Abuse Act has been used to prosecute unauthorized access to protected networks. Similar laws exist in the United Kingdom, Canada, Australia, and throughout the European Union.

Ethically, you should only recover passwords for networks you are allowed to use. If you are connected to a neighbor’s Wi-Fi, a coffee shop network, or a corporate guest network without permission, you should not attempt to extract the password. This guide is intended for legitimate recovery of credentials on networks you own or manage.

If you are unsure whether you have permission, ask the network administrator or owner first. It is always better to request the password directly than to recover it without consent.

How Wi-Fi Passwords Are Stored on Your Current Device

When you connect to a Wi-Fi network and choose to save the password, your operating system stores that credential in a secure location. The goal is to allow automatic reconnection in the future without requiring you to type the password every time.

On Windows, saved Wi-Fi profiles are kept in the system registry and managed by the WLAN AutoConfig service. On macOS, passwords are stored in the Keychain, which is an encrypted password management system tied to your user account. Android stores Wi-Fi credentials in a protected system directory that is normally inaccessible to regular apps. iOS and iPadOS use the Keychain as well, but with stricter user interface restrictions. Linux distributions typically store network passwords in NetworkManager or wpa_supplicant configuration files, often with restricted read permissions.

Because these credentials are sensitive, most operating systems require administrative privileges, a device passcode, or biometric authentication before revealing them in plain text. This is a security feature, not a bug. It prevents unauthorized users or malware from easily harvesting all saved Wi-Fi passwords from a stolen or unattended device.

Windows: How to Get Wifi Password When Connected?

Windows offers several built-in ways to view the password of a Wi-Fi network you are currently connected to. You do not need to install third-party software for most of these methods.

Method 1: Using Network and Sharing Center

This is the easiest graphical method and works on Windows 10 and Windows 11.

  1. Press the Windows key on your keyboard, type Control Panel, and press Enter.
  2. Go to Network and Internet, then select Network and Sharing Center.
  3. Look for the Connections section and click the name of your active Wi-Fi network.
  4. A Wi-Fi Status window will open. Click the Wireless Properties button.
  5. Select the Security tab.
  6. Check the box labeled Show characters.
  7. The network security key field will now display the Wi-Fi password in plain text.

If the Show characters checkbox is grayed out, you may need to provide administrator credentials or log in with an administrator account.

Method 2: Using Command Prompt

Command Prompt is a fast way to retrieve the password if you prefer the command line.

  1. Press the Windows key, type cmd, right-click Command Prompt, and choose Run as administrator.
  2. Type the following command to see all saved Wi-Fi profiles:
netsh wlan show profiles
  1. Identify the exact name (SSID) of the network you are connected to.
  2. Type the following command, replacing YOUR-NETWORK-NAME with the actual SSID:
netsh wlan show profile name="YOUR-NETWORK-NAME" key=clear
  1. Scroll down to the Security settings section.
  2. Look for the line labeled Key Content. The text next to it is your Wi-Fi password.

Method 3: Using PowerShell

PowerShell can also extract saved Wi-Fi credentials with a similar approach.

  1. Open PowerShell as administrator.
  2. Run a command to list profiles and then query the specific profile for the clear-text key.

Most users find the Command Prompt method simpler, but PowerShell is useful if you are scripting the retrieval across multiple machines.

macOS: How to Get Wifi Password When Connected?

macOS stores Wi-Fi passwords in the Keychain Access app. If your Mac is currently connected to the network, you can reveal the password using the built-in Keychain utility.

Method 1: Using Keychain Access

  1. Open Finder, go to Applications, then open the Utilities folder.
  2. Double-click Keychain Access.
  3. In the search box at the top right, type the name of your Wi-Fi network.
  4. Double-click the network name when it appears in the results.
  5. In the new window, check the box labeled Show password.
  6. Enter your Mac administrator username and password when prompted, or use Touch ID if available.
  7. The Wi-Fi password will appear in the Show password field.

Method 2: Using Terminal (Advanced)

Advanced users can retrieve Wi-Fi passwords from the command line using the security tool. This method requires you to know the exact network name and have administrative access.

security find-network-password -a "YOUR-NETWORK-NAME" -g

After running the command, macOS may prompt you for your system password or Touch ID. If successful, the password will be displayed in the Terminal output.

Android: How to Get Wifi Password When Connected?

Android handles Wi-Fi password visibility differently depending on the version of the operating system and the manufacturer’s custom interface. Modern versions of Android make it easier than older versions ever did.

Method 1: Using the Built-in QR Code Share (Android 10 and Later)

If your phone or tablet is running Android 10, 11, 12, 13, 14, or later, you can generate a QR code for the connected network. Scanning that code with another device often reveals the password.

  1. Open the Settings app.
  2. Tap Network & internet or simply Network, depending on your device.
  3. Tap Internet or Wi-Fi.
  4. Tap the gear icon next to the network you are currently connected to.
  5. Look for a button labeled Share, QR code, or a QR code icon.
  6. Authenticate using your PIN, pattern, fingerprint, or face unlock if prompted.
  7. A QR code will appear on the screen. Below or beside the code, the password may be shown in plain text on some devices.
  8. If the password is not visible directly, scan the QR code with another phone’s camera or a QR scanner app. The scanned result usually contains the network name and password.

Method 2: Older Android Versions and Rooting

On Android 9 and earlier, there is no built-in way to view the plain-text Wi-Fi password from the user interface. The credentials are stored in a protected system file that normal apps cannot read.

Some guides suggest rooting your Android device to access these files. Rooting gives you full system access, but it also voids your warranty, breaks security features, and can make your device vulnerable to malware. Unless you are an advanced user who fully understands the risks, rooting just to recover a Wi-Fi password is not recommended.

Method 3: Using ADB (Advanced)

If you previously enabled USB debugging and authorized your computer, you can use the Android Debug Bridge (ADB) to pull certain system information. However, modern Android versions restrict access to Wi-Fi passwords even through ADB unless the device is rooted. This method is generally not reliable for average users.

iOS and iPadOS: How to Get Wifi Password When Connected?

Apple has historically made it difficult to view saved Wi-Fi passwords directly on an iPhone or iPad. That changed somewhat with recent versions of iOS, but there are still limitations compared to desktop operating systems.

Method 1: Viewing Saved Passwords on iOS 16 and Later

If your iPhone or iPad is running iOS 16 or a later version, Apple added the ability to reveal saved Wi-Fi passwords directly in the Settings app.

  1. Open the Settings app.
  2. Tap Wi-Fi.
  3. Tap the blue information icon (the lowercase i in a circle) next to the network you are connected to.
  4. Look for the Password field. It will be hidden by dots.
  5. Tap the hidden password field.
  6. Authenticate using Face ID, Touch ID, or your device passcode.
  7. The password will be revealed. You can copy it to the clipboard if needed.

If you are on iOS 15 or earlier, this option is not available directly on the device.

Method 2: Using iCloud Keychain on a Mac

If your iPhone or iPad is signed into the same iCloud account as a Mac, and iCloud Keychain is enabled on both devices, the Wi-Fi password may sync to the Mac. You can then use the Keychain Access method described in the macOS section to view it.

Method 3: Logging Into Your Router

When direct password viewing is not possible on iOS, the most reliable alternative is to log into your router’s admin page. This universal method is covered in detail later in this guide.

Linux: How to Get Wifi Password When Connected?

Linux users have several command-line options for retrieving saved Wi-Fi passwords, depending on the network manager in use.

Method 1: Using nmcli

Many desktop Linux distributions use NetworkManager. The nmcli tool can show connection details, including the pre-shared key, though you typically need root privileges.

  1. Open a terminal.
  2. List saved connections:
nmcli connection show
  1. Run the following command, replacing YOUR-SSID with the name of your network:
sudo nmcli -s -g 802-11-wireless-security.psk connection show "YOUR-SSID"

If successful, the terminal will print the Wi-Fi password.

Method 2: Checking wpa_supplicant or NetworkManager Files

On some systems, Wi-Fi credentials are stored in /etc/NetworkManager/system-connections/ or in /etc/wpa_supplicant/wpa_supplicant.conf. These files are usually readable only by the root user.

You can inspect them with a command like:

sudo cat /etc/NetworkManager/system-connections/YOUR-SSID.nmconnection

Look for a line starting with psk=. The value after the equals sign is the password. On some systems, the password may be obfuscated rather than stored in plain text.

The Universal Method: Logging Into Your Router Admin Page

If you cannot retrieve the password from your current device, or if you need the password for a network that another device is connected to, logging into the router's administration panel is the most reliable universal method.

Step 1: Find Your Router's IP Address

Most home routers use an address like 192.168.1.1, 192.168.0.1, or 10.0.0.1. To find the exact address on your current device:

  • Windows: Open Command Prompt and run ipconfig. Look for Default Gateway.
  • macOS: Open Terminal and run ip route get default or check System Settings > Network.
  • Android: Go to Wi-Fi settings, tap your connected network, and look for the gateway or router address.
  • iOS: Go to Settings > Wi-Fi, tap the info icon next to your network, and look for the Router field.
  • Linux: Run ip route or route -n in the terminal.

Step 2: Log Into the Admin Panel

  1. Open a web browser on your connected device.
  2. Type the router's IP address into the address bar and press Enter.
  3. Enter the administrator username and password.

If you have never changed these credentials, they are often printed on a sticker on the router itself. Common default combinations include admin / admin or admin / password. If you changed the admin password and forgot it, you may need to reset the router to factory defaults.

Step 3: Locate the Wi-Fi Password

  1. Navigate to the wireless settings section. This may be labeled Wireless, Wi-Fi, WLAN, or Security.
  2. Look for fields labeled Pre-Shared Key, Password, Passphrase, or Network Key.
  3. The password may be hidden by default. Look for a checkbox or eye icon to show it.
  4. Copy or write down the password exactly as shown, including uppercase and lowercase letters.

This method works regardless of whether you are using Windows, Mac, Android, iOS, or Linux, because the password is stored on the router itself.

Comparison Table: Retrieval Methods by Device

Operating System Built-in Method Difficulty Requires Admin or Root Shows Plain Text Password
Windows Network and Sharing Center, Command Prompt Easy Yes, administrator Yes
macOS Keychain Access Easy Yes, Mac admin password Yes
Android 10+ QR code share in Wi-Fi settings Easy No, but requires unlock authentication Sometimes, or via QR scan
Android 9 and older None without root Hard Yes, root access Yes, if rooted
iOS 16+ Settings > Wi-Fi > info icon Easy No, but requires Face ID/Touch ID/passcode Yes
iOS 15 and older None directly on device Hard Requires Mac with iCloud Keychain Yes, on Mac
Linux nmcli or config files Moderate Yes, root/sudo Yes
Any (via router) Router admin web page Moderate Yes, router admin credentials Yes

What If You Are Not Currently Connected?

The methods described in this guide generally require that your device has previously connected to the network and saved the credentials. If you have never connected to the network, your device does not have the password stored locally.

In that case, your options are:

  • Ask the network owner or administrator for the password.
  • Log into the router admin page if you have access.
  • Look for a sticker on the router that shows the default Wi-Fi name and password.
  • Reset the router to factory settings and set up a new password, though this will disconnect all current devices.

If you were previously connected but the device has since been wiped or the network profile deleted, the saved password is gone from that device. You would need another device that still remembers the network, or you would need to use the router admin method.

Tips and Best Practices for Managing Wi-Fi Passwords

Recovering a forgotten password is convenient, but it is better to avoid losing it in the first place. Here are some best practices for managing Wi-Fi credentials.

  • Use a password manager: Save your Wi-Fi password in a reputable password manager so you can access it from any device.
  • Label your router: Write the Wi-Fi name and password on a piece of tape and stick it to the router or keep it in a secure drawer.
  • Create a guest network: Many modern routers support a separate guest Wi-Fi network. This lets visitors connect without giving them your main password.
  • Use QR codes for guests: If your router or phone supports it, generate a QR code for your Wi-Fi network. Guests can scan it to connect without seeing or typing the password.
  • Change default router credentials: The admin username and password for your router should be different from the Wi-Fi password. Default credentials are widely known and easy to exploit.
  • Use WPA2 or WPA3: Avoid older security standards like WEP, which are easy to crack. WPA3 is the most secure option currently available for home networks.
  • Keep your devices updated: Operating system updates often include security patches that protect stored credentials, including Wi-Fi passwords.

Security Warnings and Risks to Keep in Mind

While retrieving your own Wi-Fi password is usually safe, there are several risks to watch out for.

Avoid suspicious third-party apps. Many apps in app stores claim to reveal Wi-Fi passwords. Most of them cannot do what they advertise, and some are designed to steal your data, display intrusive ads, or install malware. Stick to built-in operating system features whenever possible.

Do not root or jailbreak just for this task. Rooting an Android device or jailbreaking an iPhone removes important security protections. It can expose your banking apps, personal photos, and saved passwords to attackers. Only consider these advanced steps if you understand the risks and have a specific need beyond Wi-Fi password recovery.

Protect your router admin access. If someone gains access to your router's admin panel, they can change your Wi-Fi password, view connected devices, or alter security settings. Always change the default admin password and keep it secure.

Be mindful of who you share the password with. Once someone has your Wi-Fi password, they can connect any device to your network. If you no longer trust a person, change your Wi-Fi password and reconnect your own devices.

Frequently Asked Questions

Can I see my Wi-Fi password on my phone while connected?

Yes, but it depends on your phone and operating system version. Android 10 and later allows you to generate a QR code for the connected network, which can reveal the password when scanned. iOS 16 and later lets you view the password directly in Settings after authenticating with Face ID, Touch ID, or your passcode. Older versions generally do not show the password directly on the phone.

Do I need to be connected to the Wi-Fi network to get the password?

Not always, but it helps. If your device has previously connected to the network and saved the profile, you can often retrieve the password even if you are not currently connected. However, if you have never connected to the network, your device will not have the password stored, and you will need to use the router admin page or ask the network owner.

Is it legal to retrieve a Wi-Fi password from my own device?

Yes, recovering a password from your own device for a network you own or have permission to use is legal. Accessing a network you do not own or have permission to use may violate laws in many jurisdictions. Always ensure you have authorization before attempting to recover or use a Wi-Fi password.

Can I use a third-party app to reveal my Wi-Fi password?

You should be very cautious with third-party apps that claim to reveal Wi-Fi passwords. Most cannot deliver on that promise, and some may compromise your privacy or security. Built-in methods such as Command Prompt on Windows, Keychain Access on macOS, or the Settings app on modern Android and iOS are safer and more reliable.

Will resetting my router help me find the password?

Resetting your router to factory defaults will restore the default Wi-Fi password printed on the router sticker, but it will also disconnect all devices and erase custom settings. You should only reset the router if you have no other way to access the admin panel and you are prepared to reconfigure your network.

Does this work for WPA3 networks?

Yes. The methods for retrieving saved Wi-Fi passwords apply regardless of whether the network uses WPA2, WPA3, or another security standard. The password itself is stored by the operating system or router independently of the encryption method.

Can I retrieve the password without administrator rights?

Usually no. Operating systems protect saved Wi-Fi passwords because they are sensitive credentials. On Windows and macOS, you generally need administrator access. On Android and iOS, you need to unlock the device with a PIN, biometric authentication, or passcode. On Linux, you typically need root or sudo privileges.

What should I do if I cannot find the password anywhere?

If none of the device methods work and you cannot access the router, contact your internet service provider or the person who set up the network. As a last resort, you can reset the router to factory defaults and create a new Wi-Fi password, though you will need to reconnect all your devices.

Conclusion

Forgetting your Wi-Fi password while still being connected to the network is a common frustration, but it is usually solvable. Whether you are using Windows, macOS, Android, iOS, iPadOS, or Linux, there is a built-in method to reveal the saved credential. The router admin page provides a universal fallback that works across all devices.

When asking How to Get Wifi Password When Connected?, remember that the easiest path depends on your operating system. Windows users can use Network and Sharing Center or Command Prompt. Mac users can rely on Keychain Access. Android 10 and newer devices offer QR code sharing, while iOS 16 and later lets you view passwords directly in Settings. Linux users have command-line tools like nmcli. And if all else fails, logging into your router will almost always give you access to the network security key.

Just be sure to use these methods responsibly. Only recover passwords for networks you own or have explicit permission to access. Avoid sketchy third-party apps, do not root or jailbreak your device solely for this purpose, and protect your router admin credentials with a strong, unique password.

By following the steps in this guide, you should be able to retrieve your Wi-Fi password quickly and get your other devices online without needing to reset your network.