Convert TSV to CSV
Tab to comma,
correctly.
Free tab-delimited to CSV converter. Fields containing commas are automatically quoted in the output — producing valid RFC 4180 CSV. Upload a .tsv file or paste tab-separated data directly. Runs entirely in your browser.
The critical change: fields containing commas get quoted in the CSV output.
name age city Alice 32 New York, NY Bob 28 Paris, France Carol 29 Austin, TX
name,age,city Alice,32,"New York, NY" Bob,28,"Paris, France" Carol,29,"Austin, TX"
The city values did not need quoting in TSV — commas are ordinary characters when the delimiter is a tab. But in CSV, any field containing a comma must be wrapped in double quotes to prevent the comma from being interpreted as a column separator. CSVShift adds these quotes automatically.
Parse, evaluate, re-serialise — not find-and-replace.
The TSV is parsed field by field, tracking quoted regions. Fields in TSV can be quoted when they contain embedded tabs or newlines — these are decoded correctly, stripping the outer quotes and unescaping any "" sequences inside.
Each decoded field value is checked against the RFC 4180 CSV quoting rules: does it contain a comma (the output delimiter), a double quote, a newline or a carriage return? If yes, it must be quoted in the CSV output. In minimal mode, only fields that require quoting get quotes — keeping the output clean.
Fields are joined with commas, quoted fields use "...", embedded quotes are escaped as "". The result is RFC 4180 compliant CSV that opens correctly in Excel, Google Sheets, pandas and any other CSV parser.
For scripting and automation workflows.
Common workflows where TSV data needs to become standard CSV.
MySQL CLI, psql, SQLite and many data tools output tab-separated data by default when piping to the terminal. Converting this output to CSV makes it compatible with spreadsheet tools and CSV-expecting import functions.
When you copy cells from Excel or Google Sheets and paste into a text editor, the data arrives as tab-separated values. Converting to CSV produces a proper file with consistent quoting that any downstream tool can parse.
Many scientific data formats (UCSC Genome Browser, GTEx, GEO) distribute data as TSV or TXT files with tab delimiters. Converting to CSV enables use with tools that only accept comma-separated input.
Salesforce, HubSpot, Mailchimp and most SaaS platforms require CSV imports, not TSV. When your data source exports as TSV, converting to CSV is the mandatory step before importing contact lists, product catalogs or records.
Other free converters on CSVShift you might need.
TSV to CSV conversion
done correctly.
The naive approach — replacing every tab with a comma — breaks the moment a field value contains a comma. CSVShift fully parses the tab-delimited input, extracting each field value correctly, then evaluates which fields need quoting in the CSV output and serialises accordingly.
This is the same parse-then-reserialise approach used by Python's csv module and pandas. The output passes validation by any RFC 4180 compliant CSV parser including Excel, Google Sheets, PostgreSQL COPY and MySQL LOAD DATA INFILE.
pd.read_csv('f.tsv', sep='\t').to_csv('out.csv', index=False). With the csv module: csv.writer(open('out.csv','w')).writerows(csv.reader(open('in.tsv'), delimiter='\t')). Both correctly quote fields that contain commas. Do NOT use sed 's/\t/,/g' — it breaks values containing commas.