The simplest way to open a .txt file in Excel
You can open a text file directly in Excel by using File > Open and selecting your .txt file. Excel will launch the Text Import Wizard, a dialog that lets you control how the data splits into columns before it actually opens. This is the safest route because you see what will happen before the file loads.
Here is the step-by-step process: Open Excel. Click File in the top left. Click Open. Navigate to the folder where your .txt file sits. Change the file type dropdown (bottom right of the dialog) from "Excel Files" to "All Files" or "Text Files" so you can see .txt files. Select your file and click Open. The Text Import Wizard will appear.
The wizard has three steps, but you only need to pay attention to Step 1 in most cases. This is where you tell Excel whether your data is separated by commas, tabs, spaces, or something else. Most .txt files use either tabs or commas. If your file uses tabs, check the "Tab" box. If it uses commas, check the "Comma" box. You will see a preview at the bottom showing how your data will split. Once it looks right, click Finish.
Key Takeaways
- Use File > Open and select your .txt file to trigger the Text Import Wizard, which shows you how the data will split before it loads.
- In Step 1 of the wizard, select the delimiter (Tab, Comma, Space, or Other) that matches how your data is separated.
- The preview pane at the bottom of the wizard shows exactly how your columns will look — use this to catch problems before clicking Finish.
- If your .txt file opens as a single column of jumbled text, you chose the wrong delimiter and can undo and try again.
- Dragging a .txt file directly onto Excel skips the wizard entirely, which often results in all data landing in column A.
What the Text Import Wizard does
The Text Import Wizard is Excel's way of translating a plain text file into rows and columns. A .txt file is just one long string of text with no built-in structure. The wizard reads the file and looks for a delimiter — a character that marks where one piece of data ends and the next begins. Common delimiters are tabs, commas, semicolons, and spaces.
Step 1 of the wizard is where you pick the delimiter. Step 2 lets you adjust column widths and data types if needed, but most people skip this. Step 3 shows you the final result. The key is the preview pane: it shows you exactly how your data will appear in Excel columns. If the preview looks wrong, go back and pick a different delimiter.
If you skip the wizard by dragging the file directly into Excel or double-clicking it, Excel will guess the delimiter on its own. It usually guesses wrong, and you end up with all your data crammed into column A. You can undo this (Ctrl+Z) and open the file the right way using File > Open instead.
Choosing the correct delimiter
The delimiter is the character that separates your data into columns. You need to know which one your file uses. The most common delimiters are Tab, Comma, Semicolon, and Space. If you are not sure, open the .txt file in Notepad first to see what character sits between your data points.
To open in Notepad: Right-click the .txt file. Select "Open with" and choose Notepad. Look at the raw text and identify the repeating character between data. For example, if you see John,Smith,john@email.com, the delimiter is a comma. If you see John Smith john@email.com (with visible space between), the delimiter is a tab. Once you know this, go back to Excel and select that delimiter in the Text Import Wizard.
If your delimiter is not one of the standard options, select "Other" and type the character into the box. Some files use pipes (|) or colons (:) as delimiters. The preview will update as soon as you type, so you will know immediately if you chose right.
Fixing data that landed in the wrong columns
If your data opened and everything is in column A instead of split across multiple columns, you used the wrong delimiter. The fastest fix is to undo the open (Ctrl+Z) and start over using File > Open. This time, pay close attention to the Text Import Wizard and pick the correct delimiter based on what you saw in Notepad.
If you have already closed the file and do not want to reopen it, you can use Excel's Text to Columns feature to split the data after the fact. Select all the data in column A. Go to the Data tab at the top. Click Text to Columns. The same wizard will appear. Pick the correct delimiter and click Finish. Excel will split the column into multiple columns based on the delimiter you chose.
Text to Columns works well for fixing mistakes, but it is easier to get it right the first time by using File > Open and paying attention to the preview in the wizard.
When your .txt file has headers or extra rows
Some .txt files start with header rows that describe what each column contains. Others have blank rows or comment rows at the top. The Text Import Wizard can handle this, but you need to tell it where your actual data starts.
In Step 1 of the wizard, look for a field labeled "Start import at row" near the top. If your file has headers or junk rows, change this number to skip them. For example, if your file has a title in row 1 and headers in row 2, set this to 3 so Excel starts reading data from row 3. The preview will update to show only the rows you want.
You can also delete unwanted rows after the file opens. Select the row number on the left side and right-click to delete it. This is often faster than fiddling with the wizard if you only have one or two rows to remove.
Saving your file as an Excel format
Once your .txt file is open in Excel with the data in the right columns, you can save it as an Excel file (.xlsx) if you want to keep it that way. Go to File > Save As. Change the file type dropdown to "Excel Workbook (.xlsx)". Pick a location and name, then click Save.
Keep in mind that .xlsx files have more features than .txt files — they can store formatting, formulas, multiple sheets, and more. If you save a .txt file as .xlsx, you are not losing anything. The data is the same; you are just using a format that Excel understands natively.
If you plan to share this file with someone who needs it as a .txt file, you can always save it back to .txt format later. Go to File > Save As, change the file type to "Text (Tab delimited)" or "CSV (Comma delimited)" depending on what you need, and click Save. Excel will ask if you want to keep the current format; click "No" to save as the text format instead.
Troubleshooting common problems
All my data is in one column. You skipped the Text Import Wizard or chose the wrong delimiter. Undo (Ctrl+Z) and open the file again using File > Open. This time, watch the preview in the wizard and pick the delimiter that matches your data.
My numbers look like text (they are left-aligned instead of right-aligned). In Step 2 of the Text Import Wizard, you can change the data type for each column. Select the column that contains numbers, then choose "General" or "Number" from the dropdown. This tells Excel to treat them as numbers instead of text.
I see strange characters or symbols instead of my actual data. This usually means the .txt file was saved in a different character encoding (like UTF-8 or Unicode) and Excel is not reading it correctly. In Step 1 of the Text Import Wizard, look for a "File origin" dropdown at the bottom. Try changing it from "Windows (ANSI)" to "UTF-8" or another option and watch the preview. When the preview looks right, click Finish.
The wizard did not appear when I opened the file. Excel sometimes skips the wizard if it thinks it knows what to do. Close the file without saving. Right-click the .txt file, select "Open with," and choose Excel from the list. This should trigger the wizard. If it still does not appear, try the Text to Columns method instead: open the file, select all data, go to Data > Text to Columns, and proceed from there.
Frequently Asked Questions
Can I drag a .txt file directly into Excel?
You can, but it usually does not work well. Dragging skips the Text Import Wizard, so Excel guesses the delimiter and often gets it wrong. All your data ends up in column A. Use File > Open instead to see the wizard and control how the data splits.
What if my .txt file uses a delimiter Excel does not recognize?
Select "Other" in Step 1 of the Text Import Wizard and type the character into the box. The preview will update immediately. This works for pipes (|), colons (:), semicolons (;), or any other single character your file uses.
Will opening a .txt file in Excel change the original file?
No. Opening a file does not change it. If you make changes in Excel and save, you are creating a new file or overwriting the original only if you explicitly save it. The original .txt file stays the same unless you edit it and save it back to .txt format.
Why does my data have extra spaces or look misaligned after opening?
This usually means the delimiter you chose was not quite right, or your data has inconsistent spacing. Check the preview in the Text Import Wizard. If columns are misaligned, try a different delimiter. If spaces are the problem, you may need to clean up the data after it opens using Find & Replace.
Can I open multiple .txt files at once in Excel?
You can open them one at a time using File > Open, and each will open in its own Excel window. You cannot open multiple files in a single operation through the wizard. If you need to combine data from multiple .txt files, open them separately and copy the data into one spreadsheet manually or use formulas to reference the other files.