How to Find the Wi-Fi Code on a Laptop: A Complete Guide

It's quite common to need to connect a new device to a wireless network but have forgotten the password. Fortunately, if your laptop is already connected to the router or has connected to one before, the operating system has saved this information in its internal storage. Access to the security key It is possible using standard system tools without using third-party software.

The data recovery procedure depends on the operating system installed. In the environment Windows the data is hidden in the network profile, whereas in macOS They are protected by iCloud Keychain or local password storage. The encryption key is stored in clear text only after authorization by the system administrator.

In this guide, we'll detail the steps for various OS versions and cover how to access the router control panel if your computer doesn't have an active connection. You'll learn how to use the command line to quickly retrieve data and where to find hidden security settings.

Finding a password in Windows 10 and 11 using the graphical interface

The easiest way to find out the access code is to use the standard network settings. This method doesn't require entering complex commands and is suitable for most users who need to quickly find forgotten data. The settings interface in Windows 10 And Windows 11 It differs slightly, but the logic of actions remains the same.

To get started, open the Start menu and go to "Settings" (the gear icon). Then select "Network and Internet." In the window that opens, look for the "Network and Sharing Center" link, or simply "Properties" for your current connection. You'll need to find the "Wireless Network Properties" button.

⚠️ Note: If you are using a corporate laptop, access to the security tab may be blocked by your system administrator via group policies.

After opening the network properties window, go to the "Security" tab. This is where the encryption type and security key are displayed. By default, characters are hidden behind asterisks. To see them, check the "Show entered characters" box. The system may request administrator privileges to confirm this action.

📊 What version of Windows do you have?
Windows 10
Windows 11
Windows 7/8
macOS / Linux

Using the Command Line to Extract Keys

For more advanced users or in cases where the graphical interface does not work correctly, it is ideal command lineThis method displays all saved profiles and their passwords in plain text. It's especially useful when you need to find the password for a network the laptop isn't currently connected to, but has connected to in the past.

Launch the Command Prompt as administrator. To do this, right-click the Start button and select Windows Terminal (Administrator) or search for cmd In the search bar, right-click and select "Run as administrator." The first step is to view a list of all saved networks.

Enter the command netsh wlan show profiles and press Enter. Find the desired network name (SSID) in the list. Then, use the following syntax to display the details of a specific profile, replacing "Network_Name" with the actual name of your router:

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

In the report that opens, scroll down to the "Security Settings" section. The "Key Contents" line will contain the password you're looking for in cleartext. This method works reliably on all modern versions of Windows, including server editions.

☑️ Check before entering a command

Completed: 0 / 4

Recovering access to a MacBook (macOS)

For laptop owners Apple You need to proceed differently because the macOS password storage architecture is built on the Keychain system. This secure storage encrypts all your logins and passwords. Accessing them requires user account confirmation.

Open the Keychain app. You can find it through Spotlight (by clicking Cmd + Space) or in the "Applications" → "Utilities" folder. In the left column, make sure the "Passwords" category is selected. Find the name of your Wi-Fi network in the list. Double-clicking the network name will open the properties window.

Check the "Show Password" box. The system will immediately ask for your macOS username and password (or Touch ID). After successful authentication, a text passcode will appear in the field next to the checkbox. If you use iCloud Keychain, the password can also sync to your iPhone.

  • 🔑 Open Keychain via Spotlight search.
  • 🔑 Find the name of your wireless network in the list.
  • 🔑 Check the "Show password" box and enter your Mac password.

Viewing data through the router's web interface

If your laptop is connected to the router via cable or Wi-Fi, but the operating system isn't displaying the password for some reason (for example, due to registry errors), you can access the router's settings. To do this, open a browser and enter the gateway IP address.

Typically the address looks like this 192.168.0.1 or 192.168.1.1The exact address is often indicated on a sticker on the bottom of the device. After entering the address in the browser's address bar, the system will ask for your username and password to access the control panel. If you haven't changed them, try the default combinations: admin/admin.

Interfaces vary greatly between manufacturers, but the search logic is the same. You need to find the section related to wireless mode. It may be called "Wireless," "Wi-Fi," "Wireless Network," or "WLAN." Within this section, look for the "Security" or "WLAN Settings" subsection.

Router brand Typical entry address Settings section Standard login
TP-Link 192.168.0.1 Wireless -> Wireless Security admin
ASUS 192.168.1.1 Wireless Network -> WPS admin
D-Link 192.168.0.1 Wi-Fi -> Security Settings admin
Keenetic my.keenetic.net My Networks and Wi-Fi admin
What to do if the address 192.168.1.1 does not open?

If the default address isn't working, the gateway IP address may have changed. Open the command prompt and enter ipconfig. Find the "Default Gateway" line—this is your router's address. Also, check that the Ethernet cable is connected or that the Wi-Fi connection is working.

Types of encryption and their impact on security

When viewing network properties, you may encounter abbreviations WEP, WPA, WPA2 And WPA3Understanding the difference between them is important not only for connecting but also for assessing the vulnerability of your network. Older encryption protocols can be cracked by attackers in minutes.

The WEP protocol is outdated and extremely insecure. If your router still uses this type of security, it is strongly recommended to change it in the router settings. Modern devices may even refuse to connect to such networks due to the weak security level.

WPA2-Personal (AES) remains the most widely used standard today. It provides sufficient security for home use. The newer WPA3 standard offers improved protection against brute-force attacks, but requires support from all connected devices.

Reset network settings and generate a new key

If none of these methods work, or if you've forgotten your router's admin panel password, there's a radical but effective solution: resetting the device to factory settings. This will erase all user configurations, including the network name and password.

There is a button on the router body Reset (often recessed into the case). To activate, press it with a thin object (like a paperclip) and hold for about 10-15 seconds until the indicators flash simultaneously. After rebooting, the router will operate with the factory settings indicated on the sticker.

After the reset, connect to the router's open network, go to the settings page, and set a new password. Write it down in a safe place. This method ensures you'll have the current access code, as you'll create it yourself.

⚠️ Please note: Resetting your router will temporarily disable internet access for all devices in your home. Your ISP may require re-authorization (PPPoE) if your settings are not saved automatically.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password if the laptop has never connected to it?

No, the operating system doesn't store data about networks the device hasn't connected to. In this case, the only solution is to check the router's sticker, log in to the control panel (if you know the admin password), or reset the router.

Where can I find a QR code to connect to Wi-Fi on Windows?

Windows 11 has this feature built-in: in the Wi-Fi settings, next to the network name, there's a "Show QR code" button. Windows 10 doesn't have this feature; you'll need a third-party app or an NFC-enabled phone (if your router supports it).

Why does the netsh command say "Access Denied"?

This means the command prompt is running as a standard user, not an administrator. Right-click the CMD icon and select "Run as administrator."

Are password recovery programs safe to use?

Using third-party software (such as Wireless Key View) carries risks. Antivirus programs often detect them as potentially unwanted programs. It's better to use built-in OS tools.