Skip to content
cliplimeClipLime

Convert CSV to TSV

Paste a CSV or drop a file and get tab separated text that pastes straight into a spreadsheet.

Runs on your device, nothing is uploaded

Convert from

to

Paste, type, drop a file here or load one.

0 characters, 0 lines

Options

When off, columns are called column1, column2 and so on.

More options

Helps Excel show accents and symbols correctly.

Puts an apostrophe before text that starts with = + - or @.

At a glance

Input
CSV text or files. The delimiter is detected (comma, semicolon, tab or pipe), and you can set it yourself, which helps for a file with only one or two columns.
Output
Tab separated text. Commas no longer need quotes, so a value is quoted only if it holds a tab, a quote mark, a line break or a space at either end.
Values
Every value is copied as written. Nothing is turned into a number, so 007 and 1.50 stay exactly as they are.
Paste into a sheet
Copy the result and paste it into Excel or Google Sheets. Each value lands in its own cell.
Watch out
A tab or a line break inside a value is written in quotes. Programs that do not read quotes in TSV will show the quote marks, so replace such characters first.
Options
LF or CRLF line endings, quotes around every value, a byte order mark, and protection against text that starts with = + - or @.
Privacy
Your data is converted in your browser tab and never uploaded.

How to do it

  1. 1

    Add your CSV

    Paste it, drop a file on the box, or press Load a file. The delimiter is detected, and files that Excel saved as Windows-1252 are read correctly.

  2. 2

    Check the columns

    The summary under the result says how many rows and columns were read. If the column count is wrong, choose the Delimiter in the input yourself.

  3. 3

    Set the TSV details

    Turn off First row has the column names if there is no header. Under More options you can choose the line ending or quote every value.

  4. 4

    Copy or download

    Copy the TSV to paste into a spreadsheet, or download a .tsv file.

Why people convert CSV to TSV

  • To paste into a spreadsheet. Excel and Google Sheets split pasted text into cells at tabs, so tab separated text pastes as a grid, and comma separated text does not.
  • To avoid quoting. If your text holds many commas, as addresses and sentences do, almost every CSV value needs quotes. In TSV the same values are plain.
  • To load a database or feed a tool that expects tabs. PostgreSQL's COPY text format and MySQL's LOAD DATA both default to a tab between fields. Both also expect backslash codes for tabs, line breaks and empty values, and this converter does not write those, so check any value that holds such characters.

What happens to quotes, commas and line breaks

The CSV is read first, with its quotes understood: a quoted value may hold the delimiter and line breaks, and two quote marks in a row stand for one. The values are then written again for TSV. For example, the CSV row Ana,"Lisbon, Portugal",31 becomes three values, Ana, Lisbon, Portugal and 31, with a tab between them, and no quotes, because the comma is no longer special.

A value that holds a tab or a line break still needs protection, and the converter wraps it in double quotes, with inner quote marks doubled. Spreadsheets understand this when you paste or open the result. Many command line tools and database loaders do not, because simple TSV has no quoting. Remove or replace tabs and line breaks in such data before you convert.

A value with a space at its start or end is also wrapped in quotes, so the space is not lost when the file is read again.

Reading the CSV you start with

The delimiter is detected by trying a comma, tab, semicolon and pipe on the first rows, ignoring delimiters inside quotes. That covers the common cases, including the semicolon CSV that Excel writes in many European countries. A file with only one column, or a column whose text holds many commas, can fool the guess, so choose the Delimiter in the input by hand in those cases.

Rows with fewer values than the header are filled with empty cells, extra values go into extra columns called column5, column6 and so on, and a repeated header becomes name and name_2. Rows with no content are skipped. A note under the result lists each repair.

Pasting the result into Excel

Excel applies its own rules to pasted text. A value such as 00123 can lose its zeros and a long number can turn into scientific notation. To keep them, format the target columns as Text before you paste. Better, convert to a real workbook with the CSV to Excel page, which writes those values as text cells.

Questions people ask

How do I convert a semicolon CSV to TSV?

Paste it in. The semicolon is detected from the first rows. If a file with only one or two columns is not split, set Delimiter in the input to Semicolon. The output uses a tab between values.

Are commas inside quoted CSV values kept?

Yes. The value is read with its comma, and written without quotes, since a comma means nothing special in TSV.

What happens to a value that contains a tab?

It is wrapped in double quotes, so a reader that understands quotes sees one value. Programs that treat every tab as a column break, such as simple loaders, will not understand it, so replace tabs inside values first.

Can I paste the TSV into Excel or Google Sheets?

Yes. Copy the output, click the first cell and paste. Each value goes into its own cell. Excel may change values such as 00123 as it pastes, so format the columns as Text first, or use the CSV to Excel page.

Does the TSV use backslash codes like PostgreSQL or MySQL?

No. Tabs and line breaks inside a value are protected with quotes, not with \t and \n, and empty values stay empty and are not written as \N.

Is my CSV uploaded?

No. It is converted in your browser tab, so private data stays on your device.