Exporting an Excel sheet as a plain text (TXT) file strips away formatting, formulas, and multiple sheets, leaving only raw data in a simple, universally readable format. This is useful for importing data into legacy systems, programming tools, or text editors that don’t support Excel’s structure. No special software is required—this can be done using only Microsoft Excel or LibreOffice Calc. Ensure your data is clean and organized in a single sheet before proceeding, as TXT files cannot retain multiple sheets or complex layouts.
What You'll Need
- A computer running Windows or macOS
- Microsoft Excel (2010 or later) or LibreOffice Calc
- The Excel file you want to convert
- Basic understanding of file paths and folder locations
Step-by-Step
- Open the Excel file you wish to save as a TXT file. Make sure only the sheet you want to export is visible; hide or delete other sheets to avoid confusion.
- Click the File tab in the top-left corner of Excel.
- Select Save As from the menu. If you’re using Excel 2016 or later, you may see Save a Copy instead—choose that, then click Save As in the dialog that opens.
- Navigate to the folder where you want to save the file. Avoid locations with special characters or spaces in the path if possible (e.g., use
C:\Users\YourName\Documents\instead of a folder named "My Data (Backup)"). - In the Save as type dropdown menu, select Text (Tab delimited) (*.txt). This is the most common format for plain text exports and preserves columns using tab characters.
- Enter a filename without an extension (Excel will add .txt automatically). For example, type
salesdatainstead ofsalesdata.txt. - Click Save. A warning may appear: "This file may contain features that are not compatible with the selected file type." Click Yes to continue. This confirms you understand formatting will be removed.
- Wait a few seconds while Excel processes the export. Once complete, open the folder and verify the .txt file appears.
- Open the new .txt file with Notepad (Windows) or TextEdit (macOS, set to Plain Text mode) to confirm all data is correctly separated by tabs and no formulas or formatting remain.
Common Mistakes
- Choosing CSV instead of Text (Tab delimited)—while CSV is also plain text, it uses commas and can misread data with embedded commas (like addresses or names).
- Leaving multiple sheets active—TXT files can only contain one sheet. If you save while multiple sheets are visible, Excel will warn you but may not export all data as expected.
- Using a filename with spaces or symbols (e.g., "Sales Report 2024.txt")—while allowed, this can cause issues in scripts or automated systems. Use underscores instead: "sales_report_2024.txt".
- Not checking for merged cells or hidden columns—these will export as blank or misaligned. Unmerge cells and unhide columns before saving.
- Assuming the file will retain color, fonts, or formulas—TXT files are purely textual. All formatting is lost.
Tips
- Use tab-delimited TXT over CSV if your data includes commas, quotes, or other punctuation—tabs are less likely to interfere with content.
- Before exporting, sort or filter your data to ensure only the rows you need are included. TXT files cannot be filtered after export.
- For large datasets, test the export on a small subset first to verify alignment and structure.
- If you plan to import the TXT file into another program (like Python, SQL, or a database), confirm the expected delimiter (tab vs. comma) and whether headers should be included.
- Always back up your original Excel file before exporting. Once saved as TXT, you cannot recover formulas or formatting without the original.
- On macOS, if TextEdit opens the file with rich text formatting, go to Format > Make Plain Text before viewing.
Troubleshooting
- The file doesn’t open properly—Open it in a code editor like Notepad++ or VS Code. If data appears as a single column, you likely saved as CSV instead of tab-delimited TXT. Re-export using the correct option.
- Missing data or columns—Check if any columns were hidden in Excel before saving. Unhide them and re-export. Also verify that no cells contain line breaks within them—these can break row alignment in TXT files.
- Excel freezes during save—Close other programs to free up memory. Save the file to a local drive (not OneDrive or network locations) and try again. If the file is over 100,000 rows, consider splitting it into smaller chunks.
- Tab characters not working—Some systems expect comma-separated values. If importing into a program that doesn’t recognize tabs, re-export as CSV and check if the target system accepts it.
- "Save as" option missing—If you’re using a web-based version of Excel (Excel Online), you cannot save as TXT. Download the file to your computer and open it in the desktop version of Excel first.
- Special characters display incorrectly—TXT files default to ANSI or UTF-8 encoding. If you see garbled text (e.g., accented letters), open the file in a text editor that supports encoding selection (like Notepad++) and re-save it as UTF-8.