Correct CSV quoting
Cells holding a comma, a quote or a line break are quoted and their quotes doubled, as RFC 4180 defines.
Turn tab-separated values or cells copied from a spreadsheet into a CSV, with commas and quotes in cells quoted as RFC 4180 says. Nothing is uploaded.
Open a .tsv file or paste tab-separated text
Choose a comma or semicolon for the CSV
Download the CSV
Tab-separated text is what you get from many database exports, scientific instruments and command-line tools, and usually what arrives when you copy a block of cells out of a spreadsheet and paste it as text. CSV is what most import forms, mailing tools and programs ask for. This converts one into the other without breaking a cell.
A TSV value can hold a comma, because in TSV the comma means nothing. In a CSV it separates columns, so “London, UK” with its tab swapped for a comma becomes two cells and pushes the rest of the row one column to the right. RFC 4180, the CSV specification, says a value holding a comma, a double quote or a line break goes inside double quotes, with any quote inside it written twice. This writes every such cell that way and leaves the rest bare, so the file is no larger than it needs to be.
Each line is a row and each tab starts a new column, as the IANA registration for text/tab-separated-values describes. Rows can have different numbers of columns, and each is written as it came, with nothing added or dropped. A value wrapped in double quotes, which is how a cell with a tab or a line break inside usually arrives, is read as one cell. If the text has no tabs at all, you are told, because that is most often a CSV pasted into the wrong tool rather than a one-column table.
Choose a comma, or a semicolon for a spreadsheet set to use a decimal comma. Rows end with Windows line endings, as RFC 4180 specifies. Cells that start with =, +, @ or a minus sign get a leading apostrophe so a spreadsheet will not run them, and a negative number is left alone.
To go the other way, use CSV to TSV. To clean the result, Remove CSV duplicates finds repeated rows.
Nothing is uploaded. The data is converted in this tab and is gone when you close it.
Cells holding a comma, a quote or a line break are quoted and their quotes doubled, as RFC 4180 defines.
Write a comma-separated file, or a semicolon-separated one for spreadsheets set to use a decimal comma.
The data is converted in your browser and never sent anywhere.
Nothing uploaded: open the Network panel while it runs and check.
No daily limits or watermarks: free batches take up to 20 images.
Works offline: once the page has loaded, on any current browser.
Because values often contain commas. "London, UK" with its tab replaced becomes two columns. RFC 4180 says such a value goes inside double quotes, and this writes it that way, so every cell stays in its own column.
Yes. Copied cells usually paste as text with a tab between columns, which is exactly what this reads. A cell copied with a line break inside it arrives in quotes and is kept as one cell.
A cell starting with =, +, @ or a minus sign can run as a formula when the CSV is opened, so it is given a leading apostrophe, as every CSV written on this site is. A negative number such as -5 is left alone. Untick the option to keep cells exactly as they were.
No. The text is read and converted in this browser tab and never leaves your device.