Try it

TSV

Sortyra team · · 3 min read

TSV is a simple text file with a table in which every product is on its own line and the values are separated by an invisible tab character. It is a close relative of CSV. It is used by Google Merchant Center and the Meta catalogue, for example, and you can open it in Excel or Google Sheets.

What is TSV

TSV stands for Tab-Separated Values. A tab is the same character you insert with the Tab key. You cannot see it in the file; it looks like a wider space.

So TSV is CSV with a different delimiter. Why does it exist at all? Commas and semicolons commonly occur in product names and descriptions ("3-person tent, 2.4 kg"), so in CSV they have to be wrapped in quotation marks. A tab hardly ever appears in ordinary text, which makes the file simpler and less error-prone. The file can have the extension .tsv or .txt.

An analogy: CSV and TSV are like two notebooks with the same table – in one the columns are separated by a line, in the other by a wide space.

What it looks like in a feed

id	title	price	availability	gtin
STAN-D3	TrailPeak Dome 3 tent, 2.4 kg	129.90 EUR	in_stock	8588001234560
SPAC-12	Nordlys sleeping bag -5 °C	59.90 EUR	out_of_stock	8588007654324

There is a tab between the values; the comma in the tent's name does not matter, because it is not the delimiter.

What it is used for

  • Google Merchant Center accepts product data as a tab-delimited text file.
  • The Meta catalogue (Facebook, Instagram) accepts both CSV and TSV.
  • Copying from Excel – when you copy cells from a spreadsheet, they are placed on the clipboard as tab-delimited text.
  • Exports from databases and internal systems where you do not want to deal with quotation marks.

Comparison sites such as Heureka and Zboží.cz want XML, not TSV.

What to watch out for

  • A tab replaced by spaces. Some editors turn the tab into spaces when saving, and the table collapses into one column.
  • A tab or a new line in a description. If one gets into a value, it shifts the other columns; clean the text before export.
  • Encoding. Save in UTF-8, otherwise accented characters break.
  • Excel and long numbers. When opened by double-clicking, it may turn an EAN into scientific notation and remove leading zeros from codes.

How Sortyra helps

When you add a source in Sources, Sortyra detects the delimiter itself, so it reads a supplier's TSV as CSV. In Outputs and channels you create a Custom CSV and choose a tab as the Delimiter.

Frequently asked questions

What is the difference between CSV and TSV?

Only the delimiter: CSV uses a comma or semicolon, TSV a tab. The structure – one line, one product – is the same.

How do I open a TSV in Excel?

Use Data → From Text/CSV, where you choose UTF-8 encoding and a tab as the delimiter. Set codes and EANs as text.

Can I rename a TSV file to CSV?

The extension changes nothing about the content. But some programs expect a comma with .csv, so it is better to keep .tsv or .txt.

Try it on your own feed