Skip to content

CSV to TSV Converter

Convert comma-separated files to tab-separated ones, or back again. Quoted values, commas and line breaks are kept intact.

Processed in your browser. Your data is not uploaded, stored or logged — closing the tab discards it. How this works

Conversion options Show
Direction

Reversing also moves the current output into the input.

Suggested from the first rows; change it if the preview looks wrong.

Tabs and line breaks inside values

Changes apply automatically.

Input

Paste data, choose a file, or load the sample. Choose the direction above.

You can also drag and drop a file here.

Output

The converted data appears here.

Parsed table

The parsed rows appear here after conversion.

How to convert CSV to TSV (and back)

  1. Choose the direction: CSV → TSV or TSV → CSV.
  2. Paste your data or open a file. Check the parsed table and the row and column counts.
  3. For CSV input, confirm the delimiter. For TSV output, choose how tabs and line breaks inside values are handled.
  4. 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:

ModeExampleRead correctly by
Wrap in quotes (default)"a→b"Excel, Google Sheets, LibreOffice, Python csv, pandas, most CSV libraries
Backslash escapesa\tbPostgreSQL COPY, MySQL LOAD DATA with defaults, many Unix scripts
StrictrefusedAny 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 .