Ttooleras
📊

TSV to CSV

Converters

Convert TSV (tab-separated) to CSV (comma-separated) format with proper quoting for fields containing commas or quotes.. Free, private — all processing in your browser.

Advertisement

The TSV to CSV Converter transforms tab-separated values (TSV) into comma-separated values (CSV) format. TSV files (often from database exports, spreadsheet copy-paste, or data pipelines) use tabs as field delimiters. CSV uses commas. Some tools require CSV specifically. This tool converts reliably, handling edge cases like embedded commas, quotes, and newlines that require proper quoting in CSV.

Paste TSV content or upload file. The tool splits on tabs, handles quoting correctly, and outputs valid CSV per RFC 4180. Preview shows sample rows. Download as .csv file or copy to clipboard.

TSV to CSV — key features

Proper quoting

RFC 4180 compliant CSV output with quoted fields where needed.

Embedded quote handling

Double-escapes embedded quotes correctly.

Preview

See sample before downloading.

File or paste input

Upload TSV file or paste text.

Download or copy

Save as CSV or clipboard.

Encoding preserved

UTF-8 throughout for international data.

Fast for large files

Multi-megabyte TSV converts quickly.

Client-side only

Files never leave your browser.

How to use the TSV to CSV

  1. 1

    Paste or upload TSV

    Drop file or paste tab-separated content.

  2. 2

    Preview

    See rows detected and how they’ll convert.

  3. 3

    Convert

    Tab to comma with proper quoting.

  4. 4

    Verify

    Check sample CSV rows.

  5. 5

    Download or copy

    Get CSV file or clipboard content.

Common use cases for the TSV to CSV

Data migration

  • Excel to CSV: Spreadsheet copy-paste is TSV; convert for CSV-requiring tools.
  • Database export: Some databases default to TSV; convert for analysis.
  • System migration: Moving data between tools with different format preferences.

Analysis

  • Python pandas: pandas.read_csv expects CSV; convert TSV first (or use sep=\"\\t\").
  • R import: read.csv for R; convert TSV first.
  • Excel import: Excel accepts both but may default to CSV.

Web

  • Scraped data: Web scraping might produce TSV; CSV is standard for sharing.
  • API response: Convert TSV API responses to CSV for downstream tools.
  • Data sharing: CSV more universally recognized than TSV.

TSV to CSV — examples

Simple TSV

Basic conversion.

Input
name\tage\ncity\nAlice\t30\tNYC\nBob\t25\tLondon
Output
name,age,city\nAlice,30,NYC\nBob,25,London

With commas

Field needs quoting.

Input
id\tname\n1\tJohn Doe, Jr.
Output
id,name\n1,\"John Doe, Jr.\"

Quotes in data

Embedded quote.

Input
msg\n\"Hello\"\t\"World said \\\"hi\\\"\"
Output
msg\n\"Hello\"\n\"World said \"\"hi\"\"\"

Empty fields

Blank cells.

Input
a\tb\tc\n1\t\t3
Output
a,b,c\n1,,3

Excel copy

Typical clipboard.

Input
tab-separated rows from Excel
Output
CSV file ready to import elsewhere

Technical details

TSV format: tab-separated values, one record per line, tabs between fields. Simpler than CSV because tabs rarely appear in data (unlike commas).

CSV format: comma-separated values per RFC 4180. Fields with commas, quotes, or newlines must be quoted with double quotes. Embedded quotes escaped by doubling.

Conversion rules:
1. Split each line by tab character
2. For each field:
- If contains comma, quote, or newline: wrap in double quotes
- Escape embedded quotes by doubling them
3. Rejoin with commas

Example:
TSV: John\\tDoe\\t30\\tNew York, NY
CSV: John,Doe,30,\\\"New York, NY\\\"

The last field has a comma, so it\u2019s quoted.

TSV with tabs in data is problematic (shouldn\u2019t happen normally). CSV can handle embedded tabs as regular characters, but TSV cannot.

Line endings: CRLF (Windows) vs LF (Unix/Mac). Default CSV spec requires CRLF but most tools accept either. This tool preserves source line endings or normalizes based on options.

Character encoding: preserve UTF-8 by default. Output file can specify encoding (rare to need anything else for modern use).

Header detection: first row often contains column headers. Not treated differently by this tool — just another row converted.

Edge cases:
- Empty fields: empty string, becomes empty in CSV (just ,)
- Whitespace in fields: preserved
- Special characters: UTF-8 by default handles all Unicode
- Very long fields: no size limit in RFC 4180

Use cases:
- Excel copy-paste produces TSV; convert for tools expecting CSV
- Database exports sometimes default to TSV; convert for analysis tools
- Web scraping may produce TSV; convert for spreadsheet import
- Data pipelines where downstream tools only accept CSV

Performance: fast, runs in-browser for any reasonable file size (millions of rows). For very large files (GB+), streaming processors more efficient than browser.

Common problems and solutions

Commas in fields

Must be quoted in CSV. Tool does this correctly; if doing manually, easy to miss.

Quotes in fields

Double-escape (doubling). Alice said \"hi\" becomes \"Alice said \"\"hi\"\"\" in CSV. Tool handles correctly.

Newlines in fields

CSV allows with quoting. Tool handles; manual conversion may break rows.

Encoding issues

UTF-8 for international text. If source is other encoding (Latin-1), convert first or accept some characters may be garbled.

Very large files

Browser memory limits. Multi-gigabyte TSV: use command-line (awk, sed) or dedicated tools.

Headers not special

First row treated as data. If header handling needed, identify row in your processing.

Mixed line endings

CRLF vs LF; different sources differ. Standardize output line endings or match source.

TSV to CSV — comparisons and alternatives

Compared to Excel save-as, this tool is focused on format conversion without Excel overhead. Excel is convenient if already open; this tool is faster for just converting.

Compared to command-line awk, this tool has friendly UI. CLI is better for scripting; this tool for interactive.

Compared to Python pandas, this tool works without setup. Python is more flexible; this tool is instant.

Frequently asked questions about the TSV to CSV

What is TSV?

Tab-Separated Values. Simpler than CSV — tabs between fields, no quoting usually needed because tabs rare in data. Common from databases, spreadsheet copy-paste.

What is CSV?

Comma-Separated Values. Industry standard for tabular data. RFC 4180 defines format. Fields with commas, quotes, or newlines need quoting.

Why convert TSV to CSV?

Many tools accept CSV as primary format. CSV more common and universally recognized. Converting for compatibility.

Does the conversion preserve data?

Yes. Proper quoting handles all edge cases (commas, quotes, newlines in fields). Data intact, just format changed.

What about large files?

Browser-based conversion handles tens of megabytes smoothly. For gigabyte+ files, use command-line tools.

Is my data private?

Yes. All conversion in your browser.

How do I convert back (CSV to TSV)?

Use the reverse tool, or simply replace commas with tabs (careful with quoted fields).

What encoding does it use?

UTF-8 by default. Preserves source encoding if specified.

Additional resources

Advertisement

Related tools

All Converters

Explore more tools

200+ free tools that run in your browser.

Browse all tools →