Choose CSV export format options
How to choose CSV export options such as delimiter, encoding, quoting, BOM and line endings, and when TSV, XLSX or JSON is a better fit.
An "Export as CSV" button looks like a single choice, but it usually involves several: which character separates fields, how text is quoted, which character encoding is used, how rows end, and how numbers and dates are written. These settings decide whether names, prices and identifiers arrive intact or get split, garbled or reformatted. This review explains what each option changes, which combination works best for common destinations, and when a different format is the better choice.
The short recommendation
For data that another program, database or script will import, use these settings: UTF-8 encoding, a comma delimiter, double quotes around any field that contains a comma, quote or line break, doubled quotes for a literal quote character, and one header row. These settings follow the conventions in RFC 4180. That document is the closest thing CSV has to a shared specification, but it is informational rather than binding, and many tools depart from it.
The main benefit is the best chance that accented names, commas inside values and multi-line notes survive the trip. The decisive tradeoff concerns spreadsheets. Some spreadsheet setups open a UTF-8 file that lacks a byte order mark (BOM) as a legacy encoding, which garbles non-English characters. Adding a BOM fixes this for those spreadsheets but can confuse scripts and strict importers that do not expect it. Use TSV instead when values often contain commas and never contain tabs. Skip CSV entirely when you need formatting, formulas, several sheets, typed values or nested data, or when the result is meant to be read by people rather than imported.
What a CSV export actually changes
Exporting to CSV turns a table into plain text characters: values, separators, quote marks and line breaks. Nothing else is stored. Fonts, colors, column widths, cell types, comments, merged cells and extra sheets are dropped. Formulas are usually replaced by their calculated results.
It helps to separate what the file stores from what a spreadsheet displays when it opens the file. Leading zeros missing from ZIP codes, long account numbers shown in scientific notation and dates switched to another format often happen at import, when the spreadsheet guesses data types. The text file itself may still hold the original digits. To check, open the file in a plain text editor. The distinction stops mattering once someone re-saves the file from the spreadsheet, because the altered values are then written back and the change becomes permanent.
The options you will usually see
| Option | Common choices | What it controls | When it matters most |
| Delimiter | Comma, semicolon, tab, pipe | The character placed between fields | The recipient's regional settings or system requirements |
| Text qualifier | Double quote, none | How fields containing delimiters, quotes or line breaks are protected | Any data with free text |
| Quoting rule | Only when needed, all fields, all text fields | Which fields get wrapped in quotes | Strict importers that expect a consistent pattern |
| Encoding | UTF-8, UTF-8 with BOM, a legacy code page, UTF-16 | How characters are stored as bytes | Non-English names, currency symbols, emoji |
| Line endings | CRLF (Windows style), LF (Unix style) | How each row is terminated | Older or strict parsers; most modern tools accept both |
| Header row | Include, omit | Whether the first row holds column names | Imports that map columns by name |
| Number and date format | Period or comma decimals; ISO 8601 or regional dates | How values are written as text | Exchanging files across regions or systems |
Why two options both called "CSV" produce different files
Searches for the difference between one CSV and another usually start in a save dialog that lists several CSV variants. Recent versions of Microsoft Excel, for example, offer "CSV UTF-8 (Comma delimited)" next to "CSV (Comma delimited)", plus Macintosh and MS-DOS variants.
The main difference between these variants is encoding. The UTF-8 option writes Unicode text and starts the file with a BOM. The plain option writes text in a legacy code page tied to the system's settings, so characters outside that code page can be replaced, often with question marks.
The delimiter can also differ from what the label says. On systems whose regional settings use a comma as the decimal separator, Excel may write semicolons even in a file labeled comma delimited.
Other spreadsheets, databases and web apps have their own defaults and their own names for these variants. Check the documentation for the tool you are using, or open the exported file in a text editor and look, rather than assuming two files called CSV are interchangeable.
Example: how quoting protects values
id,name,note
1,"Smith, Jane","She said ""hello"""
2,Lee,"Line one
Line two"
3,Ng,
Row 1 shows the two core quoting rules. The name contains a comma, so it is wrapped in quotes, and the literal quote marks around hello are doubled. Row 2 has a line break inside a quoted field. That is valid under RFC 4180 conventions, but it breaks simple tools that read one line at a time. Row 3 ends with an empty field. With the text qualifier set to none, "Smith, Jane" would be split across two columns and every later field in that row would shift.
id name note
1 Smith, Jane She said "hello"
2 Lee Line one Line two
3 Ng
The same data as TSV needs no quotes around the comma or the quote marks, which makes it easier to read. The cost is that TSV has no widely shared rule for tabs or line breaks inside a value. Some tools use backslash escapes and others simply forbid these characters. In this example the line break in row 2 was replaced with a space, and that replacement changes the stored data. TSV is the simpler choice for clean data and the riskier one for free-form text.
Will the file stay readable and usable after sharing?
Copy and paste: Spreadsheet clipboards commonly use tabs between cells. As a result, tab-separated text pasted into a spreadsheet is often split into columns automatically, while pasted comma-separated text often lands in a single column and needs a text-to-columns or import step. This varies by application.
Messages and email: Raw CSV pasted into a message body loses its alignment and is hard to scan. Send it as an attachment, or convert it to a formatted table if people only need to read it.
Accessibility: When a CSV is opened in a spreadsheet, readers get the spreadsheet's table navigation, which screen readers are generally designed to work with. Raw CSV read as plain text comes across as a stream of values and punctuation with no column context. If the audience is people rather than software, provide a properly structured table with marked headers, or a short plain-language summary of what the data shows.
Search and editing: CSV is plain text, so it is easy to search, compare between versions and process with scripts. It is also fragile. One unbalanced quote mark can shift every field after it. Edit CSV in a tool that understands quoting rather than with blind find-and-replace.
Formula injection: A value that begins with =, +, - or @ may be treated as a formula when the file opens in a spreadsheet. If the export contains text submitted by untrusted users and might be opened in a spreadsheet, use the tool's escaping option if it has one. A common fallback is to prefix risky values with a single quote, but that changes the stored value for any program that imports the file.
Privacy: A CSV file has no access control. Anyone who receives it can read every exported column, so remove columns the recipient should not see before exporting. Do not judge how an online converter handles uploaded data from its appearance or marketing; read its stated data-handling practices before uploading anything sensitive.
Which format best fits the job?
| Need | Best fit | Why | What would change the choice |
| Import into a database, script or other app | UTF-8 CSV without BOM, comma delimiter, quote only when needed | Widest parser support | The receiving system documents a different requirement |
| Open directly in Excel with non-English characters | UTF-8 CSV with BOM (Excel's "CSV UTF-8" option) | The BOM helps the spreadsheet detect the encoding | The same file also feeds scripts that do not handle a BOM |
| Recipients whose regional settings use comma decimals | Semicolon delimiter with comma decimals | Matches their spreadsheet defaults | The file goes to software rather than people; use comma and period |
| Text with many commas, or pasting into spreadsheets | TSV | Less quoting, and it usually pastes straight into columns | Values may contain tabs or line breaks |
| Keep formatting, formulas, several sheets or cell types | XLSX or the application's native format | CSV cannot store any of these | The recipient lacks compatible software |
| Nested or hierarchical data | JSON | CSV holds only flat rows and columns | The recipient expects a table |
| People reading, not reusing, the data | A formatted table in a document, or a plain-text summary | Easier to read and to navigate with assistive technology | Readers also need to sort, filter or import the data |
A quick check before sending the file
- Open the export in a plain text editor and confirm the delimiter, the quote character, and that accented letters and symbols display correctly.
- Find a row containing commas, quotes or line breaks and confirm it still has the right number of fields.
- Confirm that identifiers with leading zeros and long numbers appear as full digits in the text.
- Confirm dates use the format the recipient expects; ISO 8601 (YYYY-MM-DD) is the least ambiguous.
- Import a copy into the actual destination, not just a spreadsheet.
- Remove columns the recipient should not see.
- If the data includes user-submitted text and might be opened in a spreadsheet, check for values that begin with formula characters.
Limits of this review
This review draws on documented format conventions and general tool behavior, not on hands-on tests. No specific application versions, destinations or screen readers were tested, and no direct comparisons were run on identical input files. The Microsoft Excel behavior described above depends on version, platform and regional settings. Where it matters, confirm the result by inspecting the exported file and by test-importing it into the real destination.