Setup and Configuration

How to Get Wifi Password? View Saved Networks

Introduction It happens to almost everyone at some point. You have a new phone, tablet, or laptop that needs to connect to your home or office wireless network, but nobody can remember the Wi-Fi password. Maybe the original setup was done months ago by a forme

HowToFixWiFi

Introduction

It happens to almost everyone at some point. You have a new phone, tablet, or laptop that needs to connect to your home or office wireless network, but nobody can remember the Wi-Fi password. Maybe the original setup was done months ago by a former roommate, a previous IT administrator, or a service technician who left no documentation behind. In moments like these, knowing How to Get Wifi Password? becomes more than a curiosity—it becomes a practical necessity.

Most modern operating systems remember every wireless network you have successfully connected to. They store the SSID (network name), security type, and the pre-shared key in a secure local database. This means that if your current device—or another device you own—has connected to the network before, the password is likely already saved somewhere in the system. The challenge is knowing where to look and how to retrieve it safely.

This guide walks you through the process of viewing saved Wi-Fi passwords across Windows, macOS, Android, iOS, iPadOS, and Linux. It also covers an alternative method through your router’s admin panel, explains the legal and ethical boundaries, and shares best practices for keeping your wireless credentials secure. Whether you are troubleshooting a connection issue, helping a guest get online, or simply documenting your network settings, you will find step-by-step instructions tailored to your device.

Table of Contents

What Are Saved Wi-Fi Networks?

When you connect to a wireless network for the first time, your operating system asks whether you want to remember the network. If you agree, it saves the network profile in a local configuration store. This profile typically contains:

  • The network name, also known as the SSID
  • The security protocol, such as WPA2, WPA3, or WEP
  • The authentication method, usually pre-shared key (PSK)
  • The actual Wi-Fi password, stored in encrypted form

Because the password is saved, your device can reconnect automatically whenever the network is in range. You do not have to type the key every time you restart your laptop or wake your phone from sleep. However, this convenience also means that the password is retrievable if you have administrative access to the device and know the right tools.

It is important to distinguish between a saved network and a network you merely saw in the list of available networks. Simply seeing a network name in the Wi-Fi menu does not mean the password is saved. You must have successfully connected to it at least once, and the device must still retain the profile.

Why You Might Need to View Saved Passwords

There are many legitimate reasons to look up a saved Wi-Fi password. You might be setting up a new smart television, gaming console, or printer and need to enter the same credentials. You could be helping a friend or family member connect their device to your network. In office environments, an employee might leave without sharing the guest Wi-Fi key, leaving the next person locked out.

Other common scenarios include:

  • Reconfiguring a router after a factory reset
  • Connecting a second device when the original password was written on a lost piece of paper
  • Auditing network security to ensure old or weak passwords are replaced
  • Documenting credentials for a small business IT inventory

Whatever the reason, the goal is usually to regain access without disrupting the network or forcing a full router reset, which would disconnect every device and require reconfiguration.

Is It Legal and Ethical?

Before diving into the technical steps, it is worth addressing the ethical and legal side of retrieving Wi-Fi passwords. You should only attempt to view passwords for networks you own, administer, or have explicit permission to access. Trying to retrieve credentials for a neighbor’s network, a public hotspot you are not authorized to use, or any network you do not manage can violate computer fraud and privacy laws in many jurisdictions.

Most of the methods described in this article require administrative or root privileges on the device. That requirement exists by design: operating systems protect saved Wi-Fi keys so that unauthorized users or malware cannot harvest them easily. Respecting those boundaries is part of responsible device ownership.

If you are an employee, check your company’s acceptable use policy before extracting network credentials from a work-issued laptop or phone. Some organizations consider saved passwords to be confidential assets.

How to Get Wifi Password? View Saved Networks on Windows

Windows stores wireless network profiles in a way that makes them accessible through built-in command-line tools. You do not need third-party software, and you do not need to install anything. The most reliable method uses the Command Prompt or PowerShell with administrator rights.

