Convert CSV to TSV
Turn a CSV file into tab-separated values.
- Nothing is uploaded
- Free · no account
- Tested on 400k-row files
Reference
CSV to TSV: how it works
The tool is above. Below: a short overview, optional step-by-step detail, honest browser limits, and answers to common questions.
Last updated 2 min read
About this tool
PrivateCSV converts a CSV file to TSV (tab-separated values). Commas, semicolons or pipes are detected and replaced by tabs, quoted values are unwrapped, and you choose what happens to the rare value that contains a tab or a line break: quoted for Excel and pandas, replaced by a space, or escaped as \t and \n for PostgreSQL and MySQL. Large files are streamed in your browser and never uploaded.
Read the step-by-step guideHow-to, example and use cases (~2 min)
How to convert a CSV file to TSV
- Drop the CSV file on the picker, or paste the CSV text.
- Check the preview: the delimiter and encoding are detected.
- Choose how tabs and line breaks inside values are written. Keep “Quote the value” unless the TSV goes into a database.
- Click Convert to TSV and download the file, or copy the result.
Example
A quoted CSV value with a comma becomes a plain TSV value.
name,city,amount
Ana,"Madrid, Spain",120name city amount
Ana Madrid, Spain 120When you need it
- Paste a table into a spreadsheet
- Tab-separated text pastes straight into Excel and Google Sheets as separate columns. Copy the result and paste it into cell A1.
- Load data into PostgreSQL or MySQL
- COPY ... FROM with the default text format and LOAD DATA INFILE read tab-separated rows with backslash escapes. Choose “Escape as \t and \n” for those.
- Tools that expect TSV
- Bioinformatics pipelines, some translation and ad platforms, and command-line tools like cut and awk work best with tabs, which do not appear inside normal values.
Three ways to handle special characters
- Quote the value: like CSV, a value containing a tab, a line break or a quote is wrapped in quotes. Excel, Google Sheets, pandas and R read it back correctly.
- Replace with a space: tabs and line breaks inside values become spaces, so every line is exactly one row and no quotes are needed. Best for cut, awk and simple scripts.
- Escape as \t and \n: the database convention (PostgreSQL text COPY, MySQL). Backslashes are doubled.
Browser and file limits (not a trial)
These are technical limits of running in your browser—device memory, encoding and what this tool does not do. They are not a free trial, account quota or paid plan. There is no subscription.
- Values are copied as text; nothing is reformatted.
- The output is UTF-8 with Windows line endings (CRLF), which every spreadsheet and database accepts.
Frequently asked questions
How do I convert a CSV file to TSV?
Choose the CSV file above and click Convert to TSV. The delimiter of the CSV is detected, each value is separated by a tab, and you download a .tsv file. Nothing is uploaded.
How do I save a CSV as tab-delimited in Excel?
Open the CSV, then use File > Save As and choose “Text (Tab delimited) (*.txt)”. That format is not UTF-8 in most Excel versions, so accented letters can be lost; this converter always writes UTF-8.
Is TSV better than CSV?
TSV is simpler when values contain commas, such as addresses or prices in European formats, because tabs almost never appear in data. CSV is more widely accepted by import tools. Both hold the same table.
Related tools
Go further
Your files never leave your device
PrivateCSV runs this tool in your browser. No upload, no account, no trial and nothing to install.