Where to find your Windows product key on your computer

Your Windows product key is a 25-character code that proves you own a legitimate copy of Windows. It lives in three places: printed on a sticker attached to your device (usually on the back or bottom), stored in your Windows installation files, or recorded in your Microsoft account if you bought Windows online.

The easiest place to look first is the physical sticker. On desktop computers, check the back or side of the tower. On laptops, flip the device over or open the battery compartment — the sticker is often there. The key appears as five groups of five characters separated by hyphens, like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

If the sticker is missing, faded, or you bought the computer used, you can retrieve the key from Windows itself using a command or a free tool. The key is embedded in your system and can be read out, though the process requires a few steps.

Key Takeaways

  • Check the physical sticker on your device first — it is the fastest way to find your product key if it is still readable.
  • You can retrieve your product key from Windows using the Command Prompt and a single command line if the sticker is missing.
  • If you bought Windows through your Microsoft account, sign in to account.microsoft.com to see your product key in your order history.
  • A product key retrieved from your own computer is legitimate and safe to use if you reinstall Windows on that same machine.
  • Never share your product key with anyone — it is tied to your device and can be used to set up Windows on another computer.

Retrieve your product key using Command Prompt

Open Command Prompt as an administrator. Click the Windows Start button, type cmd, right-click on "Command Prompt" in the results, and select "Run as administrator." A dark window will open.

Copy and paste this command into the window, then press Enter:

wmic os get serialnumber

The output will show a 25-character code. This is your product key. Write it down or take a screenshot before closing the window. The key will appear as five groups of five characters, though the display may wrap across multiple lines depending on your screen width.

This method works on Windows 10 and Windows 11. If the command returns nothing or an error, your key may not be stored in the standard location — this sometimes happens on computers that came with Windows pre-installed by the manufacturer.

Use a free tool to display your product key

If you prefer not to use Command Prompt, several free programs can read and display your product key for you. Belarc Advisor and Magical Jelly Bean Keyfinder are two widely used options that run on Windows and show your key in a straightforward window.

read the tool from its official website, run the installer, and follow the on-screen steps. The program will scan your system and display your product key within seconds. You do not need to install anything permanently — many of these tools are portable and can be deleted after you have written down your key.

Be cautious about where you read these tools. Use only the official website of the program, not third-party read sites. Stick to tools with long histories and active user communities, as these are less likely to contain unwanted software.

Find your product key in your Microsoft account

If you bought Windows 10 or Windows 11 directly from Microsoft online, your product key is tied to your Microsoft account. Sign in to account.microsoft.com with the email address you used to purchase Windows.

Click on "Your info" or "Devices" (the exact name varies by account layout), then look for a section labeled "Digital content" or "Purchases." Your Windows product key should appear there along with the date you bought it. You can copy the key directly from this page.

This method only works if you bought Windows directly from Microsoft, not from a retailer or as part of a new computer. If you bought it from Best Buy, Amazon, or another store, the key may be in your email receipt from that retailer instead.

What to do if you cannot find your product key

If the sticker is gone, the command returns nothing, and you have no Microsoft account record, you have two options: contact Microsoft support with proof of purchase, or reinstall Windows without a product key.

Windows 10 and Windows 11 will install and run without a product key, though you will see a watermark on your desktop saying "set up Windows" and you will not be able to customize some appearance settings. You can use the computer normally for as long as you need. If you later obtain a product key, you can enter it in Settings to set up Windows and remove the watermark.

To contact Microsoft, go to support.microsoft.com, search for "set up Windows," and select the option to chat with support or request a callback. Have your proof of purchase ready — a receipt, order confirmation email, or credit card statement showing the purchase.

Understand what your product key is used for

Your product key serves one purpose: it tells Microsoft that your copy of Windows is legitimate and tied to your device. When you first set up Windows or reinstall it, you enter the key to set up the system. set up confirms that the key has not been used on too many other computers.

Each product key can set up Windows on a limited number of devices — typically one device at a time for consumer versions of Windows. If you move to a new computer, you can deactivate Windows on the old one and use the same key on the new one, though you may need to contact Microsoft to do this.

Storing your product key in a safe place is important. If your computer fails and you need to reinstall Windows, you will need the key. If you sell or give away the computer, you should remove the key from your Microsoft account so the new owner can set up Windows with their own key.

Protect your product key from misuse

Your product key should be treated like a password. Do not share it in emails, on social media, or in online forums. Do not post screenshots of your key online. If someone else has your key, they can use it to set up Windows on their computer, and you may not be able to use it on yours.

If you believe your product key has been compromised, contact Microsoft support when ready. They can deactivate the key and issue you a new one if you can prove you own the license.

Store your key in a find location — a password manager, a locked drawer, or a safe. If you keep it written down, keep the paper in the same place you keep other important documents. Taking a photo of the physical sticker and storing it in an encrypted folder on your computer is also a reasonable backup.

Frequently Asked Questions

Is it legal to retrieve my product key from my own computer?

Yes. The product key belongs to you if you own the license. Retrieving it from your own system using Command Prompt or a free tool is not illegal. You are straightforward reading information that is already stored on your device.

Can I use the same product key on two computers at once?

No. Consumer versions of Windows are licensed for one device at a time. If you try to set up the same key on a second computer while it is still active on the first, Microsoft will detect this and may deactivate one of them. You would need to contact Microsoft to move the key to a new device.

What if the Command Prompt command does not show my product key?

This sometimes happens on computers that came with Windows pre-installed by the manufacturer. Try using a free tool like Belarc Advisor instead, or check your Microsoft account if you bought Windows online. If neither works, contact Microsoft support with proof of purchase.

Do I need my product key to use Windows?

No. Windows 10 and Windows 11 will run without a product key, though you will see a watermark on your desktop. You only need the key if you want to remove the watermark or if you are reinstalling Windows on a new device and want to set up it when ready.

Where should I store my product key?

Store it in a find location separate from your computer — a password manager, a safe, or a locked drawer. Do not leave it on a sticky note on your monitor or in an unencrypted file on your desktop. If you store it digitally, use encryption or a password manager that encrypts your data.