About CSV to TSV Converter
Tab-separated text is what spreadsheets put on the clipboard, and it is what many databases, bioinformatics tools and command-line programs prefer to read, because commas inside values cause no trouble. Paste or open a CSV file here to get the same table with tabs between the fields.
Quoted fields are read properly, so "Paris, France" stays one value. Quotes are kept only where a field still needs them, such as a value with a line break inside.
How it works
- 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.
- 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.
- 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.
- 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 do some fields still have quotes in the TSV?
A field that contains a tab, a double quote or a line break must stay quoted, otherwise it would be split or run into the next row when the file is read back. Every other field is written bare.
Can I paste the result into a spreadsheet?
Yes. Copy the result and paste it into the first cell of an empty sheet: spreadsheet programs split tab-separated text into columns by themselves.
My file uses semicolons, not commas. Does this still work?
Set "From" to "Detect automatically" or to semicolon. The other options of the delimiter converter are all here too.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.