Below are two common approaches: one using the command line, which works on nearly all versions of Windows, and one using the graphical Settings app, which is more limited but easier for casual users.

Using Command Prompt on Windows

This method works on Windows 10, Windows 11, and earlier versions such as Windows 7 and 8. It reveals the password in plain text under the Security settings section.

  1. Press the Windows key on your keyboard, type cmd, right-click on Command Prompt, and select Run as administrator. Click Yes if the User Account Control prompt appears.
  2. In the Command Prompt window, type the following command and press Enter to see a list of all saved wireless networks:
    netsh wlan show profiles
  3. Scroll through the list and find the exact name of the Wi-Fi network you want. Note the name exactly as it appears, including capitalization and spaces.
  4. Type the following command, replacing YOUR-NETWORK-NAME with the actual SSID, then press Enter:
    netsh wlan show profile name="YOUR-NETWORK-NAME" key=clear
  5. Look for the section labeled Security settings. Within that section, find the line that says Key Content. The text displayed next to it is the Wi-Fi password.
  6. If you want to copy the password, highlight it with your mouse, right-click, and choose Copy. You can then paste it into the device you are trying to connect.

If the Key Content line is blank or missing, it usually means the profile does not store the password in plain text, or you do not have sufficient permissions to view it. Running the Command Prompt as administrator resolves most permission issues.

Using Windows Settings (Windows 10 and 11)

Modern versions of Windows have made it harder to view saved Wi-Fi passwords directly from the Settings app. In many cases, the graphical interface shows the connection status and signal strength but hides the security key for protection.

On Windows 11, you can sometimes view the password for the network you are currently connected to by going to Settings > Network & internet > Wi-Fi > Manage known networks, selecting the network, and looking for a reveal option. However, this feature is not available on every build, and it often only works for the active connection rather than any saved network.

Because the Settings method is inconsistent, the Command Prompt approach described above remains the most dependable way to answer How to Get Wifi Password? on a Windows computer.

How to Get Wifi Password? View Saved Networks on macOS

macOS stores Wi-Fi passwords in the system keychain, which is the same secure database used for website logins, email accounts, and other credentials. You can retrieve saved wireless keys using the graphical Keychain Access app or through the Terminal for those who prefer command-line tools.

Using Keychain Access on macOS

Keychain Access is a built-in macOS utility located in the Applications folder, inside Utilities. It provides a visual way to search for and reveal saved passwords.

  1. Open Finder, go to Applications > Utilities, and double-click Keychain Access.
  2. In the upper-left search field, type the name of the Wi-Fi network or simply type AirPort to filter for network-related entries. Older macOS versions refer to Wi-Fi as AirPort, so many entries use that label.
  3. Double-click the network entry that matches your SSID. A small window opens with details about the network.
  4. At the bottom of that window, look for a checkbox labeled Show password and click it.
  5. macOS will ask for your user account password or Touch ID confirmation. Enter it to prove you are authorized to view the credential.
  6. Once authenticated, the password appears in plain text in the Show password field. You can copy it and paste it wherever needed.

If you do not see the network in Keychain Access, it may be because the Mac has never connected to it, or the entry was removed from the keychain.

Using Terminal on macOS

Advanced users can retrieve saved Wi-Fi passwords directly from the Terminal using the security command. This method is useful for scripting or when the graphical app is not responding.

  1. Open Terminal from Applications > Utilities.
  2. Type the following command, replacing YOUR-SSID with the exact name of your wireless network, then press Enter:
    security find-generic-password -ga "YOUR-SSID" | grep "password:"
  3. When prompted, enter your Mac administrator password. The characters will not appear on the screen as you type.
  4. Terminal returns a line containing the password, such as password: "your-wifi-key-here".

If the command returns nothing, double-check the spelling of the SSID. Network names are case-sensitive in this context.

How to Get Wifi Password? View Saved Networks on Android

Android has changed significantly over the years regarding Wi-Fi password visibility. Modern versions of Android (Android 10 and later) include a built-in sharing feature that makes it easy to view the password for a network you are currently connected to. Older versions generally require root access, which is not recommended for average users because it compromises security and may void your warranty.

