The tool you need, ready to use

CSV ↔ TSV Converter

Paste CSV or TSV, or open a file, and the converter detects the separator and rewrites the table in the format you choose. Follow one row in the strip above, check the whole table cell by cell like Excel, and see which cells will change when Excel opens the file (leading zeros, long numbers, dates, values that start like a formula).

Last updated 2026-10-20All math stays in your browser
Read
Write
—
Input
Output
Sample

TSV quotes
Line break
TSV quotes, Excel/Sheets: cells with a line break or tab, and cells that start with a double quote, are wrapped in quotes so they stay one cell; quoted cells are read the same way. Standard: quotes are plain characters, and cells with a line break or tab are not converted. The BOM is added to saved files only.

Last updated 2026-10-20Your inputs are not stored

ROBERIN standardThe tool you need,
ready to use.
  • Clear at a glanceInputs and results sit where you expect them.
  • Result firstThe key number comes first; the working only when you need it.
  • Ask lessNo sign-up and no unnecessary details.

Convert between comma-separated and tab-separated tables

CSV is a text table whose cells are separated by commas (,); TSV separates them with tab characters. Paste a table into the converter above or open a file, and it detects which character separates the cells and rewrites the table in the format you pick: TSV, comma CSV or semicolon CSV. Cells that are easy to get wrong, such as an address with a comma or a note with a double quote, get their quotes added or removed according to the CSV rules in RFC 4180.

The result appears as a spreadsheet-style grid, and cells that will change when opened in Excel (leading zeros, numbers of 12 digits or more, values that become dates, values that start like a formula) are flagged. You can copy the result or save it as .tsv or .csv, and save as Excel .xlsx to protect those cells. What you paste or open is never sent to a server; it is processed only inside this browser.

When you need to convert between CSV and TSV

Both formats are plain text, so most programs can read them. You convert when the receiving side expects the other format, or when the separator collides with your data.

  • Pasting into Excel or Google Sheets: tab-separated text splits into columns on its own when pasted into a sheet. Pasted CSV puts each whole line into a single cell, so converting to TSV before you copy gives you a table at once.
  • An import form or tool that insists on one format: product uploads, contact imports and analytics tools often accept only CSV or only TSV. Renaming the file leaves the separators inside unchanged, so every row collapses into one column.
  • Data full of commas: addresses, amounts such as 1,250,000 and free-text comments are easier to read as TSV, because no quotes are needed around them.
  • CSV files from a European Excel: in regions where the decimal separator is a comma, Excel separates cells with a semicolon (;). Microsoft explains that changing the decimal separator to a comma makes Excel use a semicolon as the list separator. This converter detects semicolon CSV and can also write it.

How to use the converter

  1. Add a table: paste into the input box, press Open file, or drop a file onto the box. Clicking the sample selects all of it, so whatever you paste replaces it immediately.
  2. Check the read format: next to Auto you will see the detected separator (comma, tab or semicolon). If the columns split wrongly, press the right one yourself.
  3. Choose the write format: by default a tab table becomes CSV, and a comma or semicolon table becomes TSV. Press another write button if you need a different format. The ⇄ button in the middle moves the result into the input and swaps the direction.
  4. Follow one row: the strip on top shows how a single row changes from input to result, piece by piece, with the separators. Rows that gain or lose quotes come first; use ‹ › or click a row in the grid to see another one.
  5. Read the grid and the flagged cells: column letters (A, B, C…) and row numbers match Excel. A cell with a mark in its top-left corner may change in Excel. The chips below step through each kind of cell and explain why.
  6. Take the result away: use Copy result to paste it elsewhere, or save a .tsv or .csv file. If you plan to open it in Excel, Excel .xlsx keeps leading zeros and long numbers as they are.

The rules differ by format

The three formats differ not only in the separator but also in what happens when a cell contains that character or a line break. The converter reads and writes with these rules.

FormatSeparatorCells wrapped in quotesLine break in a cell
CSV (comma)Comma ,Cells with a comma, double quote or line break; a double quote inside is written twice as ""Kept inside the quotes
CSV (semicolon)Semicolon ;Cells with a semicolon, double quote or line break (commas are not wrapped)Kept inside the quotes
TSV Excel/SheetsTabCells with a tab or line break, and cells that start with a double quoteKept inside the quotes
TSV standardTabNone (a double quote is just a character)Cannot be held, so it is not converted

RFC 4180 says that fields containing line breaks, double quotes or commas should be enclosed in double quotes, and that a double quote inside a field is written as two double quotes. The TSV type registered with IANA, on the other hand, states that fields that contain tabs are not allowable and defines no quoting. The tab-separated files Excel writes follow the same quoting rules as CSV (this is the excel_tab dialect in the Python csv documentation), so the converter's default TSV follows that way (Excel/Sheets). Choose TSV quotes → Standard only when the receiving program does not understand quotes.

One row in each format

Here is one row with product code 00123, product Apple, Fuji, note "Extra" grade and a fourth cell Orange↵Valencia (a line break inside the cell), written in each format. ↵ stands for a line break inside a cell and ⇥ for a tab.

