Skip to content
OddsockLocal
Local
Source text
ItemQuantity
Notebook12
Pencil4
3 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste tab-separated rows into Source text. Keep the tabs.
  2. Leave Input delimiter on tsv. Choose auto only when you want the delimiter guessed.
  3. Leave Output delimiter on csv.
  4. Copy the CSV. Quoted lines that each hold a whole original row mean the paste had no tabs.

What is TSV to CSV?

Tab-separated text pastes cleanly out of a spreadsheet and then meets a system that only accepts commas. TSV to CSV reads tabs as the column breaks and writes a CSV, quoting any cell that contains a comma, a quote, or a line break. Item, a tab, Quantity becomes Item,Quantity. A description that contains a comma is wrapped in quotes so the comma stays inside the field.

Read more

The input delimiter on this page starts as TSV. If you paste a comma-separated sheet without changing that, there are no tabs, so each line is a single cell. Those cells contain commas, so the writer quotes them. The stationery lines come back as "Item,Quantity", "Notebook,12", and "Pen,4". That quoted result is the signal that the source was still commas. Switch the input to auto, or paste real tabs, when you wanted two columns.

Use cases

  • A spreadsheet copy, with tabs between Item and Quantity, needs to be a CSV attachment.
  • A description field containing a comma must stay one column after the file becomes comma-separated.
  • A pipeline receives TSV from a partner and the warehouse system accepts CSV only.
  • Someone debugging a one-column result sees quoted whole lines and realizes the paste never contained tabs.
  • A round trip from CSV to TSV and back is checked before a file is archived.

Tabs in, commas out

A real TSV is Item, a tab, Quantity, then Notebook, a tab, 12, then Pen, a tab, 4. The sample capture pasted the comma form Item,Quantity / Notebook,12 / Pen,4 while the input delimiter stayed TSV.

Real tabs return Item,Quantity / Notebook,12 / Pen,4. The comma paste treated as TSV returns three quoted lines: "Item,Quantity" / "Notebook,12" / "Pen,4".

Why use Oddsock

Quoting is the whole difference between a comma that separates columns and a comma that belongs to a description, and this conversion applies that rule on the way off tabs.

Related tools

Using this tool

The input delimiter was TSV and the text had commas, not tabs. Each line was one field, and the comma inside it forced quotes. Paste tabs, or set Input delimiter to auto or comma.