How to Find Your Microsoft Office Product Key on Windows

How to Find Your Microsoft Office Product Key on Windows

To find your Microsoft Office product key, start with your purchase records and the account linked to Office. Modern Office installations do not display the full 25-character key inside Word or Excel. If your goal is to reinstall Office, signing in with the correct account will often get you further than a key finder.

This guide explains where to look for an Office product key, how to check the last five characters of an installed key, and when Microsoft 365 requires a different approach. The command examples are for Windows PCs.

Share your love

To find your Microsoft Office product key, start with your purchase records and the account linked to Office. Modern Office installations do not display the full 25-character key inside Word or Excel. If your goal is to reinstall Office, signing in with the correct account will often get you further than a key finder.

This guide explains where to look for an Office product key, how to check the last five characters of an installed key, and when Microsoft 365 requires a different approach. The command examples are for Windows PCs.

Quick answer: Where can you find your Office product key?

The best method depends on how you obtained Office. A retail purchase, a Microsoft 365 subscription, and an Office installation managed by your employer can use different activation methods.

Your situationBest place to startWhat you can find
Microsoft 365 subscriptionThe personal, work, or school account associated with the subscriptionYour subscription or assigned license, rather than a reusable installation key
Office 2024, 2021, or 2019 linked to a Microsoft accountYour Microsoft account’s Services & subscriptions pageThe purchased product and available installation options
A purchase supplied with a product keyThe original key card, purchase email, or retailer order detailsThe complete key, if it was provided with the purchase
Office volume license at workYour IT administrator or the OSPP licensing scriptOrganizational licensing information and, with OSPP, the installed key’s last five characters

A full Office product key has five groups of five characters, for example XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. Seeing only the final five characters is enough for some identification tasks, but those characters cannot be used as a complete activation key.

Check which Office version and account you are using

Before choosing a recovery method, it helps to identify the product installed on the PC. Office 2024 and Microsoft 365 can both include Word and Excel, so the application icons alone do not tell you how the software is licensed.

  1. You can start Word or Excel and open a blank document.
  2. Under File > Account, look at the Product Information section.
  3. Make a note of the product name and any activation message.
  4. If a Belongs to entry appears, note the associated email address.
  5. About Word or About Excel shows additional version information, including whether Office is 32-bit or 64-bit.

The Office architecture matters when choosing a command path later in this guide. A PC running 64-bit Windows can still have 32-bit Office installed.

Find your Office license through your Microsoft account

For an Office purchase already associated with a personal Microsoft account, the account is usually the starting point for reinstallation. This also applies to many one-time purchases of Office 2024, Office 2021, and Office 2019. You do not need to extract a key from the old computer just to locate the product in your account.

Step 1: Sign in with the account linked to Office

In your browser’s address bar, you can enter account.microsoft.com/services. You can then sign in with the account used to buy or redeem Office. If the existing installation shows an email address under Belongs to, that is a useful starting point.

If you have forgotten the password and previously saved it in your browser, our guide explains how to view saved passwords in your browser. If no saved password is available, Microsoft’s account recovery process is the next option.

Step 2: Locate the purchased Office product

On the Services & subscriptions page, look for your Office purchase or Microsoft 365 subscription. Depending on the current page layout, the section may be labeled Subscriptions. An Install or Manage option can lead to the installation files or subscription details.

If Office is missing, consider whether you used another personal email address for the purchase. A work or school license is managed separately and may require the account provided by your organization.

Step 3: Reinstall the product associated with the account

You can use the installation option for the listed product, then sign in to an Office app when prompted. For example, if your account contains Office Home & Business 2021, that product’s installation option is the appropriate choice. The edition you install needs to match the license in your account.

A visible Show product key button is not a universal feature of Microsoft accounts. Its absence does not mean your license has disappeared. Some older purchase arrangements and certain Microsoft Store orders have their own key-viewing options, but account access and installation options are the more useful checks for most readers.

Where to look for the complete 25-character Office key

If you specifically need the original purchase key, the purchase records are the next place to look. The key might have been supplied separately from the computer, and a working Office installation does not guarantee that it can reveal the original code.

  • Your purchase confirmation email may include a product key or a link to order details.
  • A physical Office package may contain a product key card.
  • Your retailer account may retain the original software order and any supplied download or key information.
  • Some Microsoft Store purchases offer key information through the relevant order details.
  • Older purchases through Microsoft’s Workplace Discount Program may have a separate order page containing the key.

