How to convert CSV to TSV (and back)
- Choose the direction: CSV → TSV or TSV → CSV.
- Paste your data or open a file. Check the parsed table and the row and column counts.
- For CSV input, confirm the delimiter. For TSV output, choose how tabs and line breaks inside values are handled.
- Copy or download the result. Use "Reverse direction" to convert it straight back.
Example
CSV input:
name,note
"Smith, J",Paid
Lee,"Line one
Line two" TSV output (tabs shown as →):
name→note
Smith, J→Paid
Lee→"Line one
Line two" The comma no longer needs quotes in TSV. The value with a line break is quoted so it stays one field.
Quoted TSV and compatibility
TSV has no single standard for values that contain tabs or line breaks. The formal definition (IANA's text/tab-separated-values) simply forbids them. In practice there are three conventions:
| Mode | Example | Read correctly by |
|---|---|---|
| Wrap in quotes (default) | "a→b" | Excel, Google Sheets, LibreOffice, Python csv, pandas, most CSV libraries |
| Backslash escapes | a\tb | PostgreSQL COPY, MySQL LOAD DATA with defaults, many Unix scripts |
| Strict | refused | Any TSV reader, including cut and awk |
Quoted TSV only adds quotes where needed, so most rows look exactly like plain TSV. But simple tools that just split each line on tabs will see the quote characters as part of the value and will split multi-line values into separate rows.
When reading TSV, "Quotes are ordinary text" is useful for exports where a value can begin with a quote character (for example "Best" seller) without being a quoted field.
Limitations
- Maximum input size is 50 MB. The preview shows the first 100 rows; downloads contain everything.
- Rows with different field counts are converted as they are, and you are told how many there are.
- Output is always UTF-8.
Frequently asked questions
What is the difference between CSV and TSV?
Both store a table as plain text, one row per line. CSV separates fields with commas (or sometimes semicolons); TSV separates them with tab characters. TSV is handy for pasting into spreadsheets and for data that contains lots of commas.
Can I convert TSV back to CSV?
Yes. Choose "TSV → CSV" or press "Reverse direction", which also moves the current output into the input so you can convert it back.
What happens to tabs and line breaks inside values?
Plain TSV has no way to store them. By default such fields are wrapped in double quotes, which Excel, Google Sheets and most CSV libraries understand. You can instead use backslash escapes (\t, \n) or strict mode, which stops with an error rather than writing a file other tools might misread.
Does the file extension matter?
No. The converter reads the content, not the name, so a .txt or .csv file that actually contains tab-separated data works fine. If the data does not look like the chosen direction, you get a hint to reverse it.
Last updated .