Excel can open .txt files directly, but the result depends on how the text is formatted

When you open a text file in Excel, the program reads the content and tries to fit it into cells. If your text file uses commas, tabs, or other separators between values, Excel can split those values into separate columns automatically. If it's plain text with no separators, everything lands in the first column. The process is straightforward, but you have choices about how Excel interprets what it sees.

The most common route is to use Excel's Text Import Wizard, which appears when you open a .txt file. This tool lets you preview how your data will look and adjust the column layout before the file actually opens. You can also drag a .txt file directly into an open Excel window, or use the File menu to open it — each method produces slightly different results.

Key Takeaways

  • Opening a .txt file in Excel triggers the Text Import Wizard, where you can choose how to split columns based on commas, tabs, spaces, or other separators.
  • If your text file uses consistent separators (like commas between values), Excel can detect this automatically and split the data into columns in the preview.
  • You can open a text file by going to File > Open, selecting the .txt file, or by dragging the file directly into an Excel window.
  • After import, the data stays in Excel format only if you save it as .xlsx or .xls — saving it as .txt again will overwrite the original file.

Opening a text file using File > Open

Start Excel and go to File in the top-left corner. Click Open (or press Ctrl+O on Windows, Command+O on Mac). In the dialog that appears, navigate to the folder where your text file is stored. By default, the file browser shows only Excel files (.xlsx, .xls). Change the file type dropdown at the bottom to Text Files (.txt) or All Files to see your text file.

Select the .txt file and click Open. The Text Import Wizard will appear. This is where you tell Excel how to interpret the content. In Step 1, choose the file origin (usually UTF-8 or the default for your system). In Step 2, select the delimiter — the character that separates columns. Common options are Tab, Comma, Space, or Semicolon. You can see a preview of how your data will split into columns at the bottom of the window. Once the preview looks correct, click Finish.

Dragging a text file into Excel

If Excel is already open, you can drag a .txt file from your file explorer (Windows) or Finder (Mac) directly into the Excel window. This also triggers the Text Import Wizard with the same options as the File > Open method. The advantage is speed if you already have Excel running and can see both the file location and Excel on your screen at the same time.

The drag-and-drop method works the same way on both Windows and Mac. After you drop the file, the Text Import Wizard appears, and you follow the same steps to choose delimiters and preview the result. If the wizard does not appear, your file may not have a .txt extension — check the filename and try renaming it to end with .txt if needed.

Understanding delimiters and column splitting

A delimiter is the character that tells Excel where one column ends and the next begins. The most common delimiters are commas (used in CSV files), tabs, and spaces. When you open a text file, the Text Import Wizard shows you a preview of how the data will split. If your file has a comma between each value, select Comma as the delimiter and watch the preview update to show the data in separate columns.

If your text file has no consistent separator — for example, it is just sentences or paragraphs — leave all delimiters unchecked. The entire content will land in column A, and you can manually reorganize it in Excel afterward if needed. You can also select multiple delimiters at once. For example, if some values are separated by commas and others by tabs, check both boxes and Excel will treat either character as a column break.

Saving your text file as an Excel file

After you open and edit the text file in Excel, you need to save it in a format Excel recognizes if you want to keep the formatting and formulas. Go to File > Save As. In the dialog, change the file type from Text (Tab delimited) or CSV to Excel Workbook (.xlsx) or Excel 97-2003 Workbook (.xls) depending on which version you need.

If you save the file back as .txt, Excel will warn you that some features may be lost and ask if you want to keep the text format. If you click Yes, the file saves as plain text and any formatting, formulas, or multiple sheets will be removed. Most of the time, you want to save as .xlsx to preserve your work. Only save as .txt if you specifically need to share the file with a program that only reads text files.

Handling common problems when opening text files

If the Text Import Wizard does not appear when you open a .txt file, the file may not have the correct extension. Right-click the file, select Rename, and make sure it ends with .txt. If it does and the wizard still does not appear, try opening Excel first, then using File > Open to select the file manually.

If your data looks jumbled in the preview — for example, all values are in one column when they should be split — you chose the wrong delimiter. Go back to Step 2 of the wizard and try a different option. If your text file contains special characters or text in a language other than English, the file origin setting in Step 1 matters. Try UTF-8 first, but if the characters look wrong, go back and select a different encoding from the dropdown.

If Excel opens the file but the columns are too narrow to see all the content, double-click the border between column headers to auto-fit the width. If numbers appear as text (left-aligned instead of right-aligned), select the column and use the Data menu to convert text to numbers, or simply re-open the file and make sure you did not accidentally select Text as the column format in Step 3 of the wizard.

When to use other methods instead

If you work with text files regularly and want more control over the import process, consider using Power Query (in Excel 2016 and later). Go to Data > Get Data > From File > From Text/CSV. This gives you more detailed options for handling encoding, delimiters, and data types before the file opens in your worksheet.

If your text file is very large (more than 100,000 rows), opening it in Excel may slow down your computer. In that case, consider using a dedicated text editor or a database program designed for large datasets. Google Sheets also opens .txt files and may perform better with very large files, though it has its own row limits.

Frequently Asked Questions

What is the difference between opening a .txt file and a .csv file in Excel?

Both trigger the Text Import Wizard, but Excel assumes .csv files are comma-separated by default and may skip the wizard entirely if it detects commas. A .txt file has no assumed format, so the wizard always appears to let you choose the delimiter. The end result is the same if you select the correct delimiter in both cases.

Will opening a text file in Excel change the original file?

No. Opening a file does not change it. Only if you save the file in Excel format or overwrite the .txt file when saving will the original change. If you want to keep the original .txt file untouched, use Save As and give it a new name or save it as .xlsx.

Can I open a text file that has no file extension?

Yes. In the File > Open dialog, change the file type dropdown to All Files instead of just Excel files. You can then select any file, including those without an extension. Excel will still try to open it, and the Text Import Wizard will appear so you can choose how to interpret the content.

What happens if I open a text file with special characters or non-English text?

The Text Import Wizard's Step 1 includes a file origin dropdown. If the characters look wrong after opening, go back and try a different encoding like UTF-8, ISO-8859-1, or the encoding specific to your language. The preview updates as you change the setting so you can see which one displays the text correctly.

Can I open multiple text files at once in Excel?

You can open them one at a time using File > Open, or you can select multiple .txt files in your file explorer and drag them all into Excel at once. Each file will open in its own Excel window or tab, depending on your settings. You will need to go through the Text Import Wizard for each file.