How to Find the WiFi Code on a Computer: Complete Methods for Windows and macOS

It's a common occurrence when friends come over with new devices and you suddenly forget your wireless network password. Manually re-entering a long, complex key if you don't have it written down anywhere becomes a real hassle. Fortunately, Windows and macOS operating systems save credentials for automatic connections by default, and they can be retrieved using standard tools.

In this article, we'll cover all the current methods for recovering a forgotten password, from the Windows 10 and 11 graphical interface to advanced command line methods. Data security This is important, so accessing these settings requires administrator rights, preventing keys from being stolen by unauthorized individuals with physical access to your PC. You'll learn how to find the saved code even for networks your computer isn't currently connected to.

Finding a password through network settings in Windows 10 and 11

The easiest and fastest way to find your WiFi password is to use the operating system's graphical interface. This method doesn't require complex commands or third-party software. The "Settings" interface in modern versions of Windows has become more user-friendly, but accessing saved passwords still requires several clicks.

To get started, you need to open the Start menu and go to Settings (gear icon). Then, select a category. Network and Internet and find the item Wi-FiIf you want to view the password for the currently active network, click on Properties or Managing known networksIn the window that opens, scroll down to the "Network Properties" link (in Windows 11) or "Status" (in Windows 10), where the information you're looking for is located.

In the window that opens, find the "Network Security Key" field. By default, the characters are hidden with asterisks to protect them from prying eyes. To see the actual password, check the "Show characters" checkbox. The system may prompt you to confirm administrator rights or enter a PIN, which is standard procedure. privacy protection.

⚠️ Attention: If the "Display characters" field is unavailable (grayed out) or missing, this may mean your account doesn't have administrator rights, or you're trying to view the password for a network the computer has never connected to. In this case, use the command line methods.

It's worth noting that in some enterprise builds of Windows, access to these settings may be blocked by group security policies. In this case, local administrator Network security prevents regular users from viewing saved keys. However, for home PCs, this method works reliably in 99% of cases.

📊 How often do you forget your WiFi passwords?
Once a month
Only when guests come
Never, everything is written down
Constantly, I use one password

Using the Command Prompt (CMD) for Windows

For users who prefer command line If you can't use the graphical interface, there's a powerful tool called netsh. This method not only allows you to see the password for the current network, but also displays a list of all WiFi networks ever saved on your computer, along with their keys.

To use this method, press the key combination Win + R, enter cmd and press Enter. It's best to run the command prompt as administrator to avoid access rights issues. First, list all profiles to find the exact name of the network you need by entering the command:

netsh wlan show profiles

Once you see the list of networks, find the desired name (SSID) in it. Then use the command to display detailed profile information, including the security key. Replace "Network_Name" with the actual name of your WiFi:

netsh wlan show profile name="Network_Name" key=clear

In the command output, find the "Security settings" section. The "Key Content" line will contain your password in cleartext. This method is especially useful if the Windows graphical interface is not working correctly or is frozen.

☑️ Check before entering a command

Completed: 0 / 4

If you enter the command incorrectly, the system will return a syntax error. This method also allows you to export profiles to XML files, which is convenient for backing up settings before reinstalling the system.

How to view your WiFi password on macOS

Apple Mac owners may also need to recover their passwords. In macOS, this information is stored in Keychain Access, a secure storage area for passwords and certificates. It can be accessed through standard system utilities.

Open Spotlight Search (Cmd + Space) and type "Keychain Access." Launch the app. In the left pane, select the "Passwords" category. Find the name of your wireless network in the list. Double-click it to open its properties.

