CSV vs TSV
CSV separates fields with commas and TSV with tabs. Because commas appear constantly in ordinary text, CSV needs quoting rules that many parsers implement badly. Tabs are rare inside real data, so TSV usually needs no quoting at all. CSV is more widely supported; TSV is more predictable. Choose TSV when your data is full of commas.
CSV to TSV Converter
Convert comma-separated data to tab-separated values.
The difference is one character, and it has larger consequences than it should. Commas are everywhere in real data — in names, addresses, prices and free text — so any CSV parser must handle quoted fields, escaped quotes and newlines inside quotes. Plenty of hand-written parsers do not.
Tabs almost never appear inside real field values, so TSV sidesteps most of that complexity. The trade-off is that tabs are invisible, which makes a malformed TSV file harder to diagnose by eye.
The quoting problem
In CSV, a field containing a comma must be quoted, and a quote inside a quoted field must be doubled. RFC 4180 specifies this, but plenty of exporters and importers only partially implement it, which is why splitting a CSV line on commas is one of the most reliable ways to corrupt data.
- A field with a comma must be wrapped in double quotes.
- A literal double quote inside is written as two.
- A field may contain newlines if it is quoted.
- Any of these can break a naive parser.
The locale problem
In locales where the comma is the decimal separator — much of continental Europe — spreadsheet software exports CSV using semicolons instead, to avoid ambiguity with numbers. A file called .csv may therefore be comma, semicolon or tab delimited, and you cannot tell from the extension. TSV has no equivalent ambiguity.
When to choose each
Use CSV when the consumer is unknown or the format is dictated: it is the most universally accepted tabular format and every tool imports it. Use TSV when your data contains commas, when you control both ends, or when you are piping through Unix text tools, which handle tab-delimited input naturally.
Example
The same two records. CSV needs quoting for the comma; TSV does not.
CSV
id,name,notes
1,"Smith, John","Said ""yes"" twice"
TSV (tabs shown as arrows)
id→name→notes
1→Smith, John→Said "yes" twice
Frequently asked questions
Which format should I send someone?
Why is my CSV semicolon-delimited?
Can TSV contain tabs inside a field?
Do these formats support types?
What about the header row?
Tools used in this guide
All tools →- CSV to TSV Converter Convert comma-separated data to tab-separated values. In your browser
- TSV to CSV Converter Convert tab-separated data to comma-separated CSV. In your browser
- CSV to JSON Converter Turn CSV rows into a clean JSON array of objects. In your browser
- JSON to CSV Converter Flatten a JSON array into spreadsheet-ready CSV. In your browser
Related guides
All guides →Last reviewed .