Using Settings and QR Code Share on Android

On most Android 10, 11, 12, 13, and 14 devices, you can generate a QR code for your current Wi-Fi network. Scanning that code with another phone—or even viewing the code details—reveals the password.

  1. Open the Settings app on your Android phone or tablet.
  2. Tap Network & internet, then tap Internet or Wi-Fi, depending on your manufacturer’s interface (Samsung, Pixel, OnePlus, Xiaomi, and others label menus differently).
  3. Find the network you are connected to and tap the gear icon or the network name next to it.
  4. Look for a button labeled Share, QR code, or Share Wi-Fi. Tap it.
  5. Authenticate using your fingerprint, face unlock, PIN, or pattern when prompted.
  6. A QR code appears on the screen. Beneath the code, you will often see the network name and the password in plain text. If the password is not visible directly, scan the QR code with another device to reveal the connection details.

This method only works for the network you are actively connected to. It does not show passwords for networks you connected to in the past but are no longer within range of.

On Rooted Android Devices

If your Android device is rooted, you can access the system file wpa_supplicant.conf, which contains saved network credentials. The file is usually located in /data/misc/wifi/ or /etc/wifi/, depending on the manufacturer and Android version.

Because rooting introduces security risks and can break system updates, this guide does not provide step-by-step rooting instructions. If you already have a rooted device and a file explorer with root access, you can open that file with a text editor to view saved SSIDs and their corresponding pre-shared keys. Always back up the file before making any changes.

How to Get Wifi Password? View Saved Networks on iPhone and iPad

Apple has made it progressively easier to view saved Wi-Fi passwords directly on iOS and iPadOS. If your iPhone or iPad is running iOS 16 or later, the operating system lets you reveal the password for any saved network with just a few taps. Older versions require a workaround using a Mac and iCloud Keychain.

Using iOS Settings

On iOS 16, iOS 17, and iOS 18, follow these steps to view a saved Wi-Fi password:

  1. Open the Settings app.
  2. Tap Wi-Fi.
  3. Find the network you are connected to and tap the blue i (information) icon next to it. For saved networks you are not currently connected to, tap Edit in the top-right corner, then tap the i icon next to the network in the list.
  4. Look for a field labeled Password with dots covering the characters.
  5. Tap the dots or the hidden password field. Authenticate using Face ID, Touch ID, or your passcode.
  6. The password is revealed in plain text. Tap Copy to save it to the clipboard, then paste it into the device that needs to connect.

If you do not see a password field, your device may be running an older version of iOS that does not support this feature.

Syncing with Mac via iCloud Keychain

If your iPhone is running iOS 15 or earlier, the saved Wi-Fi password may still be accessible if you use iCloud Keychain and own a Mac. When iCloud Keychain is enabled, Wi-Fi credentials sync between your Apple devices. You can open Keychain Access on your Mac, search for the network name, and reveal the password using the steps described in the macOS section above.

This method requires that both devices are signed into the same Apple ID and that Keychain syncing is turned on in iCloud settings.

How to Get Wifi Password? View Saved Networks on Linux

Linux distributions store wireless network configurations differently depending on the desktop environment and network manager in use. Most modern desktop distributions, including Ubuntu, Fedora, Debian, and Mint, use NetworkManager. This makes it possible to retrieve saved passwords from the command line or through graphical settings.

Using Terminal and NetworkManager on Linux

NetworkManager saves connection files in a system directory that requires root access to read. On many distributions, these files are located under /etc/NetworkManager/system-connections/.

  1. Open a Terminal window.
  2. List the saved connection files by typing:
    ls /etc/NetworkManager/system-connections/
  3. Identify the file that matches your Wi-Fi network name. The filename often matches the SSID exactly.
  4. View the contents of that file with root privileges. For example:
    sudo cat /etc/NetworkManager/system-connections/YOUR-SSID.nmconnection
  5. Look for a section labeled [wifi-security]. Inside that section, find the line psk=. The text after the equals sign is the Wi-Fi password.

