logo
search
File Format & Compatibility

How to Fix Documents Opening in Notepad Instead of Word or Excel

Natalie TaylorNatalie Taylor Sep 28, 2026 871 views

Question details

The user needs to resolve an issue where document files open in Notepad instead of their respective Microsoft Office applications.

How to Fix Documents Opening in Notepad Instead of Word or Excel
Product
Microsoft Office
Device & OS
Windows
Scenario
Attempting to open a document like a Word or Excel file directly from the Windows file explorer.
Observed behavior
The document incorrectly opens in Notepad, often displaying garbled text and code, rather than launching in Word or Excel.
Before you start

Verify that Microsoft Office or a compatible office suite is actually installed and activated on your computer, as Windows may default to Notepad if the required application was uninstalled.

Solution 1Recommended

Restore File Associations using the Open With Menu

Use this method to manually reassign the default application for specific file types directly from the file explorer.

Windows relies on file associations to know which program to use when you double-click a file. If these associations are corrupted or reset, you can easily redefine them using the context menu.

1
Right-click the document

Locate a Word or Excel document that is currently opening in Notepad, right-click on it, and hover over the 'Open With' option.

2
Choose another app

Click on 'Choose another app' from the extended menu to view a list of available programs on your computer.

3
Select the correct Office application

Select Microsoft Word (for .docx files) or Excel (for .xlsx files) from the list. If it's not visible, scroll down and click 'More apps' to find it.

4
Enable the permanent association

Check the box that says 'Always use this app to open files' (or similar wording depending on your Windows version), then click 'OK'.

Restore File Associations using the Open With Menu
File Association Restored: The selected file type will now automatically open with the correct Office application every time you double-click it.
Free Microsoft Office alternative

Open Your Documents Seamlessly with WPS Office

If your Microsoft Office installation is corrupted or you're looking for a completely free, highly compatible alternative, WPS Office is the perfect solution. It automatically configures proper file associations, ensuring your Word, Excel, and PowerPoint files open correctly every time.

  1. 1. Download and install: Download the free WPS Office installer from the official website and run it on your Windows PC.
  2. 2. Set as default: During installation or upon first launch, allow WPS Office to set itself as the default program for Word, Excel, and PowerPoint files.
  3. 3. Open your files: Simply double-click any of your existing documents. They will instantly open in WPS Office with perfectly preserved formatting.
Fully compatible with all Microsoft Office formats (.docx, .xlsx, .pptx)Free, lightweight, and extremely fast-loading suiteFamiliar user interface allowing for a seamless transitionIncludes Writer, Spreadsheet, and Presentation in one single tabbed window
microsoft office alternative - wps office

Frequently Asked Questions

Why did my Word documents suddenly start opening in Notepad?

This usually happens when Windows default app settings get reset due to a system update, a glitch in the registry, or if the original Microsoft Office application was accidentally uninstalled or corrupted.

Will opening my Excel file in Notepad ruin my data?

No. Notepad simply reads the raw code of the file, which is why it looks like garbled text. Your actual data is safe. Once you open the file in the correct application like Excel or WPS Spreadsheet, it will display normally.

What if Microsoft Word or Excel doesn't appear in the 'Open With' list at all?

If the applications are missing from the list, scroll down and select 'Choose another app on this PC' to manually locate the executable file (usually found in C:\Program Files\Microsoft Office). If you can't find it there, your Office installation might be uninstalled, and you will need to reinstall it or use an alternative like WPS Office.

How can I change the default program for all my documents at once?

You can manage all defaults by going to Windows Settings > Apps > Default apps. From there, you can choose 'Choose default apps by file type' and manually assign .docx to Word and .xlsx to Excel.