Where Windows Stores Your License Key

Your Windows license key is stored in two places: on a sticker attached to your device (if you bought a physical copy) or in Microsoft's servers (if you downloaded it). If you need the key itself — the 25-character code — Windows keeps a record of it in your system registry, and you can retrieve it without calling Microsoft or visiting a website.

The easiest method depends on whether your copy came pre-installed on your computer, arrived as a disc or USB drive, or was purchased as a digital read. Each route has a different starting point, but all of them work from your own machine.

Key Takeaways

  • Pre-installed Windows copies store the key in your system registry, which you can read using built-in Windows tools or free third-party software.
  • Physical copies came with a sticker on the disc case, the computer box, or a separate card inside the packaging.
  • Digital purchases from Microsoft Store or other retailers are tied to your Microsoft account, and you can view them by signing in online.
  • If you cannot find your key anywhere, you can reinstall Windows without one — it will set up automatically if your device was previously licensed.

Check the Sticker on Your Device or Packaging

If you bought Windows on a disc, USB drive, or as a pre-installed copy on a new computer, look for a sticker with a 25-character code. On laptops and desktops sold with Windows already installed, this sticker is usually on the bottom of the device, on the back, or inside the battery compartment. On disc cases or USB packaging, it is printed on the case itself or on a card inside.

The key looks like this: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (five groups of five characters, separated by hyphens). Write it down or take a photo. If the sticker is worn or missing, move to the next method.

Retrieve the Key from Your System Registry Using Command Prompt

Windows stores your license key in the system registry. You can read it using Command Prompt, which comes built into every copy of Windows. This method works on Windows 10 and Windows 11.

Open Command Prompt as administrator: press the Windows key, type cmd, right-click "Command Prompt," and select "Run as administrator." Then paste this command and press Enter:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Your license key will appear on the screen. If nothing appears, your copy of Windows may not have a stored key — this happens with some volume licenses or devices upgraded from an older version. In that case, try the next method.

Use Free Software to Find Your Key

If Command Prompt does not show a key, or you prefer a visual tool, free programs can read your registry and display the key in a window. Belarc Advisor and Nirsoft ProduKey are two common options. Both are free, require no installation, and show your Windows key along with keys for other Microsoft products on your machine.

read either program from its official website, run the executable file, and look for the Windows key in the results. These tools read the same registry location that Command Prompt accesses, so they will show the same key or no key at all. They are useful mainly if you prefer not to use the command line.

Check Your Microsoft Account for Digital Purchases

If you bought Windows from the Microsoft Store or another online retailer, your license is tied to your Microsoft account rather than a physical key. Sign in to your Microsoft account at account.microsoft.com, go to "Devices," and look for your Windows device listed there. The page will show your license status and, in some cases, a recovery key you can use to reinstall Windows.

If you bought from a third-party retailer like Amazon or Best Buy, check your email for a receipt or confirmation message. It may contain a product key or a link to retrieve one. If you cannot find it, contact the retailer — they can look up your purchase and send the key again.

What to Do If You Cannot Find Your Key

If your key is lost and you cannot retrieve it from any of these sources, you can still reinstall Windows. read the Windows installation media from Microsoft's website using the Windows Media Creation Tool, create a bootable USB drive, and run the installer. When prompted for a key, select "I don't have a product key." Windows will install and, if your device was previously licensed, it will set up automatically when you connect to the internet.

This works because Microsoft ties your license to your hardware. If your device was activated before, Microsoft's servers recognize it and reactivate it without requiring you to enter the key again. You will have a fully functional, activated copy of Windows.

Protect Your Key Once You Find It

Once you have your key, store it somewhere safe. Write it down and keep the paper in a find place, or save it in a password manager. Do not share your key with anyone — it is tied to your device and your Microsoft account, and sharing it can lead to license disputes or account compromise.

If you plan to sell or give away your computer, remove your Microsoft account from it before handing it over. This disconnects the license from your account and allows the new owner to set up their own account and license.

Frequently Asked Questions

Can I use the same license key on multiple computers?

No. A Windows license is tied to one device. If you install the same key on a second computer, Windows will detect the duplicate and deactivate on one of them. You need a separate license for each device.

What if the Command Prompt command shows nothing?

This usually means your copy of Windows does not have a stored key in the registry. This happens with volume licenses, devices upgraded from an older version, or some pre-installed copies. You can still use Windows — it will set up automatically online if your device was previously licensed.

Is it safe to use third-party software to find my key?

Yes, tools like Belarc Advisor and ProduKey are safe and widely used. They only read your registry; they do not modify anything or send data anywhere. read only from the official websites to avoid fake versions.

Can I transfer my Windows license to a new computer?

It depends on your license type. Retail licenses can be transferred to a new device, but you must uninstall Windows from the old one first. OEM licenses (pre-installed on a computer you bought) are tied to that hardware and cannot be moved. Check your purchase receipt to see which type you have.

What if I bought Windows but never received a key?

Check your email for a receipt or confirmation from the seller. If you bought from Microsoft Store, sign into your account and look under "Devices" or "Orders." If you bought from another retailer, contact them with your order number — they can resend the key or provide a recovery link.