Skip to content
Jellykit

TSV to CSV Converter

Convert tab-separated text, such as cells copied from a spreadsheet, into properly quoted CSV with every value copied exactly.

  • Runs on your device
Loading tool

About TSV to CSV Converter

Copy a range of cells from a spreadsheet and you get tab-separated text. Many importers, APIs and scripts want CSV instead. Paste the tabbed text or open a .tsv file and this tool writes the same table with commas, putting quotes around any value that contains a comma, a quote or a line break so that it still reads as one field.

Values are copied exactly: amounts, dates and ids are not reformatted.

How it works

  1. The input is read as RFC 4180 delimited text: fields may be wrapped in double quotes, a doubled quote inside one stands for a quote, and quoted fields may contain line breaks.
  2. With "Detect automatically", the separator is the one of comma, semicolon, tab and pipe that splits the first 50 rows into the most consistent number of fields.
  3. Each row is written with the new separator. A field is quoted only when it contains the separator, a quote or a line break, unless you ask for every field to be quoted.
  4. Blank lines and a leading byte order mark are dropped. A quote that is out of place is kept as a character and reported; a quote that is never closed stops the conversion and names its line.

Questions

Why are some values wrapped in quotes?

In CSV a comma ends a field, so a value such as "Lyon, France" must be quoted to stay whole. Quotes inside a value are doubled. Values without commas, quotes or line breaks are written as they are.

Can I get semicolons instead of commas?

Yes. Change "To" to semicolon, which is what spreadsheet programs with many European regional settings expect when they open a CSV file.

What happens to empty cells?

They stay empty, so every row keeps the same number of fields as in the original. A row that is a single empty cell is written as "" so it is not mistaken for a blank line.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.