Many users are familiar with the situation of needing to connect a new device to the network but forgetting the access key. Fortunately, operating systems and routers store connection history For easy re-authorization. This allows you to quickly restore access without having to reset your router or find your ISP contract. Modern devices securely encrypt this data, but if you have physical access to the device, it can be easily retrieved.
There are several proven ways to find a forgotten key, depending on your hardware and operating system. You can find the information directly in the Windows or macOS settings, use a mobile phone with administrator rights, or access the router's control panel. Android And iOS offer their own unique protection and viewing mechanisms, which are also worth exploring in detail. It's important to understand that you'll need administrator rights to perform most operations.
In this guide, we'll cover current methods for all popular platforms. We won't use third-party software of dubious origin, but rather rely on the system's built-in tools. This ensures the security of your data and eliminates the risk of malware infection. Let's look at where exactly it's stored. WPA2-PSK key and how to calculate it correctly.
Finding saved networks in Windows 10 and 11
operating system Windows For decades, it stores profiles of all networks your computer has ever connected to. Even if you haven't used a particular access point in a while, its credentials may still be stored in the registry. To view the password for the currently active connection, simply use the standard network connections interface.
Open the Start menu and start typing "Control Panel," then go to "Network and Internet." Next, select "Network and Sharing Center" and click the name of your current connection (the blue link). In the status window that opens, click "Wireless Network Properties," go to the "Security" tab, and check "Show characters as you type."
⚠️ Important: If the "Security" tab is grayed out or menu items are hidden, make sure your account has administrator rights. Without them, the system will not allow you to view sensitive data.
However, this method only shows the password for one currently active network. If you need to find the key for another network from history, you'll have to use the command line. This is a more powerful tool that allows you to manage all saved profiles. Enter cmd in search, run as administrator and use the command netsh wlan show profiles to display a list of all known networks.
To see the password itself, enter the command netsh wlan show profile name="Network_Name" key=clearIn the "Security Settings" section, the "Key Content" field will display the code you're looking for. This is a universal method that works on all versions of Windows from 7 to 11.
Using the command line for deep analysis
Command line (CMD) or PowerShell provide access to deep network stack settings. This is especially useful if the graphical interface isn't working correctly or if you need to quickly export data. System administrators often use this method to test configurations on multiple workstations.
To obtain complete information about all profiles at once, you can use a batch command. It will list all networks and their keys in text format if you run the script accordingly. However, for a one-time view, knowing the query syntax for a specific profile is sufficient.
netsh wlan export profile key=clear folder="C:\WiFi_Passwords"
This command exports XML files of all profiles to the specified folder. Each file will contain the password in clear text. This is convenient for backing up your settings before reinstalling the system.
Risks of using third-party utilities
Many programs that promise to "recover all passwords in one click" contain adware or Trojans. Using built-in Windows tools (netsh) is completely safe and doesn't require installing additional software, which is critical for corporate security.
Please remember that once you have received the necessary data, it is best to delete or securely encrypt the file with the exported profiles. Storing passwords in clear text on disk reduces the overall security of your network. Use disk encryption (BitLocker) to protect such files.
How to find out your password on macOS
In the ecosystem Apple All passwords, including Wi-Fi keys, are stored in iCloud Keychain (Keychain). This is a centralized and secure storage location, accessible through the Keychain Access app. You can find it via Spotlight (Cmd+Space) or in the Applications -> Utilities folder.
Select the "Passwords" category in the list on the left. Find the name of your wireless network in the list that appears. Double-clicking on it will open the properties window. Check the "Show password" box. The system will ask you to confirm the action by entering your macOS account password or using Touch ID.
| Action | Where to find | Requirements |
|---|---|---|
| View active | System Preferences -> Wi-Fi | FaceID / Password |
| History of all networks | Keychain | Admin password |
| Data export | File -> Export Elements | No (for plist) |
On newer versions of macOS (Ventura, Sonoma), the process has been simplified. Now you can simply go to "System Preferences," select "Wi-Fi," click "More Details" next to a known network, and you'll see a password field hidden by dots. Clicking it initiates biometric verification and displays the code.
If you've forgotten the password for your macOS account itself, restoring access to the keychain will be extremely difficult, as it's the primary data protection mechanism. In such cases, the only option is to reset the network settings, which will require re-entering the keys for all access points.
Viewing passwords on Android smartphones
On mobile devices running Android The situation depends on the operating system version. Starting with Android 10, Google introduced a convenient password sharing feature via QR code, which effectively allows you to see the access key itself. Previously, this required permissions. root, but now there is no need for this.
Go to "Settings" -> "Connections" (or "Network & Internet") -> "Wi-Fi." Tap the gear icon next to the network you're connected to or saved. Select "QR code" or "Share."
- 📱 A QR code for connecting another device will appear on the screen.
- 🔑 A text password is often (but not always) written below the code.
- 📸 If there is no text, take a screenshot and scan the code with any scanner app.
Some manufacturers, such as Samsung, Xiaomi or Pixel, may implement this interface differently. In some shells, the password is hidden behind asterisks even in the QR code menu. In this case, you can use third-party QR code readers to view the contents.
For devices without a QR code screen or on older versions of Android, you can try the path /data/misc/wifi/wpa_supplicant.confHowever, access to this directory is only possible with superuser (root) rights. Without root rights, the system will block access to the configuration file for security reasons.
Restoring access via the router interface
If none of the connected devices can display the password (for example, they've all been forgotten and new ones haven't been connected yet), the last reliable option is to access the router's settings. To do this, the device (PC or phone) must be connected to the router via cable or Wi-Fi (even without internet access).
Open your browser and enter the gateway IP address. This is usually 192.168.0.1 or 192.168.1.1The address is often written on a sticker on the bottom of the router, along with the login and password for accessing the admin panel. If you've changed your login password and forgotten it, you'll have to reset it using the reset button. Reset on the body.
⚠️ Note: Resetting your router using the Reset button will return all settings to factory defaults. Your ISP may have specific settings (PPPoE, VLAN) that you'll need to re-enter. Make sure you have your contract with your ISP handy.
After logging into the control panel (interfaces TP-Link, ASUS, Keenetic (They look different, but the logic is the same.) Find the "Wireless," "Wi-Fi," or "Wireless Network" section. The current password will be listed in the "Password," "WPA Pre-Shared Key," or "Security Key" fields. You can copy it or change it to a new one.
☑️ Check before resetting your router
In some modern routers with cloud services support (for example, Keenetic or Tenda) The password can be viewed through the manufacturer's mobile app if the router was previously linked to an account. This even works remotely if the router has internet access.
iOS Features: Can You See Your Password?
Long time mobile operating system iOS from Apple It was notoriously private: users couldn't view saved Wi-Fi passwords. However, starting with iOS 16, this feature was added and became available in the default security settings.
To view your password, go to "Settings" -> "Wi-Fi." Tap the blue information icon (the letter "i" in a circle) next to the desired network. In the "Password" line, tap the hidden dots. The system will prompt you for Face ID, Touch ID, or your device's passcode, then display the text and offer to copy it.
This feature syncs via iCloud Keychain. This means that if you've ever connected your iPhone to a network, the password is preserved, even if you're currently in another country. The key is to ensure your device is updated to the latest software version.
For devices running iOS 15 and earlier that don't have the update feature, there's no direct way to view your password. The only option is to use a Mac with the same iCloud account (via Keychain, as described above) or view your password on another Apple device running iOS 16+.
Why don't older iPhones have a passcode?
Apple only implemented this feature in iOS 16 for security and system architecture reasons. In older versions, user access to the keystore was completely blocked, and there was no legal way around it.
It's important to note that for this feature to work, two-factor authentication must be enabled on your iPhone. This is an additional security measure that prevents thieves from accessing your data if your unlocked phone is stolen.
Frequently Asked Questions (FAQ)
Is it possible to find out a neighbor's Wi-Fi password using special programs?
Legally, no. Programs that promise to "hack" Wi-Fi are most often viruses or dummy programs. They can exploit WPS vulnerabilities, but this feature is often disabled or protected on modern routers. Attempting unauthorized access to someone else's network is prohibited by law.
What should I do if the netsh command says "Access denied"?
This means you've launched the command prompt as a standard user. Right-click "Command Prompt" or "PowerShell" and select "Run as administrator." Without elevated privileges, viewing security keys is impossible.
Where is the Wi-Fi password file stored on Android?
System file wpa_supplicant.conf is located in the directory /data/misc/wifi/. Access to the folder /data Only processes with root privileges have access to this file. Without root privileges, this file cannot be read by standard file managers.
I reset my router, but still can't connect to the internet. What should I do?
After resetting, the router is "clean" and doesn't know how to connect to your ISP. You need to find the connection type (PPPoE, L2TP, IPoE) and network access username/password in your ISP contract and re-enter them in the router settings.
Is it safe to save passwords in iCloud or Google account?
Yes, it's considered secure. Data is encrypted during transmission and storage. The risk of losing passwords due to a forgotten piece of paper or a simple text file on your computer is much higher than the risk of a hacked secure cloud storage service from a major vendor.