TSV to CSV converter

Paste TSV from a file or database export and get CSV that most apps and import tools accept.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter tsv data and trim spaces around each cell.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Each line is split at tab characters, then the cells are joined with commas. A cell holding a comma, a quote or a line break is wrapped in " with inner quotes doubled (RFC 4180).

Example

Inputs: Trim spaces around each cell = no. Result: CSV: product,price,qty Tea,12.5,3 Coffee,18,2 Dates,30,1; Rows: 4; Columns: 3.

product	price	qty
Tea	12.5	3
Coffee	18	2
Dates	30	1
product,price,qty
Tea,12.5,3
Coffee,18,2
Dates,30,1

Limits and caveats

  • A cell that starts with " is read as a quoted cell, and an unclosed one gives an error.
  • Numbers and dates are copied as they are, with no format change.

Questions about this tool

What is the difference between TSV and CSV?

TSV separates cells with tabs and CSV with commas; the data itself does not change.

Why do some cells have quotes?

They contain a comma, a quote or a line break, and the quotes stop them splitting in CSV.

Does it work with data copied from Excel?

Yes, Excel copies cells as TSV. For more options use the Excel to CSV tool.