Your product key is usually on a sticker, in your email, or built into your computer

Where your Windows product key lives depends on how you got Windows. If you bought a physical copy, look for a sticker on the box or inside the case. If you bought it online, check the email receipt from Microsoft or the retailer. If Windows came pre-installed on your computer, the key is often embedded in the hardware itself and Windows can retrieve it automatically. The location matters because some keys are easier to find than others, and some don't need finding at all.

The method you use to find your key also depends on what you need it for. If you are reinstalling Windows on the same computer, you may not need the key at all. If you are moving Windows to a different machine or troubleshooting activation, you will need to know where to look and what form the key takes.

Key Takeaways

  • Physical copies have a sticker with a 25-character key; digital purchases send the key to your email receipt or Microsoft account.
  • Pre-installed Windows on new computers usually stores the key in the firmware, and you can view it without opening anything.
  • You can check what key Windows thinks is installed right now using built-in tools like PowerShell or third-party software.
  • If you cannot find your key and need to reinstall Windows, you may be able to reactivate using your Microsoft account instead.
  • Keeping a record of your product key in a safe place prevents scrambling to find it later if you need to reinstall.

Finding a key from a physical Windows box or disc

If you bought Windows on a disc or USB drive in a box, the product key is printed on a sticker. Look on the back of the box first — most manufacturers put it there. If not, open the box and check inside the case or on the documentation. The key is always 25 characters long, formatted as five groups of five letters and numbers separated by hyphens, like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Write the key down or photograph it before you install Windows. Once you have the key, you can install Windows on any computer, but you can only activate it on one machine at a time. If you lose the physical sticker, you have lost the key — there is no way to recover it from Microsoft. Keep the original box or case in a safe place as a backup.

Finding a key from an email receipt or Microsoft account

If you bought Windows online from Microsoft, a retailer like Amazon, or a reseller, the product key was sent to your email. Search your inbox for emails from Microsoft, the retailer, or the reseller's name. Look for subject lines like "Your Windows product key", "Order confirmation", or "Download your software". The key will be in the email body or in an attachment.

If you bought Windows through a Microsoft account, you can also log into account.microsoft.com, go to your Services & subscriptions or Digital content, and find Windows listed there with the option to view or copy the key. This is the most reliable place to look if you have a Microsoft account and cannot find the original email. Save the key somewhere safe once you locate it.

Retrieving a key that is already installed on your computer

If Windows is already running on your computer and you need to know what key is installed, you can view it without opening anything. The easiest method is to use PowerShell, which is built into Windows. Right-click the Start button, select "Windows PowerShell (Admin)" or "Terminal (Admin)", and paste this command:

powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"

Press Enter, and Windows will display the 25-character key on the next line. This works on most computers, though some manufacturers modify Windows in ways that hide the key. If the command returns nothing, try a third-party tool like Belarc Advisor or ProduKey, which scan your system and display the key in a window. Write down or photograph the key once you see it.

Checking the firmware on pre-installed Windows computers

If Windows came pre-installed when you bought your computer, the product key is usually stored in the firmware (the permanent memory that runs before Windows starts). You do not need to find a physical key or dig through emails — Windows can read it automatically when you activate.

To see if your key is in the firmware, open Settings, go to System, then About, and look for "Product ID" or "Product Key Status". If it says "Windows is activated with a digital license linked to your hardware", your key is in the firmware and you do not need to enter it manually. If you reinstall Windows on the same computer, Windows will recognize the hardware and reactivate without asking for a key. This is the simplest scenario because the key is tied to your device, not to a separate code you have to manage.

What to do if you cannot find your product key

If you have lost the physical key, cannot find the email, and the PowerShell command returns nothing, you have two options. First, check with the retailer or manufacturer — if you bought the computer or Windows recently, they may have a record and can send you the key again. Second, if you set up a Microsoft account on the computer before losing the key, you may be able to reactivate Windows using that account instead of the key itself.

To reactivate with a Microsoft account, go to Settings, System, Activation, and select "Sign in with a Microsoft account instead". Windows will verify your account and reactivate without needing the key. This works only if you have already activated Windows once on that computer with that account. If Windows has never been activated, you will need the key or a new purchase.

Storing your product key safely

Once you have found your key, write it down or take a photo and store it somewhere you will remember. A password manager like Bitwarden, 1Password, or KeePass can store the key securely and sync it across your devices. You can also print it and keep it with important documents, or store a photo in cloud storage like OneDrive or Google Drive.

Do not email the key to yourself in plain text or post it anywhere public. If someone else has your key, they can use it to activate Windows on their own computer, though they cannot use it on the same computer as you at the same time. Treat it like a password — keep it private and keep a backup in case you need it later.

Frequently Asked Questions

Can I use the same product key on two computers?

No. A standard Windows product key can only activate one computer at a time. If you try to activate a second computer with the same key, the first one will lose activation. If you need Windows on multiple computers, you need multiple keys or a volume license agreement.

What if my product key does not work when I try to activate?

Check that you typed it correctly — keys are case-insensitive but hyphens must be in the right places. If it is correct and still fails, the key may have already been used to activate another computer, or it may be invalid. Contact the retailer or Microsoft support with proof of purchase to investigate.

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

Not always. If your computer came with Windows pre-installed, the key is in the firmware and Windows will reactivate automatically. If you bought a separate copy, you will need the key to reinstall unless you can reactivate with a Microsoft account.

Is there a way to recover a lost product key from Microsoft?

Microsoft does not recover lost keys. If you have the original receipt or proof of purchase, contact the retailer or Microsoft support — they may issue a replacement key if they can verify the purchase. Otherwise, the key is gone and you would need to purchase Windows again.

What is the difference between a product key and a digital license?

A product key is the 25-character code you enter to activate Windows. A digital license is Microsoft's record that your hardware or account is authorized to use Windows. Pre-installed computers use digital licenses tied to the hardware instead of keys you have to enter manually.