How to use the TSV to CSV converter
- Paste your data into the Data box. The sample has three tab-separated columns with a comma and quotes in the values.
- Choose the direction under Convert: TSV → CSV (default) or CSV → TSV.
- Copy the result, or download it as
data.csvordata.tsv.
What it does and when to use it
Spreadsheets copy as tabs, many databases and command-line tools export TSV, and lots of import screens only accept CSV. Simply replacing tabs with commas breaks as soon as a value contains a comma, such as an address or a price like 1,299. This tool rebuilds each row with proper CSV quoting, so the number of columns stays right when the file is opened elsewhere.
The reverse direction helps when you want to paste CSV into a spreadsheet as separate cells, or feed a tool that splits on tabs.
Once you have CSV, the CSV to JSON converter, the CSV to Markdown table tool and the CSV column aligner can take it further.
How it works
The text is parsed with the papaparse library in your browser, split on tabs (or on commas for CSV → TSV). Blank lines are skipped. Each cell is then written out again:
- TSV → CSV: a cell is quoted when it contains a comma, a double quote, a line break, or starts or ends with a space; inner quotes are doubled.
- CSV → TSV: quotes are removed unless the cell contains a tab, a double quote or a line break.
Rows are joined with CRLF. Rows with more or fewer cells than the header are kept as they are.
Worked examples
These are the tool’s own outputs.
The sample. Three tab-separated rows become:
name,city,note
Asha Rao,Bengaluru,"likes tea, coffee"
"John ""JJ"" Smith",London,
The comma in the note and the quotes in the name are escaped, and the empty last cell is kept.
Prices and padded values. From sku, price, qty columns with A-1, 1,299 and 45 (with a leading space), the row becomes A-1,"1,299"," 45", so the space is not lost by readers that trim unquoted fields.
CSV back to TSV. "Rao, Asha",Bengaluru becomes Rao, Asha and Bengaluru separated by a tab, because a comma needs no quoting in TSV. A value with a line break inside stays quoted.
Limits and tips
- TSV is read literally. A cell cannot contain a tab or a line break, and quotes are never treated as wrappers. Spreadsheet exports that quote cells with line breaks need the CSV tools instead.
- CSV to TSV shows parse warnings, such as an unclosed quote, under the result. If a row looks wrong, open the source in a CSV viewer to inspect it.
- Other delimiters such as semicolons or pipes are not offered here; CSV to JSON and the column aligner can detect them.
Frequently asked questions
Why do some values get quotes around them?
Can I paste straight from Excel or Google Sheets?
What line endings does the output use?
Is a value that starts with a double quote safe?
Does it change numbers or dates?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.