Data

TSV to CSV Converter

Convert CSV and TSV while preserving quoted fields and escaped quotes.

Loading interactive tool…

Embed this tool on your site

About this tool

When data fields contain commas, CSV breaks or requires cumbersome quoting that confuses older tools. TSV uses the tab character as its delimiter, so commas inside fields are never special and the file works cleanly with Linux tools like cut and awk. The converter flips between these formats handling edge cases that break naive implementations: quoted comma-containing fields unwrap properly going CSV to TSV, and fields gaining commas get auto-quoted going TSV to CSV. Rows keep their original order, header included. A cell that contains a line break or a double quote is wrapped in double quotes in either output, with inner quotes doubled, so multi-line cells survive the trip but appear as quoted fields in the TSV. The output can be pasted into Excel or Google Sheets, or saved for BigQuery's TSV importer and Snowflake bulk loads. Because conversion happens in the browser, customer data and HR exports never leave your machine.

Why use it

  • Tab Delimiter, Little Quoting: In TSV output, commas inside fields are ordinary characters, so only cells containing a tab, a line break or a double quote are quoted — no column misalignment when pasting into tools that split on commas.

  • Quote-Aware CSV Parsing: Going CSV to TSV, the parser correctly unwraps quoted fields containing commas or embedded newlines before writing tab-separated output. Going TSV to CSV, fields containing commas are automatically wrapped in RFC 4180 quotes.

  • Header Row Preserved: The first row is kept at the top of the output in the original column order. Column names are never altered, reordered, or truncated during conversion.

  • Multi-Line Cells Kept Intact: A quoted cell that spans several lines stays one cell — it is written back as a quoted field with its line breaks, rather than being split into extra rows.

  • Spreadsheet Friendly: Paste the TSV output straight into Excel or Google Sheets and each value lands in its own column without an import wizard.

  • Local-Only Conversion: Customer PII, financial records, and HR data exports stay entirely in your browser tab throughout the conversion. No file is uploaded and no data is sent to any server or third-party endpoint during the conversion process.

How to use

  1. Click CSV → TSV or TSV → CSV to choose the direction
  2. Paste the source data including the header row into the Input box
  3. Click Convert and verify that the column count per row looks correct
  4. Use Swap to move the output back into the input for another pass (pick the direction again first)
  5. Click Copy and paste the result into a file or spreadsheet

When it helps

  • Converting a comma-delimited export to TSV because fields contain commas (addresses, product names, descriptions)
  • Preparing data for a Linux pipeline using cut or awk, which prefer tab delimiters over quoting-sensitive CSV
  • Converting a TSV database export back to CSV for import into Excel or Google Sheets
  • Uploading data to BigQuery or Snowflake using their TSV bulk load format which reduces parse errors for comma-heavy data
  • Fixing a misaligned CSV file caused by unquoted commas in fields by converting to TSV and back with proper quoting
  • Sharing tabular data with a colleague who works in a tool that reads TSV but not CSV

Examples

CSV with quoted commas → TSV

Input
name,city,note
Acme,"New York, NY",Founded 1903
Globex,Springfield,"Multi, line"
Expected result
name	city	note
Acme	New York, NY	Founded 1903
Globex	Springfield	Multi, line

TSV → CSV with auto-quoting

Input
id	name	note
1	Ada	no commas here
2	Alan	needs, quoting
Expected result
id,name,note
1,Ada,no commas here
2,Alan,"needs, quoting"

Newlines inside cells

Input
title,body
Hello,"Line one
Line two"
Expected result
title	body
Hello	"Line one
Line two"

Tips

  • TSV is the natural format for Linux pipelines — cut -f2 and awk -F'\t' both work without any quoting complexities.
  • If your data already contains tab characters, replace them with a placeholder before converting — TSV has no standard escape mechanism for literal tabs inside fields.
  • Excel auto-detects tab delimiter on files with the .tsv extension; saving with that suffix skips the import wizard entirely.
  • BigQuery and Snowflake prefer TSV for bulk loads when fields commonly contain commas — it reduces parse errors compared to quoted CSV.
  • If a downstream tool needs one record per line, replace line breaks inside cells before converting, since the converter keeps them in quoted fields.

Frequently Asked Questions

Why use TSV instead of CSV?
TSV is simpler to parse when fields commonly contain commas. Because the tab character rarely appears in data values, TSV rarely needs field quoting. This makes it the preferred format for Linux command-line pipelines and bulk database loaders like BigQuery and Snowflake.
How does the converter handle commas inside CSV fields?
When converting CSV to TSV, the parser first unwraps RFC 4180 quoted fields — removing surrounding quotes and handling doubled quotes ("" → ") — then writes the field content with a tab delimiter. The commas inside the field become harmless characters.
Will quotes around fields be preserved or stripped?
Surrounding quotes are removed while parsing and only re-added where the output needs them: a field is quoted when it contains the output delimiter, a line break or a double quote (inner quotes are doubled). There is no option to force or strip quoting.
Can my multi-line cells be kept intact?
Yes. A quoted cell with line breaks stays one cell and is written as a quoted field containing the same line breaks. There is no option to escape them as \n or join them onto one line, so tools that expect strictly one row per line may need the cell cleaned first.
Does TSV need quoting around fields?
Rarely. TSV fields only need quoting or escaping if they contain the tab character itself, which is uncommon in real data. If your data does contain literal tab characters, they must be pre-replaced with spaces before conversion.
Will Excel open the resulting TSV correctly?
Yes. Excel auto-detects the tab delimiter when you open a file with the .tsv extension, skipping the import wizard. Save the output with .tsv to trigger this behaviour. On older versions, use File → Import and set delimiter to tab.
What if my data already has tab characters inside cells?
In a CSV → TSV conversion, a cell containing a tab is wrapped in double quotes, which many TSV readers do not understand. Replace internal tabs with spaces before converting, or stay in CSV, which handles them via quoting.
Are my files uploaded anywhere?
No. Conversion runs entirely in your browser using JavaScript string processing. No data is sent to any server. Customer data, financial exports, and HR files are processed locally and never leave your machine.

Explore the category

Glossary

Delimiter
The character used to separate fields within a row of tabular data. CSV uses comma; TSV uses tab. The choice of delimiter determines which characters in field values require special handling.
Tab character (\t)
The ASCII horizontal tab character (code point 9) used as the field separator in TSV files. Because tabs rarely appear in real data values, TSV files almost never require field quoting.
RFC 4180
The informal standard defining CSV file structure, including how to quote fields that contain commas, newlines, or double-quote characters. TSV does not follow RFC 4180 because its delimiter makes most quoting unnecessary.
Quoted field
A CSV field wrapped in double quotes to allow it to contain the delimiter character (comma), newlines, or literal double-quote characters. Quoted fields must be unwrapped before converting to TSV.
Header row
The first row of a tabular file that contains column names rather than data values. The CSV-TSV converter detects and preserves the header row at the top of the output in the original column order.
Field escaping
The technique of encoding special characters in field values to prevent them from being misinterpreted as delimiters or row terminators. In TSV, escaping is rarely needed because the tab delimiter rarely appears in real data.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities