Convert TSV to CSV on Mac without breaking commas or quotes
To convert TSV to CSV, import the tab-separated table and export it with comma-separated fields. Renaming .tsv to .csv does not change the contents. If you have Numbers installed, you can use its import and CSV export functions.
Change the separator, not just the filename
TSV separates fields with tabs; CSV uses commas. Conversion should preserve the cell values while changing how the fields are represented.
A comma inside a description in a TSV is part of that value. Simply replacing every tab with a comma can make that punctuation look like another column boundary. A converter must understand fields and quoting.
Import the TSV and export CSV in Numbers
- Duplicate the TSV and open the copy in Numbers.
- If columns do not separate correctly, choose the tab delimiter in Adjust Import Settings before editing.
- Check the text and columns, then use File → Export To → CSV to create a separate file.
These steps follow Apple’s import and export documentation. See the dedicated guides for delimiter settings and Numbers CSV export options.
Identifiers can still be converted to numbers during import. Check text handling for leading zeros and long IDs first. If the result changes an identifier, return to the original TSV and revise the import method.
Try a sample with commas and quotation marks
The sample TSV contains three rows including the header, with three columns. Its synthetic product codes are 00123 and 00456; the descriptions include blue, ruled and He said "ready".
The same values can be represented in CSV as follows. More quote characters appear in the file, but parsing it as a table returns the same cell values.
sku,product,note
00123,Notebook,"blue, ruled"
00456,Pen,"He said ""ready"""
A value containing a comma is enclosed in double quotes; a literal quote inside a quoted value is doubled. See the CSV quoting rules. You can download an expected CSV for comparison. This is a generated, checked format example, not a capture of Numbers output.
Compare cells after conversion
For the sample, compare all nine cells, including the leading zeros and punctuation. For your own data, also inspect empty cells, the last column and multiline descriptions. A field containing a line break means text line count is not the same as record count.
Equal cell values do not imply identical bytes: quoting style or line endings may change. Check those separately if the destination specifies them. For garbled characters, follow the encoding guide.