Skip to content
EditFlip
ENRO
Back to blog
Excel

How to convert Excel to a text file

Saving a sheet as plain text is done in Excel’s Save As, and the choices you make there decide what happens to formulas, accents and column widths.

Eric Rada · Founder · · 6 min read

In short

  • In Excel choose File, Save As and pick Text (Tab delimited) for cells separated by tabs, or Unicode Text if you have accents or other alphabets.
  • Formulas are saved as their results, only the current sheet is saved, and for fixed-width columns use Formatted Text (Space delimited).
  • Tidy the sheet first, free in your browser

Some programs still want plain text: an old accounting system, a script, a label printer, a form that only takes a .txt file, or a colleague who wants to open it in Notepad. A sheet is rich, with colours and formulas. A text file holds only characters and line breaks.

This guide explains the two main kinds, tab-delimited and fixed-width, how to save them from Excel, and what is lost on the way. It also shows how to tidy the sheet first, so the text file does not carry blank rows and notes that break the system reading it.

On EditFlip, step by step

  1. Step 1

    Choose the sheet

    On editflip.com press Choose files and pick the Excel file, or a CSV. Press Edit. Each sheet is a tab, so click the one you want. Only one sheet will go into a text file, so decide now which it is.

  2. Step 2

    Tidy the cells

    Delete the title lines above the data, empty rows and notes in the margins. Check that each column holds one kind of thing. Long text in a cell should be short enough for the system that will read it. Then press Done and Download.

  3. Step 3

    Save as text in Excel

    Open the downloaded file in Excel and choose File, Save As. In the type list pick Text (Tab delimited) (*.txt). Excel warns that only the active sheet is saved. Press OK, then Yes to keep that format.

  4. Step 4

    Check the text file

    Open the .txt file in Notepad. Each row is one line, and the cells are separated by tab marks. If the accents look wrong, save again with Unicode Text, or choose the encoding the other system expects.

What a text file keeps and loses

A text file keeps the characters in the cells and nothing else. Colours, bold, borders, column widths, charts, pictures, comments and extra sheets are all dropped. That is the point of the format, and also its price: it opens anywhere and weighs almost nothing.

Formulas are the part that surprises people. A cell with =B2*1.19 is saved as the number it showed, for example 119. The text file has no way of holding a calculation, so if you need the formula you must keep the Excel file next to it.

Numbers and dates are written the way the cell displays them, not the way Excel stores them. A date shown as 05.03.2026 is saved like that, and a number shown to two decimals is saved with two decimals, which may hide further digits. Check a few values in the text file against the sheet.

Tab-delimited text: the usual choice

In Excel choose File, Save As and pick Text (Tab delimited) (*.txt). Each row becomes one line and each cell is separated from the next by a tab character. A tab almost never appears inside real data, which makes it a safer separator than a comma or a semicolon.

Most programs can read a tab-delimited file, and Excel can open one too, splitting it back into columns. Notepad shows the tabs as gaps of varying width, so the columns look uneven, but the data is correct.

If a cell holds a line break or a quotation mark, Excel puts quotation marks around that cell’s text, so the reader can tell where it ends. A system that does not expect those marks will show them, so avoid line breaks and quotes in the cells when you can.

Fixed-width text for older systems

Some old programs and forms read a file in which every field starts at a set position, with no separators at all. Excel’s Formatted Text (Space delimited) (*.prn) type gets close: it pads each column with spaces to the width of the column on the sheet, so the text lines up. It has a limit on how long a line can be, around 240 characters, so a very wide sheet is cut off.

Excel saves it with a .prn ending, and you can rename it to .txt. Make the columns wide enough for their longest value before you save, otherwise text is cut short. A monospaced font in Notepad, such as Consolas, shows the columns lined up.

If the other system demands exact field lengths, you can build them with a formula. For example, =LEFT(A2&REPT(" ",20),20) makes the text in A2 exactly twenty characters long, padded with spaces. Do that in a spare column, copy it as values, and save that column.

Accents and special characters

The plain Text (Tab delimited) type uses the older code page of your computer. Letters outside it, such as ă, ș or ț on some systems, the euro sign or characters from other alphabets, may turn into question marks. That is lost data, and it cannot be recovered from the text file.

Unicode Text, in the same Save As list, keeps all of them. It is written in a format called UTF-16, which some old systems cannot read and which Notepad opens without trouble. If your target wants UTF-8, a quick way is to open the file in Notepad and use File, Save As, then choose UTF-8 in the Encoding box at the bottom.

Ask what the receiving system expects, or test with one row containing an accent. Ten seconds of testing saves an import that fills a database with question marks.

One sheet only, and how to deal with several

A text file holds one sheet. When a workbook has several, Excel saves only the one you are looking at and warns you. For each other sheet, click its tab and save again with a different file name.

If you are on a Mac, the type names are similar: Tab Delimited Text (.txt) and UTF-16 Unicode Text (.txt) are the ones to look for. The same rules apply.

A workbook with merged cells, subtotals or hidden rows needs care. Merged cells keep their text only in the first cell and leave the others empty, and hidden rows are still saved. Unmerge, unhide and delete what you do not want before saving.

What EditFlip can do here, and what it cannot

EditFlip does not write text files. It opens Excel and CSV files so you can edit cells, add or delete rows and columns, and switch between sheets, and it can turn a workbook into a PDF. The last step, Save As text, is done in Excel or another spreadsheet program on your computer.

The tidy-up still helps, because it can be done on any phone or computer, without Excel. And if what you really want is the words in the sheet as text you can copy, the PDF made from a sheet on EditFlip holds real text that you can select and copy.

Everything is done on your own device. The file is not uploaded.

Checking the result

Open the .txt file in Notepad or any text editor. See that the first line is what you expect, that the number of columns is the same on every line, and that no stray lines sit at the end. Excel sometimes leaves empty cells at the end of lines if the sheet has formatting far below the data.

Look for leading zeros in codes. A code stored as the number 123 in Excel will not come back as 00123 in the text. Format those cells as text and enter the zeros properly before saving, so they appear in the file.

Keep your original workbook. The text file is a copy for another system, and the workbook still has the formulas and the formatting.

Choose the Excel or CSV file, clean up the cells with Edit, then save as text in Excel. Free, no account, and the sheet stays on your device.

Tidy a sheet for a text file on EditFlip →

Questions

How do I convert an Excel file to a text file?

In Excel choose File, Save As, then pick Text (Tab delimited) (*.txt). Only the sheet you are on is saved.

What happens to my formulas?

They are saved as the results they showed. A text file cannot hold a formula, so keep the Excel file if you need them.

How do I get fixed-width columns?

Use Formatted Text (Space delimited) (*.prn), which pads columns with spaces, and rename it to .txt. For exact lengths, build the fields with a formula first.

Why do my accents turn into question marks?

The plain text type uses an older code page. Save as Unicode Text, or re-save in Notepad with UTF-8, to keep them.

Can I save all sheets into one text file?

No. A text file holds one sheet. Save each sheet separately under its own name.

Can EditFlip save an Excel file as .txt?

No. It edits Excel and CSV files and converts them to PDF. Save as text in Excel, after tidying the sheet on EditFlip.

Is my file uploaded?

No. EditFlip works in your browser, on your own phone or computer.

Do it right in your browser.
Free, no account. Your files stay on your device.
Tidy a sheet