Office Settings & Configuration

Set Excel as the Default Program for TXT Files in Windows 10

Jason MillerJason Miller Nov 14, 2026 868 views

Question details

The user wants Windows 10 to open TXT files in Microsoft Excel by default.

Set Excel as the Default Program for TXT Files in Windows 10
Product
Microsoft Excel
Device & OS
Windows 10
Scenario
The user wants to change the default application associated with the .txt file extension.
Observed behavior
TXT files should open in Excel when double-clicked after the default app is changed.
Before you start

Make sure Microsoft Excel is installed on the Windows 10 PC. Have a TXT file available to test the association and check whether its contents are suitable for opening as spreadsheet data.

Solution 1Recommended

Choose Excel as the default app for TXT files

Use Windows Settings to change the application associated with the .txt extension.

1
Open default app settings

Select Start > Settings > Apps > Default apps.

2
Find the TXT extension

Select Choose default apps by file type, then scroll down to .txt.

3
Select Excel

Select the current app next to .txt and choose Microsoft Excel from the list.

4
Test a TXT file

In File Explorer, double-click a TXT file and follow any text import prompts that appear.

Choose Excel as the default app for TXT files
Text files may require import settings: Excel may ask you to choose an encoding or delimiter when opening a TXT file. Opening every TXT file in Excel may not be suitable for documents intended to be read or edited as plain text.
Free Microsoft Office alternative

Open Text and Spreadsheet Files with WPS Office

WPS Office is a free, lightweight, easy-to-use alternative with a familiar interface for working with text and spreadsheet files. Its Office format compatibility helps you move existing files into WPS, although it does not set Microsoft Excel as your Windows default app.

Open TXT data in WPS Spreadsheets for spreadsheet work.Work with Microsoft Excel formats, including XLS and XLSX.Use a familiar interface to help make the move from Microsoft Office easier.Get a free, lightweight office suite for everyday documents.
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't Excel listed as a default app for TXT files?

Excel must be installed, and the available choices depend on its registered file associations. Try right-clicking a TXT file and choosing Open with > Choose another app > More apps to find Excel.

Can I open a TXT file in Excel without changing the default?

Yes. In Excel, select File > Open, browse to the TXT file, and choose it. You may need to change the file type filter to see text files.

Why does Excel ask me to import a TXT file?

Excel may need information such as the file's encoding and delimiter to place text into columns. Follow the import prompts and choose the settings that match your file.

How do I change TXT files back to Notepad?

Go to Settings > Apps > Default apps > Choose default apps by file type, find .txt, and select Notepad as the default app.