| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
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.
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.
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".
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.
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.
When a cell contains a comma, a double quote, or a break. Pen and 12 are written without quotes.
Set Input delimiter to semicolon. For a page aimed at that conversion, use Change CSV delimiter.
Cells are written as parsed. Trimming is the formatter. A space after a tab stays in the cell.
CSV to TSV writes a tab between cells. A quoted comma inside a CSV field stays a comma in the TSV cell.