In the window that opens, check the "Show password" box. The system will ask you to enter your macOS account password (the username and password of the user you're logged in with). After confirming, you'll see the code in the text field next to the checkbox.

What should I do if Keychain Access won't open?

If the Keychain app doesn't launch or displays an error, the keychain file may be corrupted. Try restarting your Mac in Safe Mode. Also, check that iCloud Keychain is synced; sometimes the password can be found on the connected iPhone in the WiFi settings.

For users of macOS Ventura and newer, the path may be slightly different. The system now allows you to view passwords directly in Settings: go to System Preferences → Wi-Fi, find the desired network and click on the "three dots" icon or the "More details" button, where there will also be an option to copy the password after biometric authorization (Touch ID).

Viewing the password through the router's web interface

If the computer isn't connected to the network or the password was recently changed and isn't saved on the computer, the only source of truth is the router itself. To do this, you need to access its administrative panel. This method is universal and doesn't depend on your computer's operating system.

Connect your computer to the router using a LAN cable or WiFi (if the password is still valid on other devices). Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address, login, and password for entry are usually indicated on a sticker on the bottom of the device.

After authorization (the standard pairs are often admin/admin or admin/password), find the section responsible for the wireless network. It may be called Wireless, Wi-Fi, Wireless mode or WLANIn the "Security" or "Basic Settings" subsections, there will be a "Password/Key" field that can be changed or simply copied.

Router brand Typical IP address WiFi settings section
TP-Link 192.168.0.1 Wireless → Wireless Security
ASUS 192.168.1.1 Advanced settings → Wireless network
D-Link 192.168.0.1 Wi-Fi → Security Settings
Keenetic 192.168.1.1 My Networks and WiFi → Home Network
Tenda 192.168.0.1 Wireless Settings → Wireless Security

Firmware interfaces are constantly updated, and menu locations may change. If you can't find the item you need, consult your model's documentation or use the settings search within the web interface.

⚠️ Attention: If you change the password in the router's web interface, all connected devices will lose internet connection. You'll have to re-enter the new code on each smartphone, tablet, and laptop. Make sure you have access to these devices before changing settings.

Special utilities and third-party software

There are many programs that automate the password recovery process. They scan the Windows registry or system files and display a list of all saved networks in a convenient format. However, using such software requires caution, as many antivirus programs may detect them as malicious. potentially unwanted programs (Potentially Unwanted Programs) because they deal with sensitive data.

One of the popular utilities is WirelessKeyView from NirSoft. This portable program requires no installation. It instantly displays the SSID, encryption type, and keys of all networks. Another option is WiFi Password Revealer, which has a more modern interface, but may contain ads in the free version.

When using third-party software, always download it from the developer's official website. Files from untrusted sources may contain Trojans or miners. Furthermore, such programs often require disabling your antivirus software while running, which temporarily reduces security. level of protection systems.

Restoring access if the password is completely lost

If none of the above methods help (for example, you changed the password, didn't save it, and none of the devices are connected to the network), there's a radical but effective solution: resetting the router to factory settings. This will reset the login and password to the values ​​listed on the router's label.

To do this, find the button on the back panel of the router. Reset (often recessed into the case). Press it with a paperclip or toothpick and hold for 10-15 seconds until the lights flash. After rebooting, the router will operate with factory security settings, which are often unlocked or have a default password.

After the reset, you'll need to reconfigure your internet connection (PPPoE, L2TP, or DHCP, depending on your provider). If you don't know your internet connection details, contact your provider's technical support before performing the reset.

FAQ: Frequently Asked Questions

Is it possible to find out a WiFi password if the computer is not connected to it?

Yes, if the computer has ever connected to this network and saved the profile. In Windows, this can be done via the command line (netsh command), even if the network is currently out of range. If the profile was deleted or the computer is new, it is impossible to find the password without access to the router or another connected device.

Is it safe to save passwords in Windows?

Yes, it's secure, as the data is stored encrypted and accessible only to users with administrator rights. However, if attackers with administrator rights gain physical access to your computer, they can extract this data. Use a strong Windows login password.

What should I do if the "Show characters" field is inactive?

This means you don't have administrator rights on this computer. You'll need to ask the PC owner for the password or use the command prompt method (if you have the appropriate password).

Is it possible to recover a password via an Android phone?

On Android 10 and later, you can view the password for your current network. Go to WiFi settings, tap the gear icon next to your active network, and select "Share" or QR code. The QR code often displays the text password below it, or you can scan it with a QR code scanner.