About CSV to TSV
Replacing every comma with a tab is the quick way to break a CSV, since "Pen, blue" then splits in two. This tool parses the file first and rewrites it, so the only commas that remain are real data and quotes vanish where they are no longer needed.
TSV is useful when text has plenty of commas, when a command-line tool such as cut or awk splits on tabs, or when a bulk loader wants tab-separated input. It also pastes straight into a spreadsheet, where tabs move to the next cell.
You get TSV to copy or download with a .tsv extension, plus a table showing how the rows were read.
How it works
The input is read as CSV with quote handling, and with Detect selected a semicolon or pipe file is recognized too. Each row is then written with tabs between cells. A comma no longer needs protecting, so quotes come off unless the cell still contains a tab, a line break or a double quote.
Tabs and line breaks inside cells are the one hard case, because the official text/tab-separated-values format does not allow tabs in fields at all and has no quoting. So you choose: Keep, in quotes writes what Excel understands, and Replace with a space gives strict one-line-per-row output that simple tools can read.
How to use CSV to TSV
- Paste CSV into the box, or choose Open file.
- See that the table under the result shows your columns correctly.
- Under Options, pick how Cells with tabs or line breaks are written.
- Use Copy to paste it into a sheet, or Download .tsv to save it.
Commas lose their quotes, a double quote keeps them
sku,product,note
PEN-1,"Pen, blue",
INK-9,"Ink, 50 ml","Ships ""as is"""sku product note
PEN-1 Pen, blue
INK-9 Ink, 50 ml "Ships ""as is"""Pen, blue no longer needs quotes, because a comma means nothing in TSV. The last cell keeps them with doubled inner quotes, since it holds a real double quote that Excel would otherwise misread.
When it helps
- Preparing data for
cut,awkorsort, which split on tabs far more reliably than on quoted commas. - Pasting a CSV into a spreadsheet so that every value lands in its own cell.
- Producing the input format for PostgreSQL
COPYor MySQLLOAD DATA, which default to tabs. - Making a file with many commas in its text easier to read in a plain editor.
Tips for a better result
- For command-line tools, choose Replace with a space. A quoted line break would look like two rows to them.
- For PostgreSQL
COPYin its default text format, note that backslashes are also special and this tool does not escape them. - If the table shows everything in one column, the source delimiter was not detected. Set Delimiter in the input by hand.
Good to know
- With Keep, in quotes, a cell containing a tab or line break is only readable by tools that understand quoted TSV.
- Replace with a space changes the data by design. It runs several tabs or line breaks together as one space.
- Rows with uneven cell counts are padded to match the widest row, and a notice names the first one.
- Output line endings are always a single newline, which some older Windows software may not display well.
Questions people ask
Why not do a find and replace from comma to tab?
Because commas inside quoted cells would split too, and the quotes themselves would be left behind. A real conversion has to parse the CSV first, which also keeps doubled quotes and line breaks right.
Does TSV need quotes at all?
The formal definition has no quoting, and forbids tabs in fields. In practice Excel and other spreadsheets read and write quoted TSV, so quotes appear here only where the cell needs them.
Will this keep an empty last column?
Yes. A row ending in a delimiter keeps its empty last cell, and the rewrite gives the same number of tabs on each row.
Can it read a semicolon-separated file?
Yes, detection covers commas, semicolons and pipes. Excel in many European locales writes semicolons, so this tool also works as a way to clean those up.
What to use next
- TSV to CSV: to convert back again
- CSV to JSON: if the data is heading into code
- CSV to Markdown Table: for a table you can paste into documentation
Learn more
Last reviewed . Read our editorial policy.