The fastest way to convert a text file to Excel

Open your text file in Excel directly, and Excel will walk you through converting it. Launch Excel, go to File > Open, find your .txt file, and select it. Excel opens a dialog called the Text Import Wizard that lets you choose how to split your data into columns — by commas, tabs, spaces, or another character. Once you confirm your choice, Excel creates a spreadsheet with your data already separated into the right cells. This method works for most text files and takes under two minutes.

The Text Import Wizard appears because Excel recognizes that raw text needs structure to become a usable spreadsheet. It shows you a preview of how your data will look and lets you adjust the settings before you commit. If your text file uses commas to separate values (called a CSV file), Excel usually detects this automatically and does most of the work for you.

Key Takeaways

  • Opening a .txt file directly in Excel triggers the Text Import Wizard, which splits your data into columns based on the character that separates your values.
  • The wizard shows you a preview of the result before you save, so you can adjust the delimiter (comma, tab, space, or other character) if the first attempt looks wrong.
  • If your text file is already comma-separated (a .csv file), Excel usually detects this and requires almost no setup.
  • You can also copy and paste text into Excel and use the Text to Columns feature from the Data menu if you prefer not to open the file directly.
  • Save the result as an .xlsx file to keep it in Excel format; the original .txt file remains unchanged.

Understanding delimiters and why they matter

A delimiter is the character that separates one piece of data from the next in your text file. The most common delimiters are commas, tabs, and spaces. When you tell Excel which delimiter your file uses, Excel knows where to split the text and place each piece into its own cell. If you choose the wrong delimiter, your data stays bunched together in one column instead of spreading across multiple columns.

Look at your text file before you open it in Excel. If each line has values separated by commas (like John, Smith, 45, New York), your delimiter is a comma. If values are separated by tabs or multiple spaces, that is your delimiter. The Text Import Wizard shows you a preview, so you can see immediately whether you chose correctly. If the preview looks wrong, you can go back and select a different delimiter.

Step-by-step: Using the Text Import Wizard

Step 1: Open Excel. Go to File in the top left, then click Open. Navigate to the folder where your .txt file is stored and click on it to select it. Click the Open button.

Step 2: The Text Import Wizard window appears. In the first screen, you see options for how the file is formatted. Leave the default settings unless you know your file uses a different format. Click Next.

Step 3: The second screen shows delimiter options. Check the box next to the character that separates your data — usually Comma, Tab, or Space. As soon as you check a box, the preview at the bottom updates to show how your data will look. If the preview looks correct, click Next. If it looks wrong, uncheck that delimiter and try another.

Step 4: The third screen lets you set the data type for each column. For most files, you can leave these as General and click Finish. Excel creates your spreadsheet and displays it on screen.

Step 5: Check that your data is in the right columns. If it looks correct, go to File > Save As, choose a location, give it a name, and select Excel Workbook (.xlsx) as the file type. Click Save.

Converting text you have already copied

If you have already copied text from your file and pasted it into Excel, you can use the Text to Columns feature to split it. Select the column that contains all your data (click the column letter at the top). Go to the Data menu at the top of the screen and click Text to Columns. The same wizard appears, and you follow the same steps to choose your delimiter and split the data across columns.

This method is useful if you pasted the text before realizing it needed to be split, or if you want to convert text that is already in a spreadsheet. The result is identical to opening the file directly — your data ends up in separate columns based on the delimiter you choose.

Common mistakes and how to avoid them

The most common mistake is choosing the wrong delimiter. If your preview shows all your data still bunched in one column, you picked the wrong character. Go back, uncheck the delimiter you selected, and try the next one. The preview updates instantly, so you can see the result before you finish.

Another mistake is saving over your original file. Always use Save As and give your new file a different name or save it to a different folder. This keeps your original .txt file intact in case you need it later or want to try the conversion again with different settings.

If your text file has a header row (a first line that labels what each column contains, like "Name, Age, City"), Excel usually recognizes this automatically. If it does not, you can tell the wizard to skip the first row on the third screen of the wizard. This prevents your headers from being treated as data.

When to use comma-separated versus other formats

A comma-separated values (CSV) file is the most common text format for data that needs to become a spreadsheet. Most programs that export data — accounting software, contact managers, survey tools — offer CSV as an option. If you are downloading data from another program, look for an export option that says "CSV" or "comma-separated values." These files open in Excel with almost no setup.

Tab-separated files are common when data comes from databases or when the original file was created in a word processor. Space-separated files are less common but appear in some older systems or scientific data. If you are not sure what your file uses, open it in a text editor like Notepad first and look at a few lines. You will see the character that separates each value. Once you know what it is, the conversion is straightforward.

Saving your converted file in the right format

After you convert your text file, Excel asks what format you want to save it in. Choose Excel Workbook (.xlsx) to keep it as a standard Excel file that you can edit and share. This is the format most people expect when they receive an Excel file. If someone asks for an Excel file, .xlsx is what they mean.

Do not save it as a .txt file again unless you have a specific reason to. Once you save as .xlsx, you have a real spreadsheet with formatting, formulas, and multiple sheets if you need them. The original .txt file stays unchanged on your computer, so you always have a backup of the raw data.

Frequently Asked Questions

What if my text file does not have a delimiter?

If each value is a fixed width (the same number of characters per column), use the "Fixed width" option on the first screen of the Text Import Wizard instead of choosing a delimiter. The wizard shows you where to place column breaks, and you can drag them to the right positions. This is less common but works for files where data is aligned in columns rather than separated by a character.

Can I convert a text file without opening Excel?

You can open the .txt file in a spreadsheet program like Google Sheets or LibreOffice Calc, which also have text import wizards. Google Sheets lets you upload a .txt file and converts it automatically. However, Excel's wizard gives you the most control over how the data is split, so it is usually the best choice if you have Excel installed.

What happens to my original text file after I convert it?

Your original .txt file is not changed. When you open it in Excel and save it as an .xlsx file, you are creating a new file. The .txt file stays on your computer exactly as it was. You can delete it once you confirm the conversion worked correctly, or keep it as a backup.

Why does my data look wrong after conversion?

You probably chose the wrong delimiter. Open the file again in Excel, and when the Text Import Wizard appears, try a different delimiter option. The preview shows you immediately whether the new choice is correct. If none of the standard delimiters work, your file might use a character like a semicolon or pipe symbol — you can type a custom character in the wizard.

Can I convert multiple text files at once?

Excel does not have a batch conversion feature, so you need to convert each file one at a time. However, if all your files use the same delimiter and structure, the process is fast — you repeat the same steps for each file. If you have many files to convert, consider whether the program that created them can export directly to Excel format instead.