Searching your own mailbox for the retailer’s name, the Office edition, and the approximate purchase date can be more useful than searching only for “product key.” Some messages contain an order reference and a download link without placing the key directly in the email.

For an organization-owned volume license, your IT department is the appropriate contact. Authorized administrators can find volume license keys in the Microsoft 365 admin center under Billing > Your products > Volume licensing > View downloads and keys. Access requires a suitable volume licensing role.

View the last five characters of an Office key with Command Prompt

Microsoft’s OSPP.VBS script can display licensing information for supported Office installations. It is used for volume editions such as Office LTSC 2024 and Office LTSC 2021. Microsoft also documents it for identifying installed keys in older retail versions, including Office 2019 and Office 2016.

The following method displays a partial key. It does not recover the complete purchase key. For current Microsoft 365 Apps activation, use the separate PowerShell method later in this guide.

Step 1: Open Command Prompt as an administrator

You can search the Start menu for cmd, choose Run as administrator for Command Prompt, and confirm the Windows permission prompt. The commands below use Command Prompt syntax, including environment variables such as %ProgramFiles%.

Step 2: Use the path that matches your Office installation

Microsoft documents Microsoft Office\root\Office16 as the script location for current volume editions. This example uses the normal Program Files folder for 64-bit Office.

cscript OSPP.vbs dstatus

That folder also applies to 32-bit Office on 32-bit Windows:

cscript "%ProgramFiles%\Microsoft Office\root\Office16\OSPP.VBS" /dstatus

For 32-bit Office installed on 64-bit Windows, the corresponding example is:

cscript "%ProgramFiles(x86)%\Microsoft Office\root\Office16\OSPP.VBS" /dstatus

Some installations use a path without root. If the script is located there, the appropriate alternative is one of these commands:

cscript "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" /dstatus
cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\OSPP.VBS" /dstatus

You only need to run the command matching the actual script location. The quotation marks enclose the file path and end before /dstatus. Also, the Office16 folder name is used by several Office releases, so it does not identify the product as Office 2016 by itself.

Step 3: Read the licensing result

Look for the license name, license description, activation status, and the line showing the last five characters of the installed product key. A shortened example, with the key characters replaced, looks like this:

LICENSE STATUS: ---LICENSED---
Last 5 characters of installed product key: XXXXX

The suffix can help distinguish installed keys when you maintain a record of several licenses. If several entries appear, the license name helps you identify the Office product you are investigating.

The additional option /dstatusall lists information for all installed licenses. It does not change how many key characters you can recover.

What if Windows cannot find OSPP.VBS?

A script-not-found message usually calls for checking the path. In File Explorer, you can look in the relevant Microsoft Office folder and confirm whether the installation uses root\Office16 or Office16. For an older Office 2013 installation, Microsoft’s examples use Office15.

A missing script is not proof that Office is unlicensed. The installation layout, Office architecture, and licensing method all matter. If the product is Microsoft 365 Apps, OSPP is not the current tool for checking its subscription activation.

Check a Microsoft 365 license with PowerShell

Microsoft 365 Apps uses a different activation system from traditional Office retail licenses. Microsoft provides a diagnostic tool called vnextdiag.ps1 that can display information about installed products and their activation status.

The diagnostic tool is located in the Microsoft Office installation directory. For most 64-bit installations, you can find it in C:\Program Files\Microsoft Office\Office16. Computers running 64-bit Windows with 32-bit Office typically use C:\Program Files (x86)\Microsoft Office\Office16 instead.

PowerShell Office Key

You can open Windows PowerShell, navigate to the appropriate directory, and run the diagnostic script using its -action list parameter. The results may include the product name, license type, activation status, and email address associated with the license.

Unlike traditional Office product key utilities, this method does not reveal a reusable 25-character activation key. It is primarily intended for checking licensing information and troubleshooting activation problems.

For a normal Microsoft 365 reinstallation, signing in with the account associated with your subscription is usually sufficient. You can also find your activation information in Word or Excel under File > Account.

Can an Office key finder recover the full product key?

The ability to recover an Office product key depends on the installed version and the licensing method. Modern Office installations often do not store the original purchase key in a form that third-party utilities can retrieve.

