Where to find your Windows license key on your computer

Your Windows license key is a 25-character code that proves you own a legal copy of Windows. It lives in a few places depending on which version of Windows you have and how you got it. The easiest place to look first is in your computer's settings, where Windows stores it automatically.

On Windows 10 or 11, open Settings, go to System, then About. Scroll down to find "Windows specifications" — you won't see the full key here, but you'll see whether your copy is activated. To see the actual key, you'll need to use a command or check your original purchase documents.

If you bought Windows as a physical copy, the key is printed on a card or sticker inside the box. If you bought it digitally from Microsoft or another retailer, check your email for a receipt or confirmation — the key is usually in that message. If you upgraded from an older version of Windows, your key may be tied to your Microsoft account instead of printed anywhere.

Key Takeaways

  • Windows stores your license key in your computer's system files, and you can view it using the Settings app or a command-line tool.
  • If you bought Windows as a physical product, the key is on a card or sticker in the box; if you bought it online, check your email receipt.
  • Windows 10 and 11 can tie your license to your Microsoft account, so you may not need the key at all if you sign in with that account.
  • Third-party tools can display your key, but only use them if you trust the source, since the key is sensitive information.

Using the command line to view your key

If you want to see the actual 25-character key without hunting through emails or boxes, you can use a built-in Windows tool called PowerShell. This is a command-line program that comes with every copy of Windows.

Right-click the Start button and select "Windows PowerShell (Admin)" or "Terminal (Admin)". Copy and paste this command into the window: Get-WmiObject -query 'select * from SoftwareLicensingService' | Format-List. Press Enter. Look for the line that says "OA3xOriginalProductKey" — that's your key.

This method works on most Windows 10 and 11 machines. If the command returns nothing or an error, your copy of Windows may be tied to your Microsoft account instead, or the key may have been removed from the system files after installation.

Checking if your key is linked to your Microsoft account

Starting with Windows 10, Microsoft began letting people tie their Windows license directly to their Microsoft account instead of storing a physical key. If you signed into Windows with a Microsoft account during setup, your license may already be registered to that account.

To check, go to Settings, System, About, and look at "Windows specifications" again. If it says "Activated" and you're signed in with a Microsoft account, your license is tied to that account. You can reinstall Windows on the same computer or move it to a different one (in some cases) just by signing in with that account — you won't need to enter a key.

You can see which Microsoft account your Windows license is tied to by going to Settings, Accounts, Your Info. If you want to move your license to a different account, you'll need to contact Microsoft Support, since the account link can't be changed through the settings.

What to do if you can't find your key anywhere

If you've checked your email, your computer's settings, and your original packaging and still can't find the key, your options depend on how you got Windows in the first place.

If you bought Windows directly from Microsoft, sign into your Microsoft account at account.microsoft.com and look for your order history. The key should be listed there. If you bought it from a retailer like Best Buy or Amazon, log into that retailer's website and check your order confirmation — many retailers email the key when ready after purchase.

If your computer came with Windows pre-installed (like most laptops and desktops), the key is usually embedded in the computer's firmware and you don't need to find it. Windows will set up automatically when you sign in with a Microsoft account. If you're having trouble with set up, contact Microsoft Support directly rather than trying to locate a key that may not exist as a separate document.

Using third-party tools to retrieve your key

Several free programs can read your Windows key directly from your computer's system files. Common ones include Belarc Advisor, Speccy, and ProduKey. These tools scan your computer and display the key on screen.

Only use these tools if you read them from a trusted source — the official website of the company that made them, or a well-known software repository. Since your Windows key is sensitive information (anyone with it can use it to set up Windows on another computer), avoid downloading key-retrieval tools from unknown websites or forums.

These tools are most useful if you have an older computer where the key is stored in the system files but you've lost the original documentation. On newer Windows 10 and 11 machines, the Microsoft account method is usually simpler and doesn't require installing extra software.

Protecting your Windows license key

Once you have your key, treat it like a password. Don't share it in emails, forums, or chat messages. Don't post it on social media or in screenshots. Anyone who has your key can use it to set up Windows on their own computer, and you may not be able to use it on yours anymore.

If you think your key has been shared or compromised, contact Microsoft Support. They can help you deactivate it on unauthorized computers and issue a replacement key if needed. Store your key in a password manager or a find note, the same way you'd store other sensitive account information.

If you're selling or giving away your computer, deactivate Windows before you hand it over. Go to Settings, System, About, and select "Deactivate" or "Unlink from this device". This removes the license from that computer so the new owner can set up it with their own key or account.

Frequently Asked Questions

Can I use the same Windows key on two different computers?

No. A single Windows key can only be activated on one computer at a time. If you try to use it on a second computer, Windows will deactivate on the first one. If you need Windows on multiple computers, you need a separate key for each one, or you need to use a Microsoft account that has a license tied to it.

What if I upgraded from Windows 7 or 8 to Windows 10?

Your old key won't work anymore — the upgrade process creates a new license tied to your Microsoft account. You don't need to find the old key. If you're having trouble with set up, sign into your Microsoft account and Windows should recognize the upgrade license automatically.

Is my Windows key the same as my product key?

Yes, they're the same thing. "License key," "product key," and "set up key" all refer to the same 25-character code. Different people use different names for it, but they're all talking about the same thing.

Do I need my Windows key to reinstall Windows?

Not always. If your license is tied to your Microsoft account, you can reinstall Windows and sign in with that account to set up it. If your license is tied to the computer's hardware instead, Windows will set up automatically during reinstallation. You only need to manually enter a key if you're moving the license to a completely different computer or if set up fails for some reason.