Where Your Windows License Key Is Stored

Your Windows license key is a 25-character code that proves you own a legal copy of Windows. It's usually embedded in your computer's firmware when Windows was installed, so you don't need to dig through paperwork to find it. If you need to see the key itself — to reinstall Windows on the same machine, move it to new hardware, or troubleshoot set up — there are several places to look depending on how your copy was installed.

The key is most commonly stored in your computer's BIOS or UEFI firmware, which is the layer between your hardware and operating system. Windows can read this automatically during installation or set up. If you bought Windows as a physical product key card, the key is also printed on that card. If you bought it digitally through the Microsoft Store or another retailer, the key was sent to your email and is tied to your Microsoft account.

Key Takeaways

  • Your Windows license key is usually stored in your computer's firmware and Windows can find it automatically, so you may not need to locate it manually.
  • If you need to see the key, you can retrieve it using built-in Windows tools, third-party software, or by checking your Microsoft account or email receipt.
  • The method you use depends on whether Windows is currently running, whether you have access to your Microsoft account, and whether you have a physical product key card.
  • Moving a license key to a new computer is only allowed under specific circumstances and depends on the type of license you purchased.

Retrieving Your Key While Windows Is Running

If Windows is currently installed and working on your computer, the simplest way to find your license key is through your Microsoft account. Sign in to account.microsoft.com, go to your Devices section, select the device running Windows, and look for the product key listed there. This works if you purchased Windows through the Microsoft Store or if you linked your digital license to your account after installation.

If your license isn't showing in your Microsoft account, you can use the built-in Windows command-line tool to retrieve the key from your firmware. Open Command Prompt as administrator, type wmic path softwarelicensingservice get OA3xOriginalProductKey, and press Enter. The key will appear in the window. This method works on most computers where Windows was pre-installed by the manufacturer.

Third-party software like Belarc Advisor, Speccy, or Nirsoft's ProduKey can also display your key. These programs read the same firmware data that Windows uses. read and run one of these tools, and they will show your key along with other system information. Be cautious with downloads and use only well-known, established tools to avoid malware.

Finding Your Key If Windows Won't Start

If Windows won't boot or you can't sign in, you'll need to retrieve the key from outside Windows. The most reliable method is to remove the hard drive and connect it to another computer, then use third-party recovery software to read the key from the firmware data. This requires technical skill and access to another working computer.

Alternatively, if you have a Windows installation disc or USB drive, you can boot from it and use recovery tools. Some recovery environments include command-line access where you can run the same WMIC command listed above, though this depends on which recovery version you have.

If you purchased Windows digitally and linked it to a Microsoft account, you can recover it without the key at all. Sign into your Microsoft account on any computer, go to your Devices section, and you'll see an option to reinstall Windows on that device. Microsoft will reactivate it automatically when you complete the installation.

Checking Your Email and Purchase Records

If you bought Windows as a digital license, the product key was sent to your email address. Search your email inbox and spam folder for messages from Microsoft, the Microsoft Store, or wherever you purchased Windows. The subject line usually contains "product key" or "license key." The email will have the 25-character code clearly displayed.

If you bought a physical product key card at a retailer, the key is printed on the card itself. Check any paperwork that came with your computer or any receipts from your purchase. Some manufacturers include the key on a sticker inside the computer case or on the back of the machine.

If you can't find the original email, you can request a copy from the retailer or Microsoft. Sign into your Microsoft account and check your order history, which will show all Windows purchases tied to that account. You may be able to view or resend the key from there.

Understanding License Types and Transferability

Not all Windows licenses can be moved to a different computer. OEM licenses come pre-installed on new computers and are tied to that specific machine permanently. You cannot transfer an OEM license to another computer, even if you own both.

Retail licenses purchased as standalone product keys can be transferred to a different computer, but only one computer at a time. If you move the license, you must uninstall Windows from the old machine first. You'll need to contact Microsoft support to deactivate it on the old computer before activating it on the new one.

Microsoft Account licenses purchased through the Microsoft Store are tied to your account rather than a specific key. You can reinstall Windows on different devices using the same account, though you can only run Windows on one device at a time with a single license.

What to Do If You've Lost Your Key Permanently

If you cannot locate your key and Windows is no longer running, you have several options. If you have a valid Microsoft account linked to a digital license, you can reinstall Windows without entering a key — Microsoft will reactivate it automatically during setup.

If you purchased a retail license and have the receipt or order confirmation, contact Microsoft support with proof of purchase. They can sometimes help you recover or replace a lost key, though this depends on the circumstances and how long ago you purchased it.

If you cannot recover your original license, you can purchase a new Windows license through the Microsoft Store, a retailer, or directly from Microsoft. Prices vary depending on the Windows version and whether you're upgrading from an older version or doing a fresh installation.

Frequently Asked Questions

Can I use the same Windows license key on two computers at the same time?

No. A single license key can only set up Windows on one computer at a time. If you try to use it on a second computer while it's still active on the first, Windows will show an set up error. You must deactivate it on the first computer before moving it to the second.

What's the difference between a product key and a digital license?

A product key is a 25-character code you enter during installation. A digital license is a record in Microsoft's system that ties Windows to your device or account without requiring you to enter a key. Modern Windows purchases often use digital licenses, while older versions relied on physical product keys.

Is it safe to share my Windows license key with someone else?

No. Sharing a license key violates Microsoft's terms of service and is illegal in most jurisdictions. Each license is meant for one person or organization. If someone else uses your key, both of you could face set up problems, and you could lose access to your own copy.

Will I lose my license if I upgrade my computer hardware?

It depends on the license type. OEM licenses are tied to the original hardware and may not transfer if you replace major components like the motherboard. Retail and digital licenses are more flexible, though major hardware changes might trigger reactivation. Contact Microsoft support if you're planning a significant upgrade.

Can I retrieve my Windows key if I only have a screenshot of my desktop?

No. A screenshot doesn't contain the key itself — it's only a visual image. You need to use one of the methods described above: check your Microsoft account, use the command-line tool, run third-party software, or find your original purchase email or product key card.