How to Open a TSV File in Excel

Open a TSV file in Excel with each tab-separated value in its own column, while keeping leading zeros, long IDs, dates and special characters intact.

A TSV (tab-separated values) file is a plain-text table. Each line is one row, and a tab character separates each value in that row. Excel can turn this text into a normal grid of rows and columns. If Excel guesses the wrong delimiter, the encoding or the data types, you may see everything crammed into one column, garbled accented characters, or ZIP codes and ID numbers that have quietly changed. This guide explains what Excel does with a TSV file. It then shows how to import one so that the content arrives unchanged, and how to check the result.

What Excel does when it opens a TSV file

Opening a TSV file in Excel is an import. Excel reads the raw text and has to settle three things, sometimes called the file's dialect: the delimiter (here, a tab), the character encoding (such as UTF-8), and how each value should be interpreted (text, number or date). The output is a worksheet in which every tab marks a column boundary and every line break marks a new row.

The import does not change the original TSV file. Changes happen only inside the worksheet, and they reach the file only if you save over it. The scope that matters most is data-type conversion. By default, Excel may turn text that looks like a number or a date into an actual number or date. That conversion is where meaningful content is most often lost.

An example TSV file

The illustrative sample below is a small TSV file. Each [TAB] marks a single tab character. In the real file, the tab is invisible.

id[TAB]zip[TAB]name[TAB]joined[TAB]account
001[TAB]02134[TAB]José Núñez[TAB]3/4/2024[TAB]4000123412341234
002[TAB]10001[TAB]Ana Silva[TAB]2024-11-05[TAB]4000987698769876

This sample contains several values that Excel's automatic conversion can damage:

  • 001 and 02134: the leading zeros can be dropped if the values are treated as numbers.
  • José Núñez: the accented letters can display as garbled characters if the file is read with the wrong encoding.
  • 3/4/2024: this can become a date, interpreted as March 4 or April 3 depending on regional settings.
  • 4000123412341234: this is 16 digits. Excel stores numbers with 15 significant digits of precision, so a value this long can be shown in scientific notation and have its final digit replaced with 0.

Before you start

  • Make a copy of the original TSV file and work from the copy, so the source is always recoverable.
  • Find out the file's encoding if you can. UTF-8 is common for files exported from databases and web tools.
  • Decide which columns must stay exactly as written, such as IDs, ZIP codes, phone numbers, product codes and account numbers. You will set these columns to Text during import.

Method 1: Import with Data > From Text/CSV

In current desktop versions of Excel for Windows, this importer gives you a preview and lets you control the delimiter, the encoding and the column types. Menu labels can vary slightly between Excel versions and platforms.

  • 1. Open a blank workbook.
  • 2. Go to the Data tab and choose From Text/CSV, which sits in the Get & Transform Data group.
  • 3. Select your .tsv file and click Import. If the file does not appear, change the file-type filter to All Files.
  • 4. In the preview window, set Delimiter to Tab.
  • 5. Set File Origin to the file's encoding. For UTF-8 files, choose 65001: Unicode (UTF-8). Check that accented letters display correctly in the preview.
  • 6. To control column types, set Data Type Detection to Do not detect data types. Alternatively, click Transform Data and set sensitive columns to Text in the Power Query Editor.
  • 7. Click Load. If you went through Transform Data, click Close & Load instead.

The data loads as a table that is linked to the source file. If you later update the TSV file, you can use Refresh on the Data tab to reload it with the same settings.

Method 2: The Text Import Wizard (column-by-column control)

The older Text Import Wizard lets you set a format for each column before any conversion happens. That makes it a reliable way to protect leading zeros and long numbers. You can reach it in two ways. One is to rename a copy of the file from .tsv to .txt and then open it with File > Open, which typically launches the wizard. The other is to enable the legacy wizard under File > Options > Data and then start it from the Data tab.

  • 1. Step 1: choose Delimited. Set File origin to the correct encoding, for example 65001: Unicode (UTF-8). If your first row contains column names, tick My data has headers.
  • 2. Step 2: tick Tab as the delimiter and untick the others. The preview should show one value per column.
  • 3. Step 3: click each column that must keep its exact text, such as id, zip and account, and set Column data format to Text. Set ambiguous date columns to Text too, or to Date with the correct order (MDY or DMY).
  • 4. Click Finish and choose where to place the data.

Why double-clicking the file can go wrong

Double-clicking a .tsv file, or dragging it onto Excel, opens it without the import dialog. Whether the columns split correctly depends on your file associations and Excel version. The supplied evidence does not confirm a single behavior. Even when the split works, Excel applies its default type conversion and encoding guess with no preview. Use one of the import methods above whenever the file contains codes, long numbers, dates or non-English characters.

Turning off automatic conversions (newer Excel versions)

Recent Microsoft 365 versions of Excel include an Automatic Data Conversion section under File > Options > Data. It has settings that stop Excel from removing leading zeros, converting long numbers to scientific notation, and converting text to dates. Availability depends on your version and update channel. If you have these options, they reduce risk, but setting columns to Text during import is still the most explicit protection.

Before and after: what a correct import looks like

Using the example file above, a correct import with id, zip, joined and account set to Text should produce this worksheet. The table is illustrative and was not generated from a tested run.

id | zip | name | joined | account
001 | 02134 | José Núñez | 3/4/2024 | 4000123412341234
002 | 10001 | Ana Silva | 2024-11-05 | 4000987698769876

An uncontrolled import of the same file might instead show 1 and 2134, garbled characters in the name, a reformatted date, and 4.00012E+15 in the account column.

How to check the result

  • Column count: each row should fill exactly as many columns as the header. If values sit in one column, the delimiter was not set to Tab. If some rows spill into extra columns, those rows may contain stray tabs.
  • Row count: the number of data rows in Excel should match the number of data lines in the file.
  • Leading zeros and long numbers: spot-check IDs, ZIP codes and account numbers against the original text.
  • Characters: confirm that accented letters and symbols read correctly. If they look garbled, re-import with a different File Origin.
  • Dates: confirm that day and month were not swapped.

If you have a Unix-like shell, the command below counts how many fields each line contains. A clean file reports a single field count for every line. Several different counts point to embedded tabs or broken lines in the source.

awk -F'\t' '{print NF}' data.tsv | sort | uniq -c

The output lists each field count next to the number of lines that have it. Quoted values that contain tabs or line breaks are not handled by this simple check, and they may also be split differently by Excel's two importers. Review such rows by hand.

Saving without losing content

Saving a workbook back to text writes out whatever Excel currently displays. Any zeros, digits or date formats lost on import are then lost from the file too. To save a tab-delimited copy, use File > Save As and pick Text (Tab delimited) (.txt), or Unicode Text (.txt). Excel saves with a .txt extension; rename the file to .tsv afterwards if your workflow needs it. The encoding Excel writes for these formats may differ from the original file's encoding. The supplied evidence does not specify the exact encoding per version, so test with a file containing non-English characters before relying on it. Save under a new name rather than overwriting the original. That way, the untouched source remains available if anything changed.

Gaps in this guide

No version-specific documentation was supplied. Exact menu names, the default behavior when double-clicking a .tsv file, the availability of Automatic Data Conversion settings, and save-time encodings may differ across Excel for Windows, Excel for Mac and Excel for the web. Confirm these details in your own version before processing important data.