Where your Windows CD key actually is

Your Windows CD key — the 25-character code that proves you own a copy of Windows — is usually stored in one of three places: on a sticker attached to your computer, in your Microsoft account, or embedded in your hardware if you bought the machine with Windows pre-installed.

If you bought Windows on a physical disc, the key is printed on the back of the case or on a card inside. If you bought it digitally from Microsoft, the key is tied to your Microsoft account and you can retrieve it by signing in. If your computer came with Windows already installed, the key is burned into your motherboard's firmware, and Windows can read it automatically — you may never need to type it in manually.

The method you use to find your key depends on which of these three situations matches yours. Knowing which one applies saves you time and prevents you from looking in the wrong place.

Key Takeaways

  • Physical copies have the key printed on the case or inside the box; digital purchases store the key in your Microsoft account under your sign-in credentials.
  • Pre-installed Windows on a new computer stores the key in your motherboard firmware, and you can view it using built-in Windows tools without needing the original packaging.
  • You can retrieve a lost key from your Microsoft account by signing in at account.microsoft.com and checking your digital purchases or devices.
  • Third-party tools like Belarc Advisor or Speccy can read your key from your system, but only if Windows is already running and activated on that machine.
  • If you cannot find your key and cannot prove you own a copy, you will need to purchase a new license rather than reactivate an old one.

Checking your Microsoft account for a digital purchase

If you bought Windows directly from Microsoft online, your key is stored in your account. Go to account.microsoft.com and sign in with the email address you used to make the purchase. Once you are signed in, look for a section labeled "Services & subscriptions" or "Digital purchases" — the exact name varies by account type.

In that section, you should see Windows listed along with the purchase date and a button to view or retrieve your key. Click it, and your 25-character code will appear. You can copy it and save it somewhere safe, like a password manager or a document stored on a secure drive.

If you do not see Windows listed in your account, the purchase may have been made under a different email address. Try signing in with any other Microsoft accounts you use, or check your email receipts from the time of purchase to confirm which address was used.

Finding the key on a physical disc or box

If you have the original Windows installation disc or the box it came in, the key is printed somewhere on the packaging. Look on the back of the case, on a card tucked inside, or on a sticker attached to the disc itself. The key is always a 25-character code made up of letters and numbers, usually formatted in five groups of five characters separated by hyphens.

Write the key down or photograph it clearly before you need it. Store a copy in a safe place — a password manager, a locked document, or a physical notebook kept in a secure location. If the original packaging is lost or the printing has faded, you will need to use one of the other methods to retrieve your key.

Reading the key from your computer's firmware

If Windows came pre-installed on your computer when you bought it, the key is stored in your motherboard's firmware and Windows can read it without you ever typing it in. To view this key, you need a tool that can access your system information.

The simplest built-in method is to open PowerShell as an administrator. Press the Windows key, type "PowerShell", right-click on "Windows PowerShell", and select "Run as administrator". Then paste this command and press Enter:

wmic path softwarelicensingservice get OA3xOriginalProductKey

If your key is stored in firmware, it will appear on the next line. If nothing appears, the key may not be retrievable this way — either it is not stored in firmware, or your version of Windows does not support reading it through this method. In that case, try the next approach.

Using third-party tools to find your key

Several free programs can read your Windows key directly from your running system. Belarc Advisor and Speccy are the most widely used. Both are free to download and run, and both display your key in their main window once they scan your system.

Download Belarc Advisor from belarc.com or Speccy from ccleaner.com/speccy. Install and run the program — it will scan your computer and display detailed system information, including your Windows key. Copy the key and store it safely.

These tools only work if Windows is already running and activated on your machine. They cannot recover a key if Windows is not installed, if the installation is corrupted, or if the key has been removed from the system. They also cannot retrieve a key from a different computer — they read only the machine they are running on.

What to do if you cannot find your key

If you have looked in all three places — your Microsoft account, your physical packaging, and your system — and found nothing, you have a few options. First, check your email receipts and bank statements from the time you bought Windows. These often contain proof of purchase, which Microsoft can use to verify your ownership and help you retrieve your key.

If you have no proof of purchase, you can contact Microsoft Support directly. Go to support.microsoft.com and search for "Windows product key". Microsoft's support pages include a chat option where you can explain your situation. They may be able to help if you can prove you own the computer or the license in other ways.

If none of these work, you will need to purchase a new Windows license. This is the most straightforward path if you have lost all documentation and cannot prove ownership. You can buy Windows directly from Microsoft, from authorized retailers, or from your computer manufacturer.

Protecting your key once you find it

Once you have located your key, store it securely. Do not leave it written on a sticky note on your monitor or in an unencrypted document on your desktop. Instead, save it in a password manager like Bitwarden, 1Password, or KeePass, where it is encrypted and protected by a strong master password.

You can also store it in a secure note-taking app like Standard Notes or Joplin, both of which offer encryption. If you prefer a physical copy, write it in a notebook and store that notebook in a locked drawer or safe.

Keep your key separate from your computer. If your machine is stolen or fails, you still have a record of your license. If someone gains access to your key, they could potentially use it to activate Windows on another machine, so treat it with the same care you would give a password.

Frequently Asked Questions

Can I use the same Windows key on multiple computers?

No. A single Windows key is licensed for one computer only. If you try to use the same key on a second machine, Windows will detect the duplicate and may deactivate on one or both computers. If you need Windows on multiple machines, you need separate keys for each one.

What if my computer is broken and won't turn on?

If the computer will not start, you cannot use the PowerShell method or third-party tools. Your only options are to check the physical packaging or your Microsoft account. If you have neither, you may need to purchase a new license. If the hard drive is still readable, a technician might be able to recover the key using specialized tools, but this is not a standard process.

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

No. Your Windows key is tied to your license and should be treated like a password. Sharing it allows someone else to use your license, which violates Microsoft's terms and may result in your copy being deactivated. Keep your key private.

Do I need my key if I reinstall Windows on the same computer?

If your key is stored in your motherboard firmware, Windows will find it automatically during reinstallation and you will not need to type it in. If your key is not in firmware, you will need to enter it during setup. Having your key written down prevents delays if the automatic detection does not work.

What does it mean if the PowerShell command returns nothing?

It means your key is not stored in your motherboard firmware, or your version of Windows does not support reading it this way. Try using Belarc Advisor or Speccy instead, or check your Microsoft account or physical packaging. Some older computers and some versions of Windows do not store keys in firmware.