Some distributions encrypt these files or store them in alternate locations such as /var/lib/NetworkManager/. If the cat command returns permission denied, ensure you are using sudo and that your user account has administrative rights.

Alternatively, you can use the nmcli tool to list connections, though revealing the plain-text password usually still requires reading the connection file directly.

Alternative: Accessing Your Router Admin Panel

If you cannot retrieve the password from a saved device, or if no device has the credentials stored, you can often find or reset the Wi-Fi password by logging into your router’s administration panel. This method works best when you have physical access to the router and know the admin login credentials.

  1. Connect a computer or phone to the router via Ethernet cable or Wi-Fi.
  2. Open a web browser and enter the router’s default gateway address. Common addresses include 192.168.1.1, 192.168.0.1, or 192.168.1.254. You can find the exact address by checking your device’s network settings under “Default Gateway” or “Router.”
  3. Log in using the administrator username and password. If you never changed them, they might still be the defaults printed on a sticker on the router, such as admin / admin or admin / password.
  4. Navigate to the wireless settings section, which may be labeled Wireless, Wi-Fi Settings, WLAN, or Security.
  5. Look for fields labeled Pre-Shared Key, WPA Key, Password, or Passphrase. The current Wi-Fi password is displayed there.
  6. If you want to change the password, enter a new one, save the settings, and reconnect all your devices using the new key.

If you do not know the router admin password, you may need to perform a factory reset by pressing the reset button on the router for 10 to 30 seconds. This erases custom settings and restores the default Wi-Fi name and password printed on the device label.

Comparison Table: Methods by Device

The table below summarizes the primary methods covered in this guide so you can quickly decide which approach fits your situation.

Device / OS Method Difficulty Admin Rights Required? Shows Saved Networks?
Windows Command Prompt (netsh wlan) Easy Yes Yes
Windows Settings app Very Easy No Limited
macOS Keychain Access Easy Yes (user password) Yes
macOS Terminal (security) Moderate Yes Yes
Android Settings / QR Code Share Very Easy No Current network only
Android Rooted file access Difficult Root access Yes
iOS / iPadOS Settings app (iOS 16+) Very Easy No (Face ID/Touch ID) Yes
iOS / iPadOS Mac via iCloud Keychain Moderate Yes (Mac user password) Yes
Linux Terminal / NetworkManager files Moderate Yes (sudo/root) Yes
Any Router admin panel Easy to Moderate Router admin login N/A (router source)

Tips and Best Practices

Retrieving a saved Wi-Fi password is useful, but managing your wireless credentials responsibly is just as important. Follow these best practices to keep your network secure and avoid future password headaches.

  • Use a password manager: Instead of relying on your operating system to remember every Wi-Fi key, store important network passwords in a reputable password manager. This makes it easy to share credentials with trusted family members or colleagues without exposing them in plain text.
  • Change default router credentials: Many routers ship with default admin usernames and passwords that are widely known. Change them as soon as you set up a new router to prevent unauthorized access to your admin panel.
  • Use WPA3 when available: If your router and devices support WPA3, enable it for stronger encryption. WPA2 is still secure for most home networks, but older protocols like WEP should be avoided.
  • Create a guest network: If you frequently have visitors who need Wi-Fi access, set up a separate guest network. This keeps your main network and its connected devices isolated from guest traffic.
  • Label your router: Write the Wi-Fi name and password on a piece of tape and stick it to the router, or store the details in a secure physical location. This saves time if you ever need to reconnect a device quickly.
  • Avoid sharing passwords recklessly: Only reveal saved Wi-Fi passwords to people you trust. Once someone has the key, they can connect any device to your network unless you change it later.
  • Update router firmware: Keep your router’s firmware up to date to patch security vulnerabilities that could expose wireless credentials.

Troubleshooting Common Issues