Write formatResulting line
CSV (comma)00123,"Apple, Fuji","""Extra"" grade","Orange↵Valencia"
CSV (semicolon)00123;Apple, Fuji;"""Extra"" grade";"Orange↵Valencia"
TSV Excel/Sheets00123⇥Apple, Fuji⇥"""Extra"" grade"⇥"Orange↵Valencia"
TSV standardNot converted (D1 line break inside a cell)

In semicolon CSV the comma in Apple, Fuji is not a separator, so the cell stays without quotes. In every format 00123 is carried over exactly as written; the leading zeros disappear only when Excel opens the file.

Cells that change when Excel opens the file

CSV and TSV do not change values themselves, but Excel automatically converts text that looks like a number or a date as it opens the file. These are the kinds of cell the converter flags, and why.

Kind of cellOriginal valueOpened in ExcelBasis
Leading zeros00123123Excel removes leading zeros automatically (Microsoft)
Number of 12 digits or more123456789012Scientific notation such as 1.23E+11The General format shows numbers of 12 or more digits in scientific notation (Microsoft)
Number of 16 digits or more2026101900000001Scientific notation (like 2.03E+15); in a number format, 2026101900000000 (last digit becomes 0)Excel's precision is 15 digits, and digits after that become 0 (Microsoft)
Becomes a date12/2, 5-6A date, such as 2-DecExcel turns input that looks like a date into a date (Microsoft)
Starts like a formula-10% off, =1+1An error or a formula resultCells starting with =, +, - or @ may be read as formulas (OWASP)

There are two ways to protect such cells. First, save with the converter's Excel .xlsx button: only safe numbers are stored as numbers and everything else goes into text-formatted cells, so 00123, order numbers and 12/2 stay as they are. Second, open the CSV through Excel's data import and set that column's format to Text. If you see a cell that starts like a formula in a file from an unknown source, check what it contains before opening it. OWASP warns that such cells can be executed like commands in a spreadsheet.

When accented letters turn into garbage

CSV and TSV have no field that says which character encoding was used, so the program that opens the file has to guess. Microsoft says a UTF-8 CSV saved with a BOM (the three bytes EF BB BF at the very start of the file) opens correctly in Excel. For that reason the converter adds a BOM by default when it saves a CSV file, and not for TSV. A switch in the options row changes this.

When a file is opened, a BOM is followed if present; otherwise the converter tries UTF-8 and, if that fails, reads the file again as Windows-1252, the legacy Western European encoding. Files written by older programs therefore stay readable, and the encoding that was used is shown above the input box. Saving is always UTF-8.

Common mistakes

  • Only renaming the extension: renaming data.csv to data.tsv leaves the commas inside as they are. The receiving program finds no tabs and reads each line as one cell.
  • Reading semicolon CSV as comma CSV: splitting a European-style line such as 1,5;2,25 at commas cuts the decimals into separate columns. Check that auto-detect picks the semicolon, and choose it yourself if it does not.
  • Ignoring rows with a different number of cells: a comma inside an unquoted cell adds one column to that row only. Look for the marked row number in the grid and for the hatched empty slots.
  • Putting a notes cell into standard TSV: a cell with a line break cannot be converted to standard TSV. If the receiver is Excel or Google Sheets, keep TSV quotes on Excel/Sheets; if it does not know quotes, fix the line breaks in the source first.
  • Opening the result in Excel and saving again: leading zeros, long numbers and values turned into dates are saved in their changed form. If the original values matter, do not edit the result file in Excel; use the .xlsx save instead.

Limits and cautions

  • Input is limited to 10 MB and 1,000,000 cells. The grid draws only the first 200 rows and 40 columns, but copy and save include everything.
  • Auto-detect looks at the first 30 lines and picks the character that appears most consistently outside quotes. It can be wrong when there is only one column or when the counts differ widely from line to line, so check the result grid.
  • The first row is treated as data; headers are not split off. Empty cells, empty rows and spaces around cells are left as they are.
  • Formulas, cell formatting and multiple sheets do not exist in CSV or TSV and are not carried over. Excel workbooks (.xlsx) cannot be opened here; save the sheet from Excel as CSV or Text (Tab delimited) first.
  • Saving as .xlsx writes one sheet and does not save if Excel's limits (16,384 columns, 32,767 characters per cell) are exceeded.

Reference date The format rules and Excel behavior were checked against the sources on 2026-10-20.

Sources

Frequently asked questions

What is the difference between CSV and TSV?

CSV separates cells with commas and TSV separates them with tab characters. In CSV, a cell containing a comma, double quote or line break is wrapped in double quotes, while standard TSV cannot hold a tab inside a cell. Both are plain text, so formulas, formatting and multiple sheets cannot be stored.

How do I convert CSV to TSV?

Paste the CSV into the input box or open the file, and the converter detects the commas and turns it into TSV right away. Copy the result into Excel or Google Sheets and the columns split on their own, or save a .tsv file. Paste a TSV and it converts to CSV instead.

Can it convert CSV separated by semicolons?

Yes. Excel in regions where the decimal separator is a comma separates CSV cells with semicolons, and automatic detection recognizes this. You can also choose CSV (semicolon) as the write format and save that way.

What happens to a cell that contains a comma, like an address?

In CSV, a cell wrapped in double quotes such as "Springfield, IL" is read as one cell even though it contains a comma. Converted to TSV it appears as Springfield, IL without quotes, and when written back to CSV quotes are added only to cells that need them.

Can I convert to TSV if a cell contains a line break?

With the default setting (TSV quotes: Excel/Sheets) the cell is wrapped in double quotes and stays one cell. With standard TSV the cell cannot be held, so the conversion stops and the grid hatches that cell.

When I open the converted CSV in Excel, 00123 becomes 123. Why?

Excel reads the text as a number as it opens the file and removes the leading zeros. Press the Leading 0 chip in the grid to find such cells, and save as Excel .xlsx to store them as text so 00123 stays. Order numbers longer than 12 digits and values like 12/2 are protected the same way.

Can it open a CSV with garbled accented letters?

A file that does not read as UTF-8 is read again as Windows-1252, so CSV files from older programs show their accented letters correctly. Saving is always UTF-8, and CSV files get a BOM by default so that Excel recognizes UTF-8.

Is my table or file sent to a server?

No. What you paste or open is converted only inside this browser and is not sent to a server or stored in browser storage or the address. Input is limited to 10 MB and 1,000,000 cells.