Convert TSV to CSV

Turn tab-separated values or cells copied from a spreadsheet into a CSV, with commas and quotes in cells quoted as RFC 4180 says. Nothing is uploaded.

How to convert TSV to CSV

  1. 1

    Open a .tsv file or paste tab-separated text

  2. 2

    Choose a comma or semicolon for the CSV

  3. 3

    Download the CSV

Tabs to commas, with every cell quoted where it needs to be

Tab-separated text is what you get from many database exports, scientific instruments and command-line tools, and usually what arrives when you copy a block of cells out of a spreadsheet and paste it as text. CSV is what most import forms, mailing tools and programs ask for. This converts one into the other without breaking a cell.

Why a plain replace is not enough

A TSV value can hold a comma, because in TSV the comma means nothing. In a CSV it separates columns, so “London, UK” with its tab swapped for a comma becomes two cells and pushes the rest of the row one column to the right. RFC 4180, the CSV specification, says a value holding a comma, a double quote or a line break goes inside double quotes, with any quote inside it written twice. This writes every such cell that way and leaves the rest bare, so the file is no larger than it needs to be.

What it reads

Each line is a row and each tab starts a new column, as the IANA registration for text/tab-separated-values describes. Rows can have different numbers of columns, and each is written as it came, with nothing added or dropped. A value wrapped in double quotes, which is how a cell with a tab or a line break inside usually arrives, is read as one cell. If the text has no tabs at all, you are told, because that is most often a CSV pasted into the wrong tool rather than a one-column table.

Writing the CSV

Choose a comma, or a semicolon for a spreadsheet set to use a decimal comma. Rows end with Windows line endings, as RFC 4180 specifies. Cells that start with =, +, @ or a minus sign get a leading apostrophe so a spreadsheet will not run them, and a negative number is left alone.

To go the other way, use CSV to TSV. To clean the result, Remove CSV duplicates finds repeated rows.

Nothing is uploaded. The data is converted in this tab and is gone when you close it.

Everything you need

Correct CSV quoting

Cells holding a comma, a quote or a line break are quoted and their quotes doubled, as RFC 4180 defines.

Comma or semicolon

Write a comma-separated file, or a semicolon-separated one for spreadsheets set to use a decimal comma.

Private by design

The data is converted in your browser and never sent anywhere.

Nothing uploaded: open the Network panel while it runs and check.

No daily limits or watermarks: free batches take up to 20 images.

Works offline: once the page has loaded, on any current browser.

Frequently asked questions

Why not just replace every tab with a comma?

Because values often contain commas. "London, UK" with its tab replaced becomes two columns. RFC 4180 says such a value goes inside double quotes, and this writes it that way, so every cell stays in its own column.

Can I paste cells copied from a spreadsheet?

Yes. Copied cells usually paste as text with a tab between columns, which is exactly what this reads. A cell copied with a line break inside it arrives in quotes and is kept as one cell.

Why do some cells get an apostrophe?

A cell starting with =, +, @ or a minus sign can run as a formula when the CSV is opened, so it is given a leading apostrophe, as every CSV written on this site is. A negative number such as -5 is left alone. Untick the option to keep cells exactly as they were.

Is the file uploaded?

No. The text is read and converted in this browser tab and never leaves your device.

Sources

Related guides

Work with files privately and confidentlyPractical, sourced explanations for safer file conversion, sharing, and cleanup.