Even with the right instructions, you may run into obstacles when trying to view a saved Wi-Fi password. Here are some frequent problems and how to address them.

  • Command Prompt says the network is not found: Make sure you typed the SSID exactly as it appears in the netsh wlan show profiles list. Network names are case-sensitive, and hidden characters or trailing spaces can cause mismatches.
  • Key Content is blank on Windows: This can happen if the network profile was created without storing the key, or if your user account lacks administrative privileges. Re-run Command Prompt as administrator and try again.
  • Keychain Access does not show the network: The Mac may never have connected to that network, or the entry may have been deleted from the keychain. Check if another Apple device has the password saved.
  • Android QR code does not show the password: Some manufacturers hide the plain-text password beneath the QR code and require you to scan it with a second device. If scanning is not possible, try using a QR code reader app that displays the raw text.
  • iPhone does not reveal the password: Make sure you are running iOS 16 or later. Earlier versions do not allow direct password viewing in the Settings app.
  • Linux permission denied: You must use sudo to read NetworkManager connection files. If sudo is not configured for your account, contact the system administrator.
  • Router admin login does not work: If you changed the admin password and forgot it, perform a factory reset on the router. Remember that this erases custom Wi-Fi names, passwords, port forwarding rules, and other settings.

Frequently Asked Questions

Can I see Wi-Fi passwords for networks I never connected to?

No. Operating systems only save credentials for networks you have successfully joined at least once. You cannot retrieve a password for a network you merely saw in the available list unless you have access to the router admin panel or the network owner shares it with you.

Is using Command Prompt to view Wi-Fi passwords safe?

Yes. The netsh wlan commands are built into Windows and do not install software or modify system files. They simply read information that Windows already stores locally. As long as you are viewing passwords for networks you own or manage, the process is safe.

Do I need root access on Android?

Not on Android 10 and newer. Those versions include a built-in QR code sharing feature that reveals the password for your current network without root. Older Android versions generally require root access to view saved Wi-Fi keys.

Can I view saved Wi-Fi passwords on an iPhone without a Mac?

Yes, if your iPhone is running iOS 16 or later. You can view and copy saved Wi-Fi passwords directly in the Settings app. If you have an older iPhone and no Mac, you may need to reset the router or ask the network administrator for the password.

What should I do if I forgot my router admin password?

Most routers have a physical reset button. Press and hold it for about 10 to 30 seconds until the router’s lights flash, which restores factory defaults. You can then log in with the default credentials printed on the router label and set up your Wi-Fi network again.

Is it legal to view saved Wi-Fi passwords on a work computer?

It depends on your employer’s policies and local laws. Even if you have technical access, extracting network credentials from a company-owned device without permission may violate acceptable use policies. Always check with your IT department first.

Why is the Key Content line empty on Windows?

An empty Key Content line usually means the profile does not contain a recoverable plain-text password, or you lack the necessary permissions. Running Command Prompt as administrator is required. If it is still empty, the network may have been connected to using a certificate or enterprise authentication rather than a simple pre-shared key.

Can I export all saved Wi-Fi passwords at once?

Windows allows you to export all wireless profiles to an XML file using netsh wlan export profile, but the passwords are not included in plain text unless you add key=clear to individual profile exports. macOS and Linux do not provide a one-click export of all plain-text Wi-Fi passwords for security reasons.

Conclusion

Forgetting a Wi-Fi password is frustrating, but it is rarely a permanent problem. Because modern devices remember the networks they join, the answer to How to Get Wifi Password? is usually already stored on your computer, phone, or tablet. You just need to know where to look.

This guide covered the most effective methods for Windows, macOS, Android, iOS, iPadOS, and Linux, as well as the router admin panel alternative. Whether you prefer a graphical interface like Keychain Access or the Settings app, or you are comfortable using the Command Prompt and Terminal, there is a method that fits your skill level.

As you retrieve saved passwords, remember to do so ethically and legally. Only access networks you own or have permission to manage. Once you have the password, consider storing it in a password manager, labeling your router, or setting up a guest network so you are not caught off guard the next time a new device needs to get online.

With the steps outlined here, you should be able to recover your saved Wi-Fi credentials quickly and get all your devices connected without unnecessary stress.