Your Windows license key is usually in one of three places: on a sticker attached to your device, in your Microsoft account, or embedded in your computer's firmware
The location depends on how you got Windows. If you bought a physical copy or a pre-built computer, look for a sticker on the device itself — often on the bottom, back, or inside the battery compartment. If you bought Windows directly from Microsoft or upgraded through Windows Update, your key is tied to your Microsoft account instead. If your computer came with Windows already installed (most laptops and desktops do), the key may be stored in your device's BIOS or UEFI firmware and doesn't appear anywhere you can see it.
Finding your key matters when you need to reinstall Windows, move it to a different computer, or troubleshoot activation problems. The method you use depends on which type of key you have and what you're trying to do.
Key Takeaways
- Physical stickers on your device or its packaging hold the license key for retail copies and pre-built computers — check the bottom, back, or inside the battery compartment first.
- Microsoft account holders can view their Windows license key by signing into account.microsoft.com and checking the Devices section.
- Many modern computers have the license key embedded in firmware rather than printed anywhere, and Windows will reactivate automatically when you reinstall it on the same device.
- Command-line tools like wmic or PowerShell can retrieve the key from your current Windows installation, though the key may be partially obscured.
- If you cannot find your key and need to reinstall Windows, contact Microsoft Support with proof of purchase — they can often help you recover or replace it.
Check the physical sticker on your device or packaging
The most straightforward place to look is the sticker attached to your computer. For laptops, check the bottom, back panel, or inside the battery compartment. For desktop computers, look on the back or side of the tower. For pre-built systems, the sticker may also be on the original box or documentation that came with the computer.
The key appears as a 25-character code in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX, where X is a letter or number. Write it down exactly as it appears, including the hyphens. If the sticker is worn, faded, or missing, move to the next method.
Look in your Microsoft account
If you bought Windows directly from the Microsoft Store or upgraded through Windows Update, your license is stored in your Microsoft account rather than on a physical sticker. Sign into your account at account.microsoft.com using the email and password you use for Windows.
Once logged in, go to the Devices section. You should see a list of computers linked to your account. Click on the device you need the key for, and look for the license information. The key may be displayed in full, or Microsoft may show only the last five characters. If you need the complete key for reinstallation, you can contact Microsoft Support from this page and provide proof of purchase.
Use command-line tools to retrieve the key from your current installation
If you have Windows running on the computer right now, you can pull the license key directly from the system using built-in tools. This works whether or not you have the physical sticker or remember your Microsoft account details.
Open Command Prompt as Administrator. Right-click the Start button, select "Terminal (Admin)" or "Command Prompt (Admin)", and confirm the permission prompt. Then type this command and press Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
The key will appear on the next line. Write it down carefully — some characters can be hard to read on screen. If nothing appears, your computer may have the key embedded in firmware instead (see the next section).
Alternatively, you can use PowerShell. Right-click the Start button, select "Windows PowerShell (Admin)", and run this command:
powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
Both methods retrieve the same information — use whichever one you're more comfortable with.
Understand firmware-embedded keys on modern computers
Most computers sold in the last five years have the Windows license key embedded directly in the device's BIOS or UEFI firmware. This key is not printed on a sticker and does not appear in your Microsoft account. Instead, it is tied permanently to that specific computer's hardware.
If you have a firmware-embedded key, you do not need to find or enter it manually. When you reinstall Windows on the same computer, it will detect the key automatically during setup and activate without asking you to type anything. This is actually simpler than older methods, but it also means the key cannot be moved to a different computer.
To check whether your key is firmware-embedded, run the command-line tool mentioned above. If nothing appears, or if you see a message about no key being found, your license is in the firmware. You can confirm this by going to Settings > System > About and looking for "Windows is activated with a digital license linked to your hardware."
What to do if you cannot find your key
If you have looked everywhere and still cannot locate your key, start by checking your email for a receipt or confirmation from Microsoft. Search for "Windows" or "product key" in your email inbox, including spam and archived folders. The receipt often contains the key or a link to retrieve it.
If you have the original packaging or documentation, check those as well. Sometimes the key is printed on a separate card inside the box rather than on the computer itself.
If you still have no luck, contact Microsoft Support. Go to support.microsoft.com, search for "recover product key," and follow the prompts to chat with a support agent. Have your proof of purchase ready — a receipt, credit card statement, or order confirmation. Microsoft can often retrieve or replace your key if you can verify that you own a legitimate copy of Windows.
Protect your key once you find it
Once you have located your license key, store it somewhere safe. Write it down in a notebook, save it in a password manager, or store a photo of the sticker in a secure location. Do not share your key with anyone or post it publicly online.
If you are reinstalling Windows and the setup asks for your key, you can enter it during installation. If you are moving Windows to a new computer, you will need the key to reactivate on the new device. Keeping it in a safe place means you will not have to search for it again later.
Frequently Asked Questions
Can I use the same Windows key on two different computers?
It depends on the type of key. Retail keys can be transferred between computers, but you can only use them on one device at a time. OEM keys (sold with pre-built computers) are locked to the original hardware and cannot be moved. Digital licenses tied to your Microsoft account work on any device you sign into with that account, but Windows will only be activated on one device at a time.
What if the sticker on my computer is damaged or unreadable?
Use the command-line method described above to pull the key from your current Windows installation. If that does not work, your key is likely embedded in firmware. Contact Microsoft Support with proof of purchase, and they can help you retrieve it or provide a replacement.
Do I need my product key to reinstall Windows on the same computer?
Not always. If your key is embedded in the device's firmware or tied to your Microsoft account, Windows will reactivate automatically during reinstallation. If you have a retail key on a physical sticker, you will need to enter it during setup. When in doubt, have your key ready before you start the reinstall.
Is my Windows key the same as my Microsoft account password?
No. Your product key is a 25-character code that proves you own a copy of Windows. Your Microsoft account password is what you use to sign into your account. They are completely separate. You need the product key to activate Windows, and you need your account password to access your Microsoft account.
What should I do if someone asks for my Windows key online?
Do not share it. Legitimate Microsoft support agents will never ask you to provide your key in an email, chat, or phone call. If someone contacts you claiming to be from Microsoft and asking for your key, it is a scam. Hang up or close the chat and contact Microsoft directly through their official website instead.