How to Fix Documents Opening in Notepad Instead of Word or Excel
Question details
The user needs to resolve an issue where document files open in Notepad instead of their respective Microsoft Office applications.

- 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.
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.
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.
Locate a Word or Excel document that is currently opening in Notepad, right-click on it, and hover over the 'Open With' option.
Click on 'Choose another app' from the extended menu to view a list of available programs on your computer.
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.
Check the box that says 'Always use this app to open files' (or similar wording depending on your Windows version), then click 'OK'.

Run an Office Quick Repair
Use this method if the Office applications are completely missing from the 'Open With' menu or if multiple file types are broken.
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. Download and install: Download the free WPS Office installer from the official website and run it on your Windows PC.
- 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. Open your files: Simply double-click any of your existing documents. They will instantly open in WPS Office with perfectly preserved formatting.

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.