Some older Office versions are supported by utilities such as NirSoft ProduKey. However, compatibility with Office 2003, Office 2007, or Office 2010 does not guarantee support for newer releases such as Office 2021 or Office 2024.

Before using a key finder, check which Office versions the developer officially supports. Also remember that a Product ID, a partial key, and a complete activation key are different things. Finding license information on your computer does not necessarily mean you can recover the original product key.

Can the Windows Registry reveal an Office key?

The Registry is not a dependable shortcut to the full key for a modern Office installation. Older tutorials often describe decoding a DigitalProductID value. That procedure should not be assumed to work for your Office version or installation type.

A Registry entry may contain licensing information without storing a recoverable product key. There is no need to change Registry values to identify the account linked to Office or run the licensing checks in this guide.

Why the installed Office key may not match your purchase record

Office can use different keys at different stages of purchase and activation. Microsoft explains that a key associated with an Office product can differ from the original code on a retail card or email receipt. A mismatch is therefore not, by itself, evidence that you purchased the wrong product.

Business installations add another possibility. Volume editions configured for Key Management Service, commonly called KMS, can use a generic volume license key. That key identifies an activation configuration and is not a unique retail purchase key belonging to the person using the PC.

When comparing records, consider the Office edition, account, purchase information, and activation method together. The final five characters are a useful clue, but they are not a complete record of the license.

Windows product key commands do not retrieve Office keys

The frequently shared PowerShell query for OA3xOriginalProductKey reads a firmware-based Windows key when one is available. It does not retrieve the key for Word, Excel, or the Office suite. Windows and Office are licensed separately.

If you are actually looking for the operating system’s key, our guide explains how to find your Windows product key. For Office, use the account, purchase records, or Office licensing tools described above.

Practical tip: Keep an Office license record before reinstalling

Before replacing a PC or removing Office, it is useful to collect the information you would need to restore the installation. A short record can save you from repeating the same investigation later.

  • The exact Office product and edition, including its year if applicable.
  • The personal Microsoft account or work account associated with the license.
  • The purchase receipt, retailer, and order reference.
  • The original product key, if one was supplied and you still have it.
  • The last five installed key characters, if you need them for a license inventory.

Keep the record in a secure place that remains accessible if the old PC fails. For an account-linked purchase, being able to sign in and locate the correct Office product is a more useful preparation check than simply recording a partial key.

FAQ - Finding your Microsoft Office product key
AI-generated illustration, not an original screenshot.

FAQ: Finding your Microsoft Office product key

Is the Office Product ID the same as the product key?

No. A Product ID identifies product or installation information. The activation key is a separate code with 25 characters arranged in five groups. A License ID reported by a diagnostic tool is also a separate identifier and cannot be entered as a product key.

Why does Office say my product key has already been used?

This message normally means the key has already been redeemed and linked to an account. You can sign in with that account to install the associated product. Repeatedly entering the same code on the setup page will not create another license.

Can I reinstall Office if my old PC no longer starts?

For an account-linked Office purchase, you can access the product from another computer by signing in to the correct account. The old PC does not need to start for that account lookup. Any installation on a replacement PC still needs to follow the device and transfer conditions of your license.

Does Office preinstalled on a new PC include a license?

Not necessarily. Preinstalled apps may offer a trial or ask you to purchase or activate Office. A paid Office bundle may instead use a digital activation process without a printed key. The computer purchase details and the activation information in Office help establish what was included.

Why is there no Install option in my Microsoft 365 account?

You may be signed in with a different account from the one associated with Office. For a work or school account, the plan must include the desktop apps, and an administrator must assign the relevant license and allow installation. Your IT team can check those settings.

Can Microsoft 365 still come with a product key?

Yes. A retail purchase or renewal card can include a code that you redeem to add or renew a subscription on an account. After redemption, that account manages the subscription. The code is not a key you repeatedly extract from each installed Office app.

Share your love
Michael Heine
Michael Heine

Michael Heine, born in 1965, turned his passion into a profession. He has worked in the IT industry for more than 40 years and specializes in all aspects of the Microsoft ecosystem. Since 2007, he has been running the Windows-FAQ blog, where he has published more than 5,000 articles, tutorials, and how-to guides covering Windows, Microsoft 365, Office, and many other Microsoft technologies.

Articles: 7

Stay informed and not overwhelmed, subscribe now!