Understand CSV column delimiters
How CSV column separators work, why comma is only a convention, when semicolons or tabs appear, and how to convert delimiters without breaking your data.
A CSV file is plain text. Each line is a row, and one character marks where one column ends and the next begins. That character is the delimiter. Most problems with CSV files, such as everything landing in a single column or a name split across two cells, come from a mismatch between the delimiter the file uses and the one the reading program expects. This guide covers what the delimiter is, what changes when you convert between delimiters, and when a conversion is safe to rely on.
What the column separator is, and what "default" really means
The name says comma-separated values, and the most widely cited specification, RFC 4180, describes comma-delimited fields. That specification is informational, though, not a binding standard. Programs that read and write CSV make their own choices. In practice, "default delimiter" means whatever a given program assumes when you don't tell it otherwise. That assumption is often a comma, but not always.
The best-known exception comes from regional settings. In many locales the comma is the decimal mark, so a value like 3,50 means three and a half. Spreadsheet software such as Excel often takes its list separator from the operating system's regional settings, and in those locales the separator is usually a semicolon. A file with a .csv extension can therefore be semicolon-delimited. A comma-delimited file opened on a machine with different settings may show every row crammed into one column.
Common delimiters and where they cause trouble
| Delimiter | Typical context | Main risk |
| Comma (,) | Default in RFC 4180 and many export tools | Commas inside values (names, addresses, decimal commas) must be quoted |
| Semicolon (;) | Spreadsheet exports in locales that use a decimal comma | Programs that assume commas read the whole row as one field |
| Tab (TSV) | Database dumps, data pipelines, copying to and from spreadsheets | Tabs inside values; the common TSV convention has no quoting, so embedded tabs are not allowed |
| Pipe (|) | Some system exports and legacy data feeds | Few tools detect it automatically; you usually have to specify it |
How quoting keeps the delimiter from breaking a value
Under RFC 4180, a field that contains the delimiter, a double quote, or a line break is wrapped in double quotes, and any double quote inside it is written twice. The second line of this example has three fields, not four, because the comma in the name is inside quotes:
name,city,note
"Smith, Jane",Boston,"Said ""hello"""
A conforming reader returns the three values Smith, Jane / Boston / Said "hello". Quoting is part of the meaning. Any tool that ignores it will misread the file.
What changing the delimiter actually changes
Converting from comma to tab or semicolon changes the stored characters in the file. It is not a display setting. When a spreadsheet shows a CSV as a grid, the delimiters are hidden because the program has already parsed them. The grid looks the same whichever delimiter the file uses, but the bytes on disk are different.
A correct conversion parses the file first, respecting quotes, and then writes the same fields with the new delimiter. A plain find-and-replace of every comma does not do this. It also replaces commas inside quoted values. Here is the earlier example converted properly to tab-separated text, with tabs between fields:
name city note
Smith, Jane Boston Said "hello"
The quotes around Smith, Jane are no longer needed because a comma is ordinary data in a tab-delimited file. Whether the remaining quotes are written as-is or wrapped and doubled depends on the tool. The strict TSV convention has no quoting, while some CSV libraries set to a tab delimiter still apply CSV-style quoting. A naive find-and-replace on the original would instead produce a fourth column and leave stray quote characters behind.
Opening and re-saving a file in a spreadsheet can change more than the delimiter. Depending on the program and settings, it may also change quoting style, line endings, or text encoding. It may also reinterpret values, for example by dropping leading zeros from codes or turning date-like strings into dates. These are changes in meaning, not just formatting.
Will the result stay usable after copying or sharing?
- Pasting into spreadsheets: many spreadsheet applications split pasted tab-separated text into columns, which makes TSV convenient for clipboard transfer. Comma-separated text pasted the same way often lands in a single column. Behavior varies by application and version, so test the specific destination.
- Importing into other software: the most reliable approach is to state the delimiter explicitly in the import dialog or code rather than rely on automatic detection, which guesses from a sample and can guess wrong.
- Encoding: delimiter choice does not settle character encoding. Accented letters and non-Latin scripts can display incorrectly if the file is read with a different encoding than it was written in. Confirm the encoding the destination expects.
- Searching and editing: delimited text is easy to search with ordinary text tools, but a search for a delimiter character will also match delimiters inside quoted values. Editing raw delimited text by hand makes it easy to break the column count of a row.
- Accessibility: a spreadsheet grid lets assistive technology move cell by cell with row and column context. Raw delimited text read aloud by a screen reader is a stream of values and punctuation. If people, not programs, need to read the data, share it as a properly structured table or provide a short plain-language summary alongside the file.
Is converting the delimiter the right move?
Change the delimiter when the receiving program expects a different separator than the one you have, or when your values often contain the current delimiter. For example, tab-separated text avoids heavy quoting when many fields contain commas. The benefit is a file the destination reads into the right columns without manual fixes. The main tradeoff is that a conversion done without a real CSV parser can silently shift or split values. Even a correct conversion only helps if the receiver is set to the same delimiter, quoting rules, and encoding.
Keep the file as it is, or share plain prose or a formatted table instead, when the audience is human readers rather than software, when the destination already reads the current format correctly, or when you cannot check the result. An unchanged file that works is better than a converted one nobody has verified.
Quick checks before and after a conversion
- Open the file in a plain text editor to see the actual delimiter instead of guessing from the extension.
- Check whether values contain the delimiter, quotes, or line breaks, and whether they are quoted correctly.
- Convert with a tool or library that parses CSV, not a find-and-replace.
- Compare the row count and the number of columns per row before and after.
- Spot-check fields with commas, quotes, leading zeros, dates, and non-English characters.
- Import a sample into the real destination with the delimiter set explicitly.
What this overview does not establish
This guide is based on the general CSV specification and widely documented spreadsheet behavior. It does not report tests of particular conversion tools, application versions, or screen readers, and it makes no claims about how any online converter handles or stores uploaded data. Before relying on a specific workflow, confirm it with your own data in the program you will actually use.