Excel can open plain text files, but the result depends on how the text is formatted

Excel opens .txt files through its import process, which lets you control how the text gets split into columns. If your text file uses commas, tabs, or spaces to separate values, Excel can detect this and arrange the data into a spreadsheet. If it's just plain text with no separators, Excel will put the entire contents into a single column.

The process is straightforward: you use File > Open, select your text file, and Excel walks you through a dialog that shows you how the data will look before you commit. You can adjust the separator and preview the result in real time.

Key Takeaways

  • Text files with comma, tab, or space separators import cleanly into Excel columns, but plain text without separators goes into a single column.
  • Excel's Text Import Wizard shows you a preview of how your data will appear before you finish opening the file.
  • Once imported, the text becomes a regular Excel spreadsheet that you can edit, format, and save as .xlsx or .csv.
  • If your text file is very large, Excel may slow down or struggle; in that case, opening it in a text editor first to check the file size is worth doing.

How to open a text file in Excel on Windows

Open Excel and go to File in the top left. Click Open, then browse to the folder where your text file is stored. By default, Excel shows only spreadsheet files (.xlsx, .xls, .csv). At the bottom of the dialog, change the file type dropdown from "Excel Files" to "All Files" or "Text Files" so you can see your .txt file.

Select the text file and click Open. Excel launches the Text Import Wizard, a three-step dialog. On Step 1, choose the file origin (usually UTF-8 or the default for your system) and confirm it looks correct in the preview at the bottom. On Step 2, select the delimiter — the character that separates your columns. Common choices are Tab, Comma, or Space. As you select each one, the preview updates to show how your data will split. On Step 3, you can set the data format for each column (General, Text, or Date) if needed, though General works for most cases. Click Finish, and the file opens as a spreadsheet.

How to open a text file in Excel on Mac

Open Excel and click File > Open. Navigate to your text file. Like Windows, Excel hides text files by default, so you may need to type the filename directly or change the file type filter. Once you select the file and click Open, the Text Import Wizard appears.

The Mac version of the wizard works the same way: Step 1 confirms the file encoding, Step 2 lets you pick the delimiter, and Step 3 sets column formats. The preview updates as you make changes. Click Finish when the data looks right.

What happens if your text file has no separators

If your text file is just paragraphs or lines of text with no commas, tabs, or other delimiters, Excel will import it all into column A. Each line becomes a separate row, but everything stays in one column. This is usually not what you want, but it is not a problem — you can use Excel's Text to Columns feature afterward to split the data if you find a pattern you can use.

To split text after import, select the column, go to Data > Text to Columns, and choose a delimiter. This works the same way as the import wizard and lets you reorganize the data after the fact.

Saving your text file as an Excel spreadsheet

Once your text file is open in Excel and formatted the way you want, you can save it as an Excel file. Go to File > Save As, choose a location, and change the file type to "Excel Workbook (.xlsx)" or "Excel 97-2003 Workbook (.xls)" depending on what you need. Type a new filename and click Save.

If you want to keep it as a text file but preserve your changes, choose "Text (Tab-delimited) (.txt)" or "CSV (Comma-delimited) (.csv)" instead. Be aware that saving as .txt or .csv strips out formatting like colors, fonts, and formulas — only the raw data remains.

Common problems when opening text files in Excel

The most common issue is picking the wrong delimiter in the Text Import Wizard. If your preview shows all your data crammed into one column, go back and try a different separator. Tab and Comma are the most frequent choices, but some files use semicolons or pipes (|).

Another issue is file encoding. If your text file contains special characters or was created on a different system, Excel may display garbled text. The Text Import Wizard's Step 1 lets you change the encoding — try UTF-8 first, then ANSI or other options if that does not work. Very large text files (over 100 MB) can cause Excel to freeze or run slowly; in those cases, a dedicated text editor or database tool may be more practical.

When to use a different tool instead of Excel

Excel works well for text files that are structured as data — rows and columns separated by a consistent delimiter. If your text file is unstructured prose, code, or very large, a text editor like Notepad++, VS Code, or Sublime Text is faster and lighter. If you need to work with very large datasets (gigabytes), a database tool or Python script is more appropriate than Excel.

For files that are already in a structured format like JSON or XML, specialized tools or programming libraries handle them better than Excel's import wizard. Excel is best for comma-separated values, tab-separated values, and other simple delimited formats.

Frequently Asked Questions

Can I open a text file without using the Text Import Wizard?

No, Excel always shows the Text Import Wizard when you open a .txt file. You cannot skip it, but you can click through it quickly if the default settings are correct. The wizard exists to prevent data from being imported wrong.

What if Excel does not recognize my text file?

Make sure the file actually has a .txt extension. If it is named something like "data.csv" or "file.log", Excel may treat it differently. You can also try renaming the file to .txt before opening it, or dragging and dropping it onto the Excel window instead of using File > Open.

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

No. Opening a file does not modify it. Only when you save it with a new filename or in a different format does the original change. If you want to keep the text file unchanged, use File > Save As and give it a new name or choose a different file type.

Can I open multiple text files at once in Excel?

You can open them one at a time through File > Open, and each will appear in a separate Excel window or tab. Excel does not have a built-in batch import for multiple text files, but you can open them sequentially and arrange the windows side by side if you need to compare them.

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

Excel treats .csv files as comma-separated by default and often skips the Text Import Wizard, while .txt files always show the wizard so you can choose the delimiter. If your .csv file uses a different separator (like tabs or semicolons), you may still need the wizard to import it correctly.