TSV to CSV Converter
Convert tab-separated values (TSV) to comma-separated values (CSV) with correct RFC 4180 quoting. Runs entirely in your browser.
Calculator by Toolsloft ↗Paste tab-separated data, such as a column copied from a spreadsheet, and get clean CSV back. Fields that contain a comma, a quote, or a line break are quoted correctly so the output opens the same way in any spreadsheet or CSV parser. Everything runs in your browser, so the data never leaves your machine.
How this is calculated
Rows are split on line breaks and columns on tab characters, then each column is re-encoded as CSV following RFC 4180: a field is wrapped in double quotes when it contains a comma, a double quote, or a line break, and any inner quotes are doubled.
How to use
- Paste your tab-separated text into the input box.
- The CSV output updates as you type.
- Copy the result and save it as a .csv file.
Examples
- Simple table:
name<tab>age becomes name,age - Field with a comma:
a,b in one cell becomes "a,b"
FAQ
- Why are some fields wrapped in quotes?
- CSV uses commas to separate fields, so any field that already contains a comma, a double quote, or a line break must be wrapped in double quotes to stay a single field. This follows the RFC 4180 CSV rules.
- What happens to quotes inside a field?
- A double quote inside a field is escaped by doubling it, so a field like d"e becomes "d""e". Every standard CSV reader turns that back into d"e.
- Does this work with files copied from Excel or Google Sheets?
- Yes. When you copy cells from a spreadsheet they are usually tab-separated, so you can paste them straight in and get CSV out.