CSV TSV Converter
Convert between CSV and TSV (tab-separated) format in your browser. Free, online, no upload, fully private bidirectional conversion.
Local processingWhat is CSV TSV Converter?
A CSV TSV converter transforms data between Comma-Separated Values (CSV) and Tab-Separated Values (TSV) formats. Both are plain-text tabular formats where each line is a data record. CSV uses commas as field delimiters, while TSV uses tab characters. TSV is often preferred when data fields contain commas, as it avoids the need for quoting. This converter supports bidirectional conversion between the two formats.
How It Works
For CSV to TSV, the tool parses each line using a CSV state machine that correctly handles quoted fields and escaped quotes, then joins the parsed fields with tab characters. For TSV to CSV, it splits each line on tab characters and joins them with commas, automatically wrapping any field containing commas, quotes, or newlines in double quotes per RFC 4180. All processing is local and private.
Common Use Cases
- Preparing data for systems that require tab-separated input
- Converting spreadsheet exports between delimiter formats
- Simplifying data that contains many commas by switching to tab delimiters
- Loading data into databases or tools that accept TSV but not CSV
- Interchanging data between Unix command-line tools and Windows applications
Technical Details
CSV parsing follows RFC 4180: fields with embedded commas, double quotes, or newlines are quoted and embedded quotes are doubled. TSV output uses literal tab characters (\t) as delimiters with no quoting. When converting TSV to CSV, each field is checked for special characters and escaped only when necessary. The converter operates line-by-line for memory efficiency and runs entirely in the browser.
How to Use
Enter your input above. The result updates automatically. Use the copy button to copy the result.
Privacy
All processing happens in your browser. Your data is never uploaded to any server.
FAQ
Is my data uploaded?
No. Conversion happens locally in your browser. Your data stays private.
How are commas in fields handled when converting CSV to TSV?
Quoted fields containing commas are parsed correctly and the quotes are removed in the TSV output, since tabs do not need quoting.
Are fields with commas quoted when converting TSV to CSV?
Yes. Fields that contain commas, quotes, or newlines are automatically wrapped in double quotes in the CSV output.
Can I convert in both directions?
Yes. Use the tab switcher to toggle between CSV to TSV and TSV to CSV. The Swap button feeds the output back as input in the